Answers for "get or create sparksession"

2

create pyspark session with hive support

from pyspark.sql import SparkSession
spark = SparkSession.builder.master("yarn").appName("my app").enableHiveSupport().getOrCreate()
Posted by: Guest on September-04-2020
1

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

Code answers related to "get or create sparksession"

Python Answers by Framework

Browse Popular Code Answers by Language