Commit ed5d0339 by chenyuanjie

Revert "修改mysql连接"

This reverts commit 61528d10.
parent b0852302
...@@ -260,7 +260,7 @@ class DwtStThemeAgg(object): ...@@ -260,7 +260,7 @@ class DwtStThemeAgg(object):
""" """
self.df_pattern_words_base = self.spark.sql(sql) 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() self.df_pattern_words_base = self.df_pattern_words_base.filter(" twin_words_flag == 0").cache()
sql = f""" sql = f"""
......
...@@ -34,8 +34,8 @@ class DBUtil(object): ...@@ -34,8 +34,8 @@ class DBUtil(object):
# mysql连接参数 # mysql连接参数
__mysql_host__ = "rm-wz9yg9bsb2zf01ea4yo.mysql.rds.aliyuncs.com" __mysql_host__ = "rm-wz9yg9bsb2zf01ea4yo.mysql.rds.aliyuncs.com"
__mysql_port__ = "3306" __mysql_port__ = "3306"
__mysql_username__ = "XP_Yswg2025" __mysql_username__ = "adv_yswg"
__mysql_pwd__ = "Xp_Yswg2025@300" __mysql_pwd__ = "HCL1zcUgQesaaXNLbL37O5KhpSAy0c"
# pg连接参数正式库-h15 # pg连接参数正式库-h15
__pgsql_host__ = "192.168.10.224" __pgsql_host__ = "192.168.10.224"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment