Commit a865c71d authored by 张彦钊's avatar 张彦钊

Merge branch 'master' of git.wanmeizhensuo.com:ML/ffm-baseline

add device read
parents bd962dca 2acde3d2
#! /bin/bash #! /bin/bash
cd /srv/apps/ffm-baseline/eda/esmm
git checkout master
PYTHON_PATH=/home/gaoyazhe/miniconda3/bin/python PYTHON_PATH=/home/gaoyazhe/miniconda3/bin/python
MODEL_PATH=/srv/apps/ffm-baseline/eda/esmm MODEL_PATH=/srv/apps/ffm-baseline/eda/esmm
DATA_PATH=/home/gmuser/esmm_data DATA_PATH=/home/gmuser/esmm_data
......
...@@ -52,8 +52,8 @@ object Recommendation_strategy_all { ...@@ -52,8 +52,8 @@ object Recommendation_strategy_all {
ti.tidbMapTable(dbName = "jerry_prod", tableName = "merge_queue_table") ti.tidbMapTable(dbName = "jerry_prod", tableName = "merge_queue_table")
// val stat_date = GmeiConfig.getMinusNDate(1) val stat_date = GmeiConfig.getMinusNDate(1)
val stat_date = param.date // val stat_date = param.date
//println(param.date) //println(param.date)
val partition_date = stat_date.replace("-","") val partition_date = stat_date.replace("-","")
val decive_id_oldUser = sc.sql( val decive_id_oldUser = sc.sql(
...@@ -201,7 +201,7 @@ object Recommendation_strategy_all { ...@@ -201,7 +201,7 @@ object Recommendation_strategy_all {
.join(device_num_hit,"stat_date") .join(device_num_hit,"stat_date")
result1.show() result1.show()
// GmeiConfig.writeToJDBCTable(result1, "Recommendation_strategy_temp", SaveMode.Append) GmeiConfig.writeToJDBCTable(result1, "Recommendation_strategy_temp", SaveMode.Append)
//device_id尾号1有点击用户日记本点击数 //device_id尾号1有点击用户日记本点击数
...@@ -298,7 +298,7 @@ object Recommendation_strategy_all { ...@@ -298,7 +298,7 @@ object Recommendation_strategy_all {
.join(device_all_cover,"stat_date") .join(device_all_cover,"stat_date")
result2.show() result2.show()
// GmeiConfig.writeToJDBCTable(result2, "strategy_other", SaveMode.Append) GmeiConfig.writeToJDBCTable(result2, "strategy_other", SaveMode.Append)
//统计新用户点击率 //统计新用户点击率
...@@ -371,7 +371,7 @@ object Recommendation_strategy_all { ...@@ -371,7 +371,7 @@ object Recommendation_strategy_all {
.join(imp_count_newUser_all,"stat_date") .join(imp_count_newUser_all,"stat_date")
result3.show() result3.show()
// GmeiConfig.writeToJDBCTable(result3, "Recommendation_strategy_newUser", SaveMode.Append) GmeiConfig.writeToJDBCTable(result3, "Recommendation_strategy_newUser", SaveMode.Append)
} }
......
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