<?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 Unable to push any messages to Kafka in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-push-any-messages-to-Kafka/m-p/141484#M40039</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;My question is quite similar to the &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/40457/kafka-producer-giving-error-when-running-from-a-di.html" target="_blank"&gt;https://community.hortonworks.com/questions/40457/kafka-producer-giving-error-when-running-from-a-di.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/23775/unable-to-produce-message.html" target="_blank"&gt;https://community.hortonworks.com/questions/23775/unable-to-produce-message.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But this fails at the very first step : while trying to sending messages to Kafka topic &lt;/P&gt;&lt;P&gt;I am using the below commands to start the producer:&lt;/P&gt;&lt;PRE&gt;bin/kafka-console-producer.sh --broker-list &amp;lt;HOST_FQDN&amp;gt;:6667  --topic test&lt;/PRE&gt;&lt;P&gt;This FQDN is copied from the $ hostname -f , also verified, the &amp;lt;HOST_FQDN&amp;gt; is the one matching in &amp;lt;KAFKA_BROKER_HOME&amp;gt;/config/server.properites &lt;/P&gt;&lt;PRE&gt;advertised.listeners=PLAINTEXTSASL://&amp;lt;HOST_FQDN_SAME_AS_HOSTNAME_F&amp;gt;:6667&lt;/PRE&gt;&lt;P&gt;Now when I start the server I see :&lt;/P&gt;&lt;PRE&gt;bin/kafka-console-producer.sh --broker-list &amp;lt;BROKER_FQDN&amp;gt;:6667  --topic test&lt;/PRE&gt;&lt;P&gt;Note : test is a valid topic created previously. &lt;/P&gt;&lt;PRE&gt;HI
[2016-09-07 18:10:15,713] WARN Fetching topic metadata with correlation id 0 for topics [Set(test)] from broker [BrokerEndPoint(0,&amp;lt;BROKER_FQDN&amp;gt;,6667)] failed (kafka.client.ClientUtils$)
java.io.EOFException
        at org.apache.kafka.common.network.NetworkReceive.readFromReadableChannel(NetworkReceive.java:83)
        at kafka.network.BlockingChannel.readCompletely(BlockingChannel.scala:140)
        at kafka.network.BlockingChannel.receive(BlockingChannel.scala:131)
        at kafka.producer.SyncProducer.liftedTree1$1(SyncProducer.scala:79)
        at kafka.producer.SyncProducer.kafka$producer$SyncProducer$doSend(SyncProducer.scala:76)
        at kafka.producer.SyncProducer.send(SyncProducer.scala:121)
        at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.scala:59)
        at kafka.producer.BrokerPartitionInfo.updateInfo(BrokerPartitionInfo.scala:82)
        at kafka.producer.async.DefaultEventHandler$anonfun$handle$1.apply$mcV$sp(DefaultEventHandler.scala:68)
        at kafka.utils.CoreUtils$.swallow(CoreUtils.scala:79)
        at kafka.utils.Logging$class.swallowError(Logging.scala:106)
        at kafka.utils.CoreUtils$.swallowError(CoreUtils.scala:51)
        at kafka.producer.async.DefaultEventHandler.handle(DefaultEventHandler.scala:68)
        at kafka.producer.async.ProducerSendThread.tryToHandle(ProducerSendThread.scala:105)
        at kafka.producer.async.ProducerSendThread$anonfun$processEvents$3.apply(ProducerSendThread.scala:88)
        at kafka.producer.async.ProducerSendThread$anonfun$processEvents$3.apply(ProducerSendThread.scala:68)
        at scala.collection.immutable.Stream.foreach(Stream.scala:547)
        at kafka.producer.async.ProducerSendThread.processEvents(ProducerSendThread.scala:67)
        at kafka.producer.async.ProducerSendThread.run(ProducerSendThread.scala:45)
