Uh oh!
There was an error while loading. Please reload this page.
[SPARK-19052] the restSubmissionServer don't support multiple standby masters on standalone cluster - #16450
[SPARK-19052] the restSubmissionServer don't support multiple standby masters on standalone cluster#16450hustfxj wants to merge 1 commit into
Conversation
AmplabJenkins
commented
Jan 2, 2017
Can one of the admins verify this patch? |
hustfxj
commented
Jan 17, 2017
@srowen can you help review it ? I think it is a bug. Thank you very much. |
srowen
commented
Jan 17, 2017
I'm not sure this is a good change, because it means you don't override defaults set somewhere in a config file anymore. That is I'm not clear this isn't on purpose -- could be right, wrong, just not sure. |
hustfxj
commented
Jan 18, 2017
I checked the other places, and I'm sure the other places is set "spark.master" by user configuration but not the master's address directly. |
srowen
commented
Jan 18, 2017
Where? I don't see any other instances of this pattern. It's easier if you add specifics when discussing code changes. |
hustfxj
commented
Jan 18, 2017
If we submit the application submission by SPARK REST API, we transmit the configure by the sparkProperties. Like that: We hope "spark.master" of the driver 's configure should be "spark://10.20.23.22:7077,10.20.23.21:7077", but in fact it maybe spark://10.20.23.22:7077 due to the spark core's code: If we kill the master(spark://10.20.23.22:7077), and the "spark://10.20.23.21:7077" will be master。After we kill the driver, then the spark can't restart the driver automatically. Because the driver only know old master's address which is spark://10.20.23.22:7077. |
hustfxj
commented
Jan 18, 2017
@srowen masterUrl maybe defaults set, but the user's program's configure should have high priority. The user's program's configure can be delivered by the REST API's params "sparkProperties". |
srowen
commented
Jan 18, 2017
Aha that's making more sense to me. I don't know this code much. @andrewor14 would be an ideal reviewer but not sure if he's available at this point. |
@srowen@andrewor14 can you review it again? |
jiangxb1987
commented
Jun 20, 2017
@hustfxj Unluckily we don't support multi-master nodes in standalone mode, so could you please close this PR? Thank you! |
## What changes were proposed in this pull request? This PR proposes to close stale PRs, mostly the same instances with apache#18017 I believe the author in apache#14807 removed his account. Closesapache#7075Closesapache#8927Closesapache#9202Closesapache#9366Closesapache#10861Closesapache#11420Closesapache#12356Closesapache#13028Closesapache#13506Closesapache#14191Closesapache#14198Closesapache#14330Closesapache#14807Closesapache#15839Closesapache#16225Closesapache#16685Closesapache#16692Closesapache#16995Closesapache#17181Closesapache#17211Closesapache#17235Closesapache#17237Closesapache#17248Closesapache#17341Closesapache#17708Closesapache#17716Closesapache#17721Closesapache#17937 Added: Closesapache#14739Closesapache#17139Closesapache#17445Closesapache#18042Closesapache#18359 Added: Closesapache#16450Closesapache#16525Closesapache#17738 Added: Closesapache#16458Closesapache#16508Closesapache#17714 Added: Closesapache#17830Closesapache#14742 ## How was this patch tested? N/A Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#18417 from HyukjinKwon/close-stale-pr.
The driver only know a master's address which come from StandaloneRestServer's masterUrl If submitting the job by rest api. Like that:
The masterUrl only is a master's address. So we should give priority to set "spark.master" by "sparkProperties". Like that:
Then we can set the one or more masters at the "sparkProperties".