Uh oh!
There was an error while loading. Please reload this page.
[SPARK-22900] [Spark-Streaming] Remove unnecessary restrict for streaming dynamic allocation - #20078
[SPARK-22900] [Spark-Streaming] Remove unnecessary restrict for streaming dynamic allocation#20078sharkdtu wants to merge 1 commit into
Conversation
felixcheung
left a comment
There was a problem hiding this comment.
shouldn't you use spark.streaming.dynamicAllocation.minExecutors?
sharkdtu
commented
Jan 1, 2018
@felixcheung |
felixcheung
commented
Jan 1, 2018
hmm, that sounds like a different problem, why is numReceivers set to > spark.cores.max? |
sharkdtu
commented
Jan 2, 2018
@felixcheung |
jerryshao
commented
Jan 3, 2018
Sorry to chime in. This feature (streaming dynamic allocation) is obsolete and has bugs, users seldom enabled this feature, does it still worth to fix? |
sharkdtu
commented
Jan 3, 2018
@jerryshao |
I'm not against the fix. My concern is that we've shifted to structured streaming, also this feature (streaming dynamic allocation) is seldom used/tested, this might not be the only issue regarding to it (in dynamic allocation we updated a lot), do we still need to put effort on it? Just my concern. |
not saying about this change, but I've used streaming dynamic allocation quite a bit back in the day. but in this case I think simply is to set |
jerryshao
commented
Jan 4, 2018
Originally in Spark dynamic allocation, "spark.executor.instances" and dynamic allocation conf cannot be co-existed, if "spark.executor.instances" is set, dynamic allocation will not be enabled. But this behavior is changed after 2.0. I think here for streaming dynamic allocation, we'd better keep it consistent with Spark dynamic allocation. |
felixcheung
commented
Jan 4, 2018
hmm, I didn't know that was changed actually (SPARK-13723) |
sharkdtu
commented
Jan 4, 2018
@felixcheung |
AmplabJenkins
commented
Mar 6, 2018
Can one of the admins verify this patch? |
vc60er
commented
Apr 13, 2018
by set spark.streaming.dynamicAllocation.minExecutors also has same issue .https://issues.apache.org/jira/browse/SPARK-14788 |
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?
When i set the conf
spark.streaming.dynamicAllocation.enabled=true, the confnum-executorscan not be set. As a result, it will allocate default 2 executors and all receivers will be run on this 2 executors, there may not be redundant cpu cores for tasks. it will stuck all the time.in my opinion, we should remove unnecessary restrict for streaming dynamic allocation. we can set
num-executorsandspark.streaming.dynamicAllocation.enabled=truetogether. when application starts, each receiver will be run on an executor.How was this patch tested?
Manual test.