Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Amazon-Selection-Data
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abel_cjy
Amazon-Selection-Data
Commits
ed5d0339
Commit
ed5d0339
authored
Apr 15, 2025
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "修改mysql连接"
This reverts commit
61528d10
.
parent
b0852302
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dwt_st_theme_agg.py
Pyspark_job/dwt/dwt_st_theme_agg.py
+1
-1
db_util.py
Pyspark_job/utils/db_util.py
+2
-2
No files found.
Pyspark_job/dwt/dwt_st_theme_agg.py
View file @
ed5d0339
...
...
@@ -260,7 +260,7 @@ class DwtStThemeAgg(object):
"""
self
.
df_pattern_words_base
=
self
.
spark
.
sql
(
sql
)
# 提前处理给叠词打上标签,并对不需要的叠词直接过滤
self
.
df_pattern_words_base
=
self
.
df_pattern_words_base
.
withColumn
(
'twin_words_flag'
,
self
.
u_judge_twin_words
(
F
.
col
(
'search_term'
)))
self
.
df_pattern_words_base
=
self
.
df_pattern_words_base
.
withColumn
(
'twin_words_flag'
,
self
.
u_judge_twin_words
(
F
.
col
(
'search_term'
)))
self
.
df_pattern_words_base
=
self
.
df_pattern_words_base
.
filter
(
" twin_words_flag == 0"
)
.
cache
()
sql
=
f
"""
...
...
Pyspark_job/utils/db_util.py
View file @
ed5d0339
...
...
@@ -34,8 +34,8 @@ class DBUtil(object):
# mysql连接参数
__mysql_host__
=
"rm-wz9yg9bsb2zf01ea4yo.mysql.rds.aliyuncs.com"
__mysql_port__
=
"3306"
__mysql_username__
=
"
XP_Yswg2025
"
__mysql_pwd__
=
"
Xp_Yswg2025@300
"
__mysql_username__
=
"
adv_yswg
"
__mysql_pwd__
=
"
HCL1zcUgQesaaXNLbL37O5KhpSAy0c
"
# pg连接参数正式库-h15
__pgsql_host__
=
"192.168.10.224"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment