[
https://issues.apache.org/jira/browse/BEAM-5786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16655377#comment-16655377
]
Raghu Angadi commented on BEAM-5786:
------------------------------------
I don't think it is minor change :).
We essentially need to handle runtime changes to partitions. As a side benefit,
it will let partitions to change at run time. Two options I see to achieve it:
* Convert KafkaIO to SDF, major change.
* Decide on number of splits statically at graph build time and
deterministically assign kafka partitions at read time. I did something like
this to support ValueProviders to specify topics and Kafka bootstrap servers
([https://github.com/apache/beam/pull/6636]. not merged). This was required for
supporting templates.
> KafkaIO should support topic patterns
> -------------------------------------
>
> Key: BEAM-5786
> URL: https://issues.apache.org/jira/browse/BEAM-5786
> Project: Beam
> Issue Type: Improvement
> Components: io-java-kafka
> Reporter: Alexey Romanenko
> Assignee: Alexey Romanenko
> Priority: Minor
>
> For the moment, it is possible to set topics for KafkaIO.Read in 2 ways - one
> single topic by using {{withTopic(String)}} or list of topics by using
> {{withTopics(List<String>)}}.
> It would make sense to provide another way for this using patterns, based on
> regular expressions, like {{withTopics(“org_[0-9]+_source”)}}. In this case,
> Kafka consumer could discover the topics based on user provided pattern.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)