GitHub user nabhanelrahman opened a pull request:

    https://github.com/apache/storm/pull/1474

    support for wildcard topics ( storm-kafka-client )

    these changes allow you to define a KafkaSpout that subscribes to a 
wildcard of topics.  For example clickstreams.*.log.  This is already supported 
in external/storm-kafka ( 0.8.x ); adding this feature to 
external/storm-kafka-client ( 0.9.x ).
    
    + Added a new public constructer to KafkaSpoutStream that takes in a 
java.util.regex.Pattern.  So instead of creating a KakfaSpoutStreams.  You can 
create a single KafkaSpoutStream that takes in a wildcard.  This is because a 
kafkaConsumer can only subscribe to a single regex pattern.
    
    + Added a test called KafkaSpoutWildcardTopologyMain.java that demonstrates 
how to setup a KakfaSpout that subscribes to a wildcard of topics.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/publica-project/storm 
storm-kafka-client_wildcard_spout

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/1474.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 #1474
    
----
commit 0c539a9feeab80d177183b6b8815010b9446018f
Author: nabhanelrahman <nab...@publica-project.com>
Date:   2016-06-08T18:19:01Z

    support for wildcard topics ( storm-kafka-client )
    
    these changes allow you to define a KafkaSpout that subscribes to a 
wildcard of topics.  For example clickstreams.*.log.  This is already supported 
in external/storm-kafka ( 0.8.x ); adding this feature to 
external/storm-kafka-client ( 0.9.x ).
    
    + Added a new public constructer to KafkaSpoutStream that takes in a 
java.util.regex.Pattern.  So instead of creating a KakfaSpoutStreams.  You can 
create a single KafkaSpoutStream that takes in a wildcard.  This is because a 
kafkaConsumer can only subscribe to a single regex pattern.
    
    + Added a test called KafkaSpoutWildcardTopologyMain.java that demonstrates 
how to setup a KakfaSpout that subscribes to a wildcard of topics.

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to