Commit 73f99e5e authored by 高雅喆's avatar 高雅喆

test_df

parent fab30cb9
......@@ -79,7 +79,7 @@ sparkConf = SparkConf().set("spark.hive.mapred.supports.subdirectories", "true")
.set("spark.sql.extensions", "org.apache.spark.sql.TiExtensions") \
.set("spark.tispark.pd.addresses", "172.16.40.170:2379").set("spark.io.compression.codec", "lzf") \
.set("spark.driver.maxResultSize", "8g").set("spark.sql.avro.compression.codec", "snappy")
sqlContext = SQLContext(sparkConf)
sqlContext = SparkSession(sparkConf)
spark = SparkSession.builder.config(conf=sparkConf).enableHiveSupport().getOrCreate()
spark.sparkContext.setLogLevel("WARN")
......
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