Commit 7ed6baad authored by 王志伟's avatar 王志伟

统计alpha点击

parent f9f054dc
......@@ -691,7 +691,8 @@ object add_knowledge_network {
import sc.implicits._
val input = sc.sparkContext.textFile("/home/wangzhiwei/mouse_knowledge.csv").toDF("project","relationship","property")
val input = sc.sparkContext.textFile("/home/wangzhiwei/mouse_knowledge.csv").map(row =>row.split(",")).
toDF("project","relationship","property")
GmeiConfig.writeToJDBCTable(input, "Knowledge_network", 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