Create a basic pyspark session

PHOTO EMBED

Fri Sep 04 2020 05:19:26 GMT+0000 (Coordinated Universal Time)

Saved by @nestoragc@hotmail.com #python #pyspark #spark #spark-session

from pyspark.sql import SparkSession
spark = SparkSession.builder.appName('abc').getOrCreate()
content_copyCOPY

https://stackoverflow.com/questions/39780792/how-to-build-a-sparksession-in-spark-2-0-using-pyspark