Commit 5db1883e authored by 王志伟's avatar 王志伟

取icon训练数据

parent c1f098b9
......@@ -523,13 +523,13 @@ object icon_train_data {
val temp_diary = sc.sql(
s"""
|select device_id,tag_id,level1_id as level
|select '${stat_date}' as stat_date,device_id,tag_id,level1_id as level
|from diary_tag_detail
|union all
|select device_id,tag_id,level2_id as level
|select '${stat_date}' as stat_date,device_id,tag_id,level2_id as level
|from diary_tag_detail
|union all
|select device_id,tag_id,level3_id as level
|select '${stat_date}' as stat_date,device_id,tag_id,level3_id as level
|from diary_tag_detail
""".stripMargin
)
......@@ -547,9 +547,9 @@ object icon_train_data {
// GmeiConfig.writeToJDBCTable("jdbc:mysql://172.16.40.158:4000/jerry_prod?user=root&password=3SYz54LS9#^9sBvC&rewriteBatchedStatements=true",result, table="data_feed_exposure_precise",SaveMode.Append)
// println("写入完成")
// println("开始写入")
// GmeiConfig.writeToJDBCTable(config.getString("jerry.jdbcuri"),result, table="data_feed_exposure_precise",SaveMode.Append)
// println("写入完成")
println("开始写入")
GmeiConfig.writeToJDBCTable(config.getString("jerry.jdbcuri"),result, table="data_feed_exposure_precise",SaveMode.Append)
println("写入完成")
}
......
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