Commit 33b07448 authored by 王志伟's avatar 王志伟

取icon训练数据

parent 6415b35e
......@@ -602,21 +602,6 @@ object icon_train_data {
final_train.show()
// val Df2 = test_diary.withColumn("tag_list",explode(split()))
// Df2.show()
import sc.implicits._
// val test=test_diary.rdd.map(row=>(row(0).toString,row(1).toString))
// .map(row=>(row._1,row._2.split(",").head,row._2.split(",")(1),row._2.split(",")(2))).toDF().show()
// print("写入开始")
//
// 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("jdbc:mysql://172.16.40.158:4000/jerry_prod?user=root&password=3SYz54LS9#^9sBvC&rewriteBatchedStatements=true",final_train, table="icon_train_data",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