GitHub user jerryshao opened a pull request:
https://github.com/apache/spark/pull/12236
[SPARK-14455][Streaming] Fix NPE in allocatedExecutors when calling in
receiver-less scenario
## What changes were proposed in this pull request?
When calling `ReceiverTracker#allocatedExecutors` in receiver-less
scenario, NPE will be thrown, since this `ReceiverTracker` actually is not
started and `endpoint` is not created.
This will be happened when playing streaming dynamic allocation with direct
Kafka.
## How was this patch tested?
Local integrated test is done.
(If this patch involves UI changes, please attach a screenshot; otherwise,
remove this)
â¦r-less scenario
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jerryshao/apache-spark SPARK-14455
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12236.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12236
----
commit be56b70c0ed9d665d075757152b5a6e118f2bcf8
Author: jerryshao <[email protected]>
Date: 2016-04-07T08:30:00Z
Fix NPE in ReceiverTracker#allocatedExecutors when calling in receiver-less
scenario
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]