Last active
September 26, 2018 13:19
-
-
Save WillKoehrsen/5dc44705e2625422ccec2b93489048a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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