How to Use Topic Patterns in MapRStreams Data Objects

How to Use Topic Patterns in MapRStreams Data Objects

Example

Example

You have captured change data from your sources and stored the changes in multiple topics in a MapR stream. You want to write the data to HDFS. You can subscribe to all topics that match the specified pattern to get dynamically assigned partitions. Specify a regular expression to subscribe to all topics that match the pattern. For example, if the topics names are
cdc_table1
,
cdc_table2
, and
cdc_table3
, you can specify the regular expression
cdc_.*
to subscribe to all topics.

0 COMMENTS

We’d like to hear from you!