Commit a94a7efb authored by 张彦钊's avatar 张彦钊

add multi file

parent 28c37bb0
...@@ -9,7 +9,8 @@ import datetime ...@@ -9,7 +9,8 @@ import datetime
def test(): def test():
spark = SparkSession.builder.enableHiveSupport().getOrCreate() conf = SparkConf().setAppName("miniProject").setMaster("local[*]")
spark = SparkSession.builder.enableHiveSupport().getOrCreate(conf)
ti = pti.TiContext(spark) ti = pti.TiContext(spark)
ti.tidbMapDatabase("jerry_test") ti.tidbMapDatabase("jerry_test")
......
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