Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spark env - executor cores #15

Open
renderit opened this issue Jan 8, 2017 · 0 comments
Open

Spark env - executor cores #15

renderit opened this issue Jan 8, 2017 · 0 comments

Comments

@renderit
Copy link

renderit commented Jan 8, 2017

Hi, I'm using findspark on jupyter with spark 2.1.0, which works great. However, I am trying to increase the number of executor cores in standalone mode. I thought by default it uses all cores on my OSX(8 cores), but its only using 1. Currently tried:

spark = (SparkSession.builder\
                    .master("local[*]")\
                    .config("spark.sql.warehouse.dir", "target/spark-warehouse")\
                    .appName("Ad analysis")\
                    .enableHiveSupport()\
                    .getOrCreate())

spark.sparkContext.defaultParallelism <-- returns 1

Secondly, how do I provide a conf file when running such interactive shell with findspark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant