Situation: Creating spark context 2 times by mistake.
val spark = SparkSession.builder()
.master("local")
.appName("SparkMongoDB")
.config("spark.mongodb.input.uri", "mongodb://127.0.0.1/Spark.sparkCollection")
.config("spark.mongodb.output.uri", "mongodb://127.0.0.1/Spark.sparkCollection")
.getOrCreate()
//val...
Build Your Own Test Framework
-
[image: Build Your Own Test Framework]
Learn to write better automated tests that will dramatically increase your
productivity and have fun while doing so...
1 hour ago