GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/10197
[SPARK-12203][STREAMING] Add KafkaDirectInputDStream
JIRA: https://issues.apache.org/jira/browse/SPARK-12203
Currently, we have DirectKafkaInputDStream, which directly pulls messages
from Kafka Brokers without any receivers, and KafkaInputDStream, which pulls
messages from a Kafka Broker using receiver with zookeeper.
As we observed, because DirectKafkaInputDStream retrieves messages from
Kafka after each batch finishes, it posts a latency compared with
KafkaInputDStream that continues to pull messages during each batch window.
So we try to add KafkaDirectInputDStream that directly pulls messages from
Kafka Brokers as DirectKafkaInputDStream, but it uses receivers as
KafkaInputDStream and pulls messages as blocks during each batch window.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 kafka-direct-receiver
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10197.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 #10197
----
commit 43351d134d007769f36b097601d46eb1cba62715
Author: Liang-Chi Hsieh <[email protected]>
Date: 2015-12-08T09:43:57Z
Add KafkaDirectInputDStream.
commit 3e3e1b821093e4cdf120493d22d2ce0d517f5263
Author: Liang-Chi Hsieh <[email protected]>
Date: 2015-12-08T09:58:23Z
Remove unnecessary spaces.
----
---
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]