scala spark session example
Example: To create a SparkSession
# To create a SparkSession
spark = SparkSession.builder.master(
"local").appName("Word Count").config(
"spark.some.config.option", "some-value").getOrCreate()
# To create a SparkSession
spark = SparkSession.builder.master(
"local").appName("Word Count").config(
"spark.some.config.option", "some-value").getOrCreate()