[2016-09-07 18:10:15,716] ERROR fetching topic metadata for topics [Set(test)] from broker [ArrayBuffer(BrokerEndPoint(0,&amp;lt;BROKER_FQDN&amp;gt;,6667))] failed (kafka.utils.CoreUtils$)&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;Also checked kafka.out and server.log files, does not show any errors/exceptions&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;It would be really helpful if someone can help me understand missing bit.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Thanks,&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;SS&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2016 01:45:51 GMT</pubDate>
    <dc:creator>smartninja723</dc:creator>
    <dc:date>2016-09-08T01:45:51Z</dc:date>
    <item>
      <title>Unable to push any messages to Kafka</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-push-any-messages-to-Kafka/m-p/141484#M40039</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;My question is quite similar to the &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/40457/kafka-producer-giving-error-when-running-from-a-di.html" target="_blank"&gt;https://community.hortonworks.com/questions/40457/kafka-producer-giving-error-when-running-from-a-di.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/23775/unable-to-produce-message.html" target="_blank"&gt;https://community.hortonworks.com/questions/23775/unable-to-produce-message.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But this fails at the very first step : while trying to sending messages to Kafka topic &lt;/P&gt;&lt;P&gt;I am using the below commands to start the producer:&lt;/P&gt;&lt;PRE&gt;bin/kafka-console-producer.sh --broker-list &amp;lt;HOST_FQDN&amp;gt;:6667  --topic test&lt;/PRE&gt;&lt;P&gt;This FQDN is copied from the $ hostname -f , also verified, the &amp;lt;HOST_FQDN&amp;gt; is the one matching in &amp;lt;KAFKA_BROKER_HOME&amp;gt;/config/server.properites &lt;/P&gt;&lt;PRE&gt;advertised.listeners=PLAINTEXTSASL://&amp;lt;HOST_FQDN_SAME_AS_HOSTNAME_F&amp;gt;:6667&lt;/PRE&gt;&lt;P&gt;Now when I start the server I see :&lt;/P&gt;&lt;PRE&gt;bin/kafka-console-producer.sh --broker-list &amp;lt;BROKER_FQDN&amp;gt;:6667  --topic test&lt;/PRE&gt;&lt;P&gt;Note : test is a valid topic created previously. &lt;/P&gt;&lt;PRE&gt;HI
[2016-09-07 18:10:15,713] WARN Fetching topic metadata with correlation id 0 for topics [Set(test)] from broker [BrokerEndPoint(0,&amp;lt;BROKER_FQDN&amp;gt;,6667)] failed (kafka.client.ClientUtils$)
java.io.EOFException
        at org.apache.kafka.common.network.NetworkReceive.readFromReadableChannel(NetworkReceive.java:83)
        at kafka.network.BlockingChannel.readCompletely(BlockingChannel.scala:140)
        at kafka.network.BlockingChannel.receive(BlockingChannel.scala:131)
        at kafka.producer.SyncProducer.liftedTree1$1(SyncProducer.scala:79)
        at kafka.producer.SyncProducer.kafka$producer$SyncProducer$doSend(SyncProducer.scala:76)
        at kafka.producer.SyncProducer.send(SyncProducer.scala:121)
        at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.scala:59)
        at kafka.producer.BrokerPartitionInfo.updateInfo(BrokerPartitionInfo.scala:82)
        at kafka.producer.async.DefaultEventHandler$anonfun$handle$1.apply$mcV$sp(DefaultEventHandler.scala:68)
        at kafka.utils.CoreUtils$.swallow(CoreUtils.scala:79)
        at kafka.utils.Logging$class.swallowError(Logging.scala:106)
        at kafka.utils.CoreUtils$.swallowError(CoreUtils.scala:51)
        at kafka.producer.async.DefaultEventHandler.handle(DefaultEventHandler.scala:68)
        at kafka.producer.async.ProducerSendThread.tryToHandle(ProducerSendThread.scala:105)
        at kafka.producer.async.ProducerSendThread$anonfun$processEvents$3.apply(ProducerSendThread.scala:88)
        at kafka.producer.async.ProducerSendThread$anonfun$processEvents$3.apply(ProducerSendThread.scala:68)
        at scala.collection.immutable.Stream.foreach(Stream.scala:547)
        at kafka.producer.async.ProducerSendThread.processEvents(ProducerSendThread.scala:67)
        at kafka.producer.async.ProducerSendThread.run(ProducerSendThread.scala:45)
[2016-09-07 18:10:15,716] ERROR fetching topic metadata for topics [Set(test)] from broker [ArrayBuffer(BrokerEndPoint(0,&amp;lt;BROKER_FQDN&amp;gt;,6667))] failed (kafka.utils.CoreUtils$)&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;Also checked kafka.out and server.log files, does not show any errors/exceptions&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;It would be really helpful if someone can help me understand missing bit.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Thanks,&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;SS&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 01:45:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-push-any-messages-to-Kafka/m-p/141484#M40039</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-09-08T01:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to push any messages to Kafka</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-push-any-messages-to-Kafka/m-p/141485#M40040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have configured PLAINTEXTSASL port at Broker side. So we need to pass "--security-protocol PLAINTEXTSASL" option to kafka-console-producer.sh script. Also you need to pass required JAAS file/run kinit command. &lt;/P&gt;&lt;P&gt;refer below doc&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_secure-kafka-ambari/content/ch_secure-kafka-produce-events.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_secure-kafka-ambari/content/ch_secure-kafka-produce-events.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 12:23:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-push-any-messages-to-Kafka/m-p/141485#M40040</guid>
      <dc:creator>mkumar2</dc:creator>
      <dc:date>2016-09-08T12:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to push any messages to Kafka</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-push-any-messages-to-Kafka/m-p/141486#M40041</link>
      <description>&lt;P&gt;Thank you. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 21:21:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-push-any-messages-to-Kafka/m-p/141486#M40041</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-09-08T21:21:56Z</dc:date>
    </item>
  </channel>
</rss>

