Commit 98918ed7 authored by 张彦钊's avatar 张彦钊

add multi file

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