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