<?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 Re: Apache nifi and kafka microservice in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-and-kafka-microservice/m-p/321077#M228254</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90395"&gt;@alexmarco&lt;/a&gt;&amp;nbsp;it seems like you resolved your issue. If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark as solution button" style="width: 331px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5960i4EC112CCAAC11427/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-08-06 at 1.54.47 PM.png" alt="Screen Shot 2019-08-06 at 1.54.47 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 12:52:18 GMT</pubDate>
    <dc:creator>cjervis</dc:creator>
    <dc:date>2021-07-16T12:52:18Z</dc:date>
    <item>
      <title>Apache nifi and kafka microservice</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-and-kafka-microservice/m-p/321062#M228248</link>
      <description>&lt;P&gt;I'm quite new in Apache Nifi but I'm encountering some issues trying to connect a kafka microservice (with a producer) with Apache nifi consumer.&lt;/P&gt;&lt;P&gt;Basically, I have a docker-compose like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;zookeeper:
  container_name: zookeeper_test
  image: wurstmeister/zookeeper #zookeeper:3.5.7
  ports:
  - 2181:2181

kafka:
  container_name: kafka_test
  image: wurstmeister/kafka #:2.13-2.6.0
  ports:
  - 9092:9092
  environment:
      KAFKA_ADVERTISED_HOST_NAME: kafka
      KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
  depends_on: 
      - zookeeper
      - kafkaui

kafkaui:
  container_name: kafka-ui_test
  image: provectuslabs/kafka-ui:latest
  environment: 
      - KAFKA_CLUSTERS_0_NAME=kafka
      - KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
      - KAFKA_CLUSTERS_0_ZOOKEEPER= zookeeper:2181
  ports:
      - 6789:8080

test:
  container_name: test
  build:
      context: ./test
      dockerfile: Dockerfile
  depends_on:
      - kafka
  command: python test.py&lt;/PRE&gt;&lt;P&gt;test is my producer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from kafka import KafkaProducer
import json
from time import sleep

producer = KafkaProducer(bootstrap_servers='kafka:9092')
json_message = {"hello":"world"}


for i in range(1000):
   producer.send("INPUT", json.dumps(json_message).encode('utf-8')) 
   producer.flush()
   sleep(1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through the KafkaUI I'm able to see the topic SL.CPTI.INPUT that has been sent.&lt;/P&gt;&lt;P&gt;In the Apache nifi dashboard, I set a ConsumerKafka_2.6 with these parameters: Kafka broker: localhost:9092 Group ID: 1 Topic: SL.CPTI.INPUT&lt;/P&gt;&lt;P&gt;then I connected to this a funnel when "success", just to see the message received. Unfortunately, doing this, I do not see anything received. I just see a lot of tasks in the consumerkafka box but no elements in the queue connected to the funnel. I expect to see the json received, isn'it? May I miss something?&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura1.PNG" style="width: 673px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31913iCD1B1B8EE0F17166/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura1.PNG" alt="Cattura1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura2.PNG" style="width: 670px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31912i02D083736F0FE047/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura2.PNG" alt="Cattura2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura3.PNG" style="width: 703px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31914i87CCA1BB2A1FECB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura3.PNG" alt="Cattura3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 09:05:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-and-kafka-microservice/m-p/321062#M228248</guid>
      <dc:creator>alexmarco</dc:creator>
      <dc:date>2021-07-16T09:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Apache nifi and kafka microservice</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-and-kafka-microservice/m-p/321076#M228253</link>
      <description>&lt;P&gt;it seems that the problem is related to the connection with kafka docker. In this moment I solved dockerize the NiFi installation, calling kafka as kafka:9092 from the apache nifi consumer&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 12:42:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-and-kafka-microservice/m-p/321076#M228253</guid>
      <dc:creator>alexmarco</dc:creator>
      <dc:date>2021-07-16T12:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Apache nifi and kafka microservice</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-and-kafka-microservice/m-p/321077#M228254</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90395"&gt;@alexmarco&lt;/a&gt;&amp;nbsp;it seems like you resolved your issue. If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark as solution button" style="width: 331px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5960i4EC112CCAAC11427/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-08-06 at 1.54.47 PM.png" alt="Screen Shot 2019-08-06 at 1.54.47 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 12:52:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-and-kafka-microservice/m-p/321077#M228254</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2021-07-16T12:52:18Z</dc:date>
    </item>
  </channel>
</rss>

