<?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 for file message in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377635#M243309</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107220"&gt;@uday123&lt;/a&gt;&amp;nbsp;Has the reply helped resolve 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. Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 18:12:10 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2023-10-13T18:12:10Z</dc:date>
    <item>
      <title>kafka console producer for file message</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377221#M243188</link>
      <description>&lt;P&gt;kafka version cdh 6.3.4&lt;/P&gt;&lt;P&gt;console producer for single message from command line works fine but issue with below command&lt;/P&gt;&lt;P&gt;console producer command :&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;kafka-console-producer --broker-list &amp;lt;bokerhost:port&amp;gt; --topic &amp;lt;my-topic&amp;gt; --producer.config source-broker-1.properties &amp;lt; sampleMsg.txt&lt;/P&gt;&lt;P&gt;2. cat sampleMsg.txt | kafka-console-producer --broker-list &amp;lt;bokerhost:port&amp;gt; --topic &amp;lt;my-topic&amp;gt; --producer.config source-broker-1.properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;echo sampleMsg.txt | kafka-console-producer --broker-list &amp;lt;bokerhost:port&amp;gt; --topic &amp;lt;my-topic&amp;gt; --producer.config source-broker-1.properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my property file looks like:&lt;/P&gt;&lt;P&gt;security.protocol=SASL_SSL&lt;BR /&gt;sasl.kerberos.service.name=kafka&lt;BR /&gt;ssl.truststore.location=/cloudera/security/jks/jks file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and set jaas.conf correctly&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 12:16:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377221#M243188</guid>
      <dc:creator>uday123</dc:creator>
      <dc:date>2023-10-04T12:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: kafka console producer for file message</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377242#M243192</link>
      <description>&lt;P&gt;Welcome to the community&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107220"&gt;@uday123&lt;/a&gt;.&amp;nbsp;While you wait for someone with more experience to answer, have you looked over this in case it may get you closer?&lt;/P&gt;
&lt;P&gt;&lt;A id="link_4" class="page-link lia-link-navigation lia-custom-event" href="https://community.cloudera.com/t5/Community-Articles/Configuring-Kafka-Console-Producer-Consumer-on-a-Secured-CDP/ta-p/351341" target="_blank"&gt;Configuring Kafka Console Producer/Consumer on a Secured CDP Cluster&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 19:12:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377242#M243192</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2023-10-04T19:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: kafka console producer for file message</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377243#M243193</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/10253"&gt;@cjervis&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Mentioned console producer command from link is working for me however the syntax or command not working when I am passing message from file. I am able to produce message from console itself but not from file and seeking help for that&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 19:18:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377243#M243193</guid>
      <dc:creator>uday123</dc:creator>
      <dc:date>2023-10-04T19:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: kafka console producer for file message</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377247#M243195</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80393"&gt;@rki_&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75213"&gt;@ChethanYM&lt;/a&gt;&amp;nbsp;Do you have any insights here? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 20:16:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377247#M243195</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-10-04T20:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: kafka console producer for file message</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377418#M243253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107220"&gt;@uday123&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Do you see any error/warning messages when you hit the command?&lt;BR /&gt;I understood that the&amp;nbsp;&lt;SPAN&gt;console producer for a single message from the command line works for you but did you try to consume the same messages using the console consumer? If yes, do you see the same messages?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;- It could be that the console producer for a single message from the command line might not work and it is just that you are not seeing any warning/error message as you could be interrupting the console producer before it is getting timed out exception. I would request you to kindly check and confirm if you can able to produce as well as consume the same messages.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$ Points to check for,&lt;/STRONG&gt;&lt;BR /&gt;1. Check if you have a valid ticket before you run the command.&lt;BR /&gt;2. Export the JAAS.CONF file.&lt;BR /&gt;3. Make sure the user keytab/principal that you are using has enough privileges in the ranger-kafka policy to produce the messages to the problematic topic.&lt;BR /&gt;4. Check if the file '&lt;SPAN&gt;source-broker-1.properties' has read access to the user.&lt;BR /&gt;5. Since you are using the SASL_SSL protocol, check and use the same port number that is assigned to&amp;nbsp;SASL_SSL.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 10:30:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377418#M243253</guid>
      <dc:creator>arandive</dc:creator>
      <dc:date>2023-10-10T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: kafka console producer for file message</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377635#M243309</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107220"&gt;@uday123&lt;/a&gt;&amp;nbsp;Has the reply helped resolve 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. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 18:12:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kafka-console-producer-for-file-message/m-p/377635#M243309</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-10-13T18:12:10Z</dc:date>
    </item>
  </channel>
</rss>

