Uh oh!
There was an error while loading. Please reload this page.
[SPARK-2098] All Spark processes should support spark-defaults.conf, config file - #2379
[SPARK-2098] All Spark processes should support spark-defaults.conf, config file#2379witgo wants to merge 3 commits into
Conversation
SparkQA
commented
Sep 13, 2014
QA tests have started for PR 2379 at commit
|
SparkQA
commented
Sep 13, 2014
QA tests have finished for PR 2379 at commit
|
vanzin
commented
Sep 16, 2014
I think I have an opposite view from Andrew in that I dislike using sys.props as an IPC mechanism, but other than that, looks good. |
There was a problem hiding this comment.
This block is repeated 3 times, maybe add it to Utils? Also, wonder if this would look better:
Option(arg.propertiesFile)
.map { f => Utils.getPropertiesFromFile(f) }
.foreach { props =>
props.filter { case (k, v) => k.startsWith("spark.") }
.foreach { case (k, v) => sys.props.getOrElseUpdate(k, v) }
}
andrewor14
commented
Sep 16, 2014
@vanzin@witgo Actually my intention was not to put everything you load from the properties file into |
vanzin
commented
Sep 16, 2014
@andrewor14 makes sense. Yeah, that would simplify the change a lot. |
vanzin
commented
Sep 16, 2014
Just to make sure, a blind |
andrewor14
commented
Sep 16, 2014
Yes thanks you would want to use that one. |
witgo
commented
Sep 17, 2014
@andrewor14@vanzin This is a very good idea, we create a SparkConf from the beginning and we will use that for the entire process. But it need to modify a lot of code ,Maybe we need to create a separate jira |
andrewor14
commented
Sep 17, 2014
@witgo Not sure if I understand what you mean. The changes I am proposing actually changes less code (compared to Spark master), not more. Right now a problem in this PR is that the ordering between |
There was a problem hiding this comment.
As mentioned elsewhere, we shouldn't remove SparkConf as an argument.
andrewor14
commented
Sep 17, 2014
@witgo I have added a few more in-line comments to explain what I mean. Let me know if you have any more questions. |
SparkQA
commented
Sep 17, 2014
QA tests have started for PR 2379 at commit
|
SparkQA
commented
Sep 17, 2014
QA tests have finished for PR 2379 at commit
|
witgo
commented
Sep 18, 2014
OK, the code has been updated. |
SparkQA
commented
Sep 18, 2014
QA tests have started for PR 2379 at commit
|
SparkQA
commented
Sep 18, 2014
QA tests have finished for PR 2379 at commit
|
SparkQA
commented
Sep 18, 2014
QA tests have started for PR 2379 at commit
|
SparkQA
commented
Oct 7, 2014
QA tests have started for PR 2379 at commit
|
vanzin
commented
Oct 7, 2014
LGTM, just a couple of minor things. |
SparkQA
commented
Oct 7, 2014
QA tests have finished for PR 2379 at commit
|
AmplabJenkins
commented
Oct 7, 2014
Test FAILed. |
andrewor14
commented
Oct 7, 2014
Looks like there is a legitimate test failure though, can you resolve this @witgo? |
andrewor14
commented
Oct 7, 2014
I just tested this on the Worker, Master and the HistoryServer and it works as expected. Awesome. |
SparkQA
commented
Oct 8, 2014
QA tests have started for PR 2379 at commit
|
SparkQA
commented
Oct 8, 2014
QA tests have finished for PR 2379 at commit
|
AmplabJenkins
commented
Oct 8, 2014
Test PASSed. |
witgo
commented
Oct 8, 2014
@andrewor14 The code has been updated. |
andrewor14
commented
Oct 8, 2014
Thanks, I will look at this shortly. A minor request though: in the future could you keep around all the commits in your branch? It would help reviewing if I could see what lines have been changed in a particular commit that was pushed after my comments, for example. |
andrewor14
commented
Oct 14, 2014
Hey sorry @witgo there are merge conflicts now. I'll test this again and merge this once you update it. |
SparkQA
commented
Oct 15, 2014
QA tests have started for PR 2379 at commit
|
SparkQA
commented
Oct 15, 2014
QA tests have finished for PR 2379 at commit
|
AmplabJenkins
commented
Oct 15, 2014
Test PASSed. |
witgo
commented
Oct 15, 2014
@andrewor14 The code has been updated. |
andrewor14
commented
Oct 15, 2014
Alright, I'm merging this into master. Thanks @witgo! |
witgo
commented
Oct 15, 2014
Cool! Thanks @andrewor14@vanzin |
This is another implementation about #1256
cc @andrewor14@vanzin