How to Use Topic Patterns in Kafka Data Objects

How to Use Topic Patterns in Kafka Data Objects

Creating Kafka Data Objects

Creating Kafka Data Objects

Create a Kafka data object in the Developer tool to add to streaming mappings.
  1. Select a project or folder in the
    Object Explorer
    view in Developer tool.
  2. Click
    File
    New
    Data Object
    .
  3. Select
    Kafka
    and click
    Next
    .
    The data object dialog box appears.
  4. Enter a name for the data object.
  5. Click
    Browse
    next to the
    Location
    option and select the target project or folder.
  6. Click
    Browse
    next to the
    Connection
    option and select the Kafka connection.
  7. To add a resource, click
    Add
    next to the
    Selected Resources
    option.
    The
    Add Resource
    dialog box appears.
  8. To specify a topic pattern for the topic name, in the
    Add Resource
    dialog box, select
    TopicPattern
    .
  9. Specify a regular expression pattern for the topic name that you want to read from. Use the regular expression syntax guidelines to specify the pattern.
    The following image shows the
    cdc_.*
    topic pattern:
    To verify the topics that match the
    cdc_.*
    topic pattern, select
    Topic
    .
    The following image shows the topic names that match the
    cdc_.*
    pattern:
  10. Select the topic pattern that you want to add and click
    OK
    .
    The following image shows the
    cdc_.*
    topic pattern selected:
  11. Click
    Finish
    .
    The Kafka data object appears under Data Objects in the project or folder in the
    Object Explorer
    view.
    You can create a read data object operation to add in streaming mappings.

0 COMMENTS

We’d like to hear from you!