<?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: kafka-console-producer not working in HDP 2.5/Kafka 0.10 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114978#M46886</link>
    <description>&lt;P&gt;Hi Anurag,&lt;/P&gt;&lt;P&gt;Could you please try sending a test message after running the producer and also run a consumer and provide the output.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;usr/hdp/current/kafka-broker$ bin/kafka-console-producer.sh --broker-list ip-172-31-103-20.us-west-2.compute.internal:6667--topic test&lt;/LI&gt;&lt;LI&gt;Send any test message like "Hello world"&lt;/LI&gt;&lt;LI&gt;Run consumer for example: usr/hdp/current/kafka-broker$  kafka-console-consumer.sh --zookeeper &amp;lt;zookeeper_host&amp;gt;:2181 --topic test --from-beginning&lt;/LI&gt;&lt;LI&gt;Provide the output. The expected behavior is that the consumer will consume the message "Hello World" and you should be able to see it in the console.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Tue, 22 Nov 2016 04:37:55 GMT</pubDate>
    <dc:creator>dbains</dc:creator>
    <dc:date>2016-11-22T04:37:55Z</dc:date>
    <item>
      <title>kafka-console-producer not working in HDP 2.5/Kafka 0.10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114977#M46885</link>
      <description>&lt;P&gt;I have installed Kafka in HDP 2.5 cluster. &lt;/P&gt;&lt;P&gt;bin/kafka-console-producer.sh seems to get stuck and doesn't produce a test message. I have tried the following command, none of them seems to work&lt;/P&gt;&lt;PRE&gt;usr/hdp/current/kafka-broker$ bin/kafka-console-producer.sh --broker-list ip-172-31-103-20.us-west-2.compute.internal:6667 --topic test


usr/hdp/current/kafka-broker$ bin/kafka-console-producer.sh --broker-list localhost:6667 --topic test


usr/hdp/current/kafka-broker$ bin/kafka-console-producer.sh --broker-list ip-172-31-103-20.us-west-2.compute.internal:6667 --topic test --security-protocol PLAINTEXT&lt;/PRE&gt;&lt;P&gt;I have verified that the listener property in /etc/kafka/conf/server.properties on the broker host is correct (listeners=PLAINTEXT://ip-172-31-103-20.us-west-2.compute.internal:6667)&lt;/P&gt;&lt;P&gt;I have also tried uncommenting the following three lines in kafka-console-producer.sh script but that doesn't help either&lt;/P&gt;&lt;PRE&gt;#KAFKA_JAAS_CONF=$KAFKA_HOME/config/kafka_jaas.conf
#if [ -f $KAFKA_JAAS_CONF ]; then
#    export KAFKA_CLIENT_KERBEROS_PARAMS="-Djava.security.auth.login.config=$KAFKA_HOME/config/kafka_client_jaas.conf"
#fi
&lt;/PRE&gt;&lt;P&gt;Could someone help me debug this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 04:26:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114977#M46885</guid>
      <dc:creator>anuraj_iiith</dc:creator>
      <dc:date>2016-11-22T04:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: kafka-console-producer not working in HDP 2.5/Kafka 0.10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114978#M46886</link>
      <description>&lt;P&gt;Hi Anurag,&lt;/P&gt;&lt;P&gt;Could you please try sending a test message after running the producer and also run a consumer and provide the output.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;usr/hdp/current/kafka-broker$ bin/kafka-console-producer.sh --broker-list ip-172-31-103-20.us-west-2.compute.internal:6667--topic test&lt;/LI&gt;&lt;LI&gt;Send any test message like "Hello world"&lt;/LI&gt;&lt;LI&gt;Run consumer for example: usr/hdp/current/kafka-broker$  kafka-console-consumer.sh --zookeeper &amp;lt;zookeeper_host&amp;gt;:2181 --topic test --from-beginning&lt;/LI&gt;&lt;LI&gt;Provide the output. The expected behavior is that the consumer will consume the message "Hello World" and you should be able to see it in the console.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 22 Nov 2016 04:37:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114978#M46886</guid>
      <dc:creator>dbains</dc:creator>
      <dc:date>2016-11-22T04:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: kafka-console-producer not working in HDP 2.5/Kafka 0.10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114979#M46887</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/11149/dbains.html" nodeid="11149"&gt;@dbains&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My bad. I was certainly under the assumption that `kafka-console-producer.sh` itself produce a test message. Thanks for clarifying that's not the case. I typed in the message and verified that it has been received by the consumer.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 04:46:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114979#M46887</guid>
      <dc:creator>anuraj_iiith</dc:creator>
      <dc:date>2016-11-22T04:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: kafka-console-producer not working in HDP 2.5/Kafka 0.10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114980#M46888</link>
      <description>&lt;P&gt;Hi Anuraj,&lt;/P&gt;&lt;P&gt;No problem, I am glad it is working now!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepna&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 05:26:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114980#M46888</guid>
      <dc:creator>dbains</dc:creator>
      <dc:date>2016-11-22T05:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: kafka-console-producer not working in HDP 2.5/Kafka 0.10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114981#M46889</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/11149/dbains.html"&gt;@dbains&lt;/A&gt; I have installed Kafka on HDF cluster and trying to create topics using  kafka-topics.sh and also use the kafka-console-produce.sh but bash keeps telling me command not found !!!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 20:53:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/kafka-console-producer-not-working-in-HDP-2-5-Kafka-0-10/m-p/114981#M46889</guid>
      <dc:creator>qwikbaba</dc:creator>
      <dc:date>2019-01-15T20:53:25Z</dc:date>
    </item>
  </channel>
</rss>

