GitHub user jerryshao opened a pull request:
https://github.com/apache/spark/pull/9597
[SPARK-11632][Streaming] Filter out empty partition in KafkaRDD
Currently empty partitions or empty `KafkaRDD` will still submit and run
tasks to remotely, this is unnecessary since no data is processed. This patch
fix this by filtering out the empty partition, this could potentially alleviate
the scheduling overhead, since now empty partition will not generate task, even
stage could be skipped if current rdd is empty. Also this could make dynamic
allocation effective (no tasks generated if there's no data injected).
Please help to review @tdas @koeninger and @zsxwing , thanks a lot!
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jerryshao/apache-spark SPARK-11632
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9597.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 #9597
----
commit 57b2914adb3ad4929e8c81b0daac98cfd83f674c
Author: jerryshao <[email protected]>
Date: 2015-11-10T13:18:21Z
Filter out empty partition in KafkaRDD
----
---
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]