-
Notifications
You must be signed in to change notification settings - Fork 29k
SPARK-2116 #1059
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-2116 #1059
Conversation
…for spark-defaults.conf.
|
Can one of the admins verify this patch? |
|
Very similar to: #997 |
|
When are you guys running into this, is it when you launch an app through an IDE or something like that? |
|
No, just launching normally via command line. The purpose of this patch is convenience. Its purpose is similar to the HADOOP_CONF_DIR, HBASE_CONF_DIR, etc. environment variables that exist with Hadoop, Hbase, etc. |
|
Alright, but I'm actually kind of confused then, won't |
|
BTW for that second case, we could support it, but then we'd also need to make the start-cluster scripts support multiple conf dirs. If you'd like to do that, update the JIRA to say this, and we should patch all of them at once. |
|
I wouldn't say "multiple" conf directories, but alternate ones from the default. In Hadoop I can stick all my config files in a /tmp/foo directory, set HADOOP_CONF_DIR, and hadoop will read all of its configuration files out of there instead of its default location. spark-env.sh is already searched for in SPARK_CONF_DIR via load-spark-env.sh, so that isn't a problem. However, spark-defaults.conf is not searched for in SPARK_CONF_DIR. So I can't put all the config files in one directory. I hope that clarifies things? |
|
I see, that makes sense. I didn't realize we supported a different conf dir for spark-env.sh through that variable. Jenkins, test this please |
|
test this please pretty please? |
|
Jenkins, test this please |
|
QA tests have started for PR 1059. This patch merges cleanly. |
|
QA results for PR 1059: |
|
Jenkins, test this please |
|
QA tests have started for PR 1059. This patch merges cleanly. |
|
QA results for PR 1059: |
|
Merged this into 1.1. Thanks! |
If SPARK_CONF_DIR environment variable is set, search it for spark-defaults.conf. Author: Albert Chu <[email protected]> Closes apache#1059 from chu11/SPARK-2116 and squashes the following commits: 9f3ac94 [Albert Chu] SPARK-2116: If SPARK_CONF_DIR environment variable is set, search it for spark-defaults.conf.
If SPARK_CONF_DIR environment variable is set, search it for spark-defaults.conf.