Uh oh!
There was an error while loading. Please reload this page.
[SPARK-20129][Core] JavaSparkContext should use SparkContext.getOrCreate - #20347
[SPARK-20129][Core] JavaSparkContext should use SparkContext.getOrCreate#20347rekhajoshm wants to merge 11 commits into
Conversation
Pulling functionality from apache spark
pull latest from apache spark
Pulling functionality from apache spark
Pulling functionality from apache spark
pull request from apache/master
pull latest from apache spark
pull latest from apache spark
Pull apache spark
pull latest apache spark
Apache spark pull latest
SparkQA
commented
Jan 22, 2018
Test build #86456 has finished for PR 20347 at commit
|
jerryshao
commented
Jan 22, 2018
Can you please explain why do we need to change to |
srowen
commented
Jan 22, 2018
@mengxr suggested this in the JIRA originally -- what was the reasoning? It makes some sense, but so does leaving the current behavior, where a constructor calls a constructor. It's a behavior change, albeit a slight one. |
jerryshao
commented
Jan 23, 2018
Using |
srowen
commented
Jan 23, 2018
Yes, you can already get the new semantics here with Yes, probably better to add a new method, or else, decide that it's not worth a new API method just as a shortcut for the above. Maybe that's the right conclusion, unless @mengxr comes back with a particular reason to change the behavior slightly. |
jiangxb1987
commented
Jan 23, 2018
My major concern is that, if there is a existing On the other hand, the following comment copyed from the comment of the class If that is the case, there should be no active |
srowen
commented
Jan 26, 2018
@rekhajoshm I think maybe the right resolution here is to do nothing. I haven't heard @mengxr on his old JIRA to make this change. Thank you for chasing down open JIRAs like this of course. |
rekhajoshm
commented
Jan 26, 2018
Thank you @srowen I admire you for doing what you do over all the jira/PR's I have studied, and followed up. |
Closesapache#20458Closesapache#20530Closesapache#20557Closesapache#20966Closesapache#20857Closesapache#19694Closesapache#18227Closesapache#20683Closesapache#20881Closesapache#20347Closesapache#20825Closesapache#20078Closesapache#21281Closesapache#19951Closesapache#20905Closesapache#20635 Author: Sean Owen <srowen@gmail.com> Closesapache#21303 from srowen/ClosePRs.
What changes were proposed in this pull request?
Using SparkContext getOrCreate() instead of recreating new sc in JavaSparkContext.
How was this patch tested?
Existing tests