<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Consume Kafka topics using wildcard in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Consume-Kafka-topics-using-wildcard/m-p/315367#M226442</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using apache nifi's consumeKafka processor to consume IOT data.&lt;/P&gt;&lt;P&gt;It is working fine when explicitly specifying the topics. However, I am looking for something more dynamic so I don't have to add topics manually in nifi each time we connect a new device.&lt;/P&gt;&lt;P&gt;Is it possible to have wildcards in the kafka topic name field?&lt;/P&gt;&lt;P&gt;My topics name look like domain.iot_device_name so I need something like domain.*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 10:52:23 GMT</pubDate>
    <dc:creator>dieden9</dc:creator>
    <dc:date>2021-04-27T10:52:23Z</dc:date>
    <item>
      <title>Consume Kafka topics using wildcard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Consume-Kafka-topics-using-wildcard/m-p/315367#M226442</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using apache nifi's consumeKafka processor to consume IOT data.&lt;/P&gt;&lt;P&gt;It is working fine when explicitly specifying the topics. However, I am looking for something more dynamic so I don't have to add topics manually in nifi each time we connect a new device.&lt;/P&gt;&lt;P&gt;Is it possible to have wildcards in the kafka topic name field?&lt;/P&gt;&lt;P&gt;My topics name look like domain.iot_device_name so I need something like domain.*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 10:52:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Consume-Kafka-topics-using-wildcard/m-p/315367#M226442</guid>
      <dc:creator>dieden9</dc:creator>
      <dc:date>2021-04-27T10:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Consume Kafka topics using wildcard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Consume-Kafka-topics-using-wildcard/m-p/316164#M226724</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82306"&gt;@dieden9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NiFi provides a number of Kafka processors based off the Kafka Client they are using.&amp;nbsp; The original ConsumeKafka processor (no number) used the old Kafka 0.8 client.&amp;nbsp; The 0.8 client processor does not offer the ability to specify a regex for the topic names.&amp;nbsp; You should be using the Kafka client version processors that match the Kafka server version you are consuming from.&lt;BR /&gt;&lt;BR /&gt;From &lt;STRONG&gt;ConsumeKafka_0_10&lt;/STRONG&gt; [1] on, you have the ability to configure the processor to use "names" or "pattern" for the topic name(s).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1620736445461.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31150i92FB00697AF1A5DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1620736445461.png" alt="MattWho_0-1620736445461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The pattern is a java regular expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] &lt;A href="http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-kafka-1-0-nar/1.13.2/org.apache.nifi.processors.kafka.pubsub.ConsumeKafka_1_0/index.html" target="_blank"&gt;http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-kafka-1-0-nar/1.13.2/org.apache.nifi.processors.kafka.pubsub.ConsumeKafka_1_0/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found this help with your query, please take a moment to login and click accept on this solution.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 12:35:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Consume-Kafka-topics-using-wildcard/m-p/316164#M226724</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-05-11T12:35:46Z</dc:date>
    </item>
  </channel>
</rss>

