Guest User

Untitled

a guest
Sep 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. conf = pyspark.SparkConf()
  2.  
  3. # Set number of workers and number of cores
  4. conf.set('spark.num.executors', 3)
  5. conf.set('spark.executor.memory', '12g')
  6. conf.set('spark.executor.cores', 3)
  7.  
  8. # Create a spark context
  9. sc = pyspark.SparkContext(master = 'spark://ip-172-31-8-174.ec2.internal:7077'
  10. appName = 'featuretools', conf = conf)
Add Comment
Please, Sign In to add comment