Answers for "making spark session"

0

making spark session

from pyspark.sql import SparkSession

spark = SparkSession \
    .builder \
    .appName("Python Spark SQL basic example") \
    .config("spark.some.config.option", "some-value") \
    .getOrCreate()
Posted by: Guest on November-27-2020
0

To create a SparkSession

# To create a SparkSession

spark = SparkSession.builder.master(
  "local").appName("Word Count").config(
  "spark.some.config.option", "some-value").getOrCreate()
Posted by: Guest on April-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language