Commit 96afd439 authored by 高雅喆's avatar 高雅喆

change spark context

parent 642514a4
......@@ -78,7 +78,6 @@ object GmeiConfig extends Serializable {
def writeToJDBCTable(df: DataFrame, table: String, saveMode: SaveMode): Unit = {
val jdbcuri = this.config.getString("tidb.jdbcuri")
println(jdbcuri, table)
writeToJDBCTable(jdbcuri, df, table, saveMode)
}
......
......@@ -232,7 +232,7 @@ object Main {
println("done3")
context.stop()
sc.stop()
}
} getOrElse {
......
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