Support Questions
Find answers, ask questions, and share your expertise

any one used this command -- SparkSession.builder().master("local[*]").config("spark.some.config.option”, “some-value").getOrCreate()

any one used this command -- SparkSession.builder().master("local[*]").config("spark.some.config.option”, “some-value").getOrCreate()

Contributor

My project is to stream data from kafka and pass to mongodb by a spark/scala program. I found this example, this is the first statement in the code-- SparkSession.builder().master("local[*]").config("spark.some.config.option”, “some-value").getOrCreate()

I have no idea what to replace "some.config.option" and "some-value". any one can give me an example. I am new to scala. please help.

Thank you very much.