Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Highlighted

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.

Don't have an account?
Coming from Hortonworks? Activate your account here