Commit c04c4706 authored by 王志伟's avatar 王志伟

修复bug

parent 7fc3bb53
......@@ -3,7 +3,7 @@ import java.io.{File, PrintWriter, Serializable}
import com.gmei.lib.AbstractParams
import org.apache.log4j.{Level, Logger}
import org.apache.spark.sql.{DataFrame, SaveMode, TiContext}
import org.apache.spark.sql.{DataFrame, SaveMode}
import scopt.OptionParser
......@@ -47,9 +47,11 @@ object Data2FFM {
val spark_env = GmeiConfig.getSparkSession()
val sc = spark_env._2
val ti = new TiContext(sc)
ti.tidbMapTable(dbName = "jerry_test", tableName = "esmm_train_data")
ti.tidbMapTable(dbName = "jerry_test", tableName = "esmm_pre_data")
sc.sql("use jerry_test")
// val ti = new TiContext(sc)
// ti.tidbMapTable(dbName = "jerry_test", tableName = "esmm_train_data")
// ti.tidbMapTable(dbName = "jerry_test", tableName = "esmm_pre_data")
val train_sep_date = GmeiConfig.getMinusNDate(10)
......
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