Skip to content

Instantly share code, notes, and snippets.

@rikturr
Created July 30, 2020 20:02
Show Gist options
  • Save rikturr/d39c5bb14009612072de18dd070ee770 to your computer and use it in GitHub Desktop.
Save rikturr/d39c5bb14009612072de18dd070ee770 to your computer and use it in GitHub Desktop.
init_spark
import findspark
findspark.init()
from pyspark.sql import SparkSession
spark = (SparkSession
.builder
.config('spark.executor.memory', '36g')
.getOrCreate())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment