Created
September 1, 2019 02:14
-
-
Save eduardorost/d0e467a6ef8954400e1499574ac26938 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val sparkConf: SparkConf = new SparkConf() | |
.setMaster("local[*]") | |
.set("spark.hadoop.mapreduce.fileoutputcommitter.algorithm.version", "2") | |
.set("spark.streaming.driver.writeAheadLog.closeFileAfterWrite", "true") | |
.set("spark.streaming.receiver.writeAheadLog.closeFileAfterWrite", "true") | |
val spark: SparkSession = SparkSession | |
.builder() | |
.config(sparkConf) | |
.getOrCreate() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment