Commit 97942e6f authored by 张彦钊's avatar 张彦钊

修改test file

parent ce4c57a8
......@@ -18,9 +18,9 @@ def test():
.set("spark.tispark.pd.addresses", "172.16.40.158:2379")
spark = SparkSession.builder.config(conf= sparkConf).enableHiveSupport().getOrCreate()
# ti = pti.TiContext(spark)
# ti.tidbMapDatabase("jerry_test")
spark.sql("use jerry_test")
ti = pti.TiContext(spark)
ti.tidbMapDatabase("jerry_test")
spark.sparkContext.setLogLevel("WARN")
df = spark.sql("select max(stat_date) from esmm_train_data")
df.show()
......
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