send a spark session via api code example
Example: entry point to programming Spark with the Dataset and DataFrame API
# entry point to programming Spark with the Dataset and DataFrame API
spark = SparkSession.builder.master(
"local").appName(
"Words Count").config(
"spark.some.config.option", "some-value").getOrCreate()