Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Last active September 26, 2018 13:19
Show Gist options
  • Save WillKoehrsen/5dc44705e2625422ccec2b93489048a3 to your computer and use it in GitHub Desktop.
Save WillKoehrsen/5dc44705e2625422ccec2b93489048a3 to your computer and use it in GitHub Desktop.
import pyspark
conf = pyspark.SparkConf()
# Set number of workers and number of cores
conf.set('spark.num.executors', 3)
conf.set('spark.executor.memory', '12g')
conf.set('spark.executor.cores', 4)
# Create a spark context
sc = pyspark.SparkContext(master = 'spark://ip-172-31-8-174.ec2.internal:7077'
appName = 'featuretools', conf = conf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment