Created
July 30, 2020 20:02
-
-
Save rikturr/d39c5bb14009612072de18dd070ee770 to your computer and use it in GitHub Desktop.
init_spark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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