How to Use Topic Patterns in MapRStreams Data Objects

How to Use Topic Patterns in MapRStreams Data Objects

Overview

Overview

You can read from and write to MapR Streams in a streaming mappings that run on the Spark engine. Create a MapRStreams data object to read from or write data to MapR Streams.
When you configure the MapRStreams data object, specify the stream name that you read from in the following format:
/pathname:topic name
You can specify the stream name or use a regular expression for the stream name pattern only when you read from MapR Streams. The regular expression that you specify applies to the topic name and not the path name.
To subscribe to multiple topics that match a pattern, you can specify a regular expression. When you run the application on the cluster, the pattern matching is done against topics before the application runs. If you add a topic with a similar pattern when the application is already running, the application will not read from the topic.

0 COMMENTS

We’d like to hear from you!