<?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: RecordTooLargeException on large messages in Kafka? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268294#M206067</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/61724"&gt;@lvic4594_&lt;/a&gt;&amp;nbsp; Great to know that the issue is resolved after making the recommended changes to use the producer.config argument explicitly&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;--producer.config /etc/kafka/conf/producer.properties&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;As the issue is resolved, hence it will be great to mark this thread as Solved. So that other users can quickly find the resolved threads/answers,.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 00:26:49 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2019-08-20T00:26:49Z</dc:date>
    <item>
      <title>RecordTooLargeException on large messages in Kafka?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/237728#M199541</link>
      <description>&lt;P&gt;I am using HDP-2.6.5.0 with kafka 1.0.0; I have to process large (16M) messages so i set&lt;/P&gt;&lt;P&gt;message.max.bytes=18874368replica.fetch.max.bytes = 18874368socket.request.max.bytes =18874368&lt;/P&gt;&lt;P&gt;From Ambary/Kafka configs screen and restarted Kafka services&lt;/P&gt;&lt;P&gt;When I try to send 16M messages:&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/kafka-broker/bin/kafka-console-producer.sh --broker-list &amp;lt;broker-ip&amp;gt;:6667 --topic test &amp;lt; ./big.txt&lt;/PRE&gt;&lt;P&gt;I still have the same error:&lt;/P&gt;&lt;PRE&gt;ERROR Error when sending message to topic test with key: null, value: 16777239 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)

org.apache.kafka.common.errors.RecordTooLargeException: The message is 16777327 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration.&lt;/PRE&gt;&lt;P&gt;I tried to set max.request.size in producer.properties file but still have the same error. What am I missing?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Aug 2019 22:37:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/237728#M199541</guid>
      <dc:creator>lvic4594_</dc:creator>
      <dc:date>2019-08-13T22:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: RecordTooLargeException on large messages in Kafka?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/265946#M206018</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/61724"&gt;@lvic4594_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you are keep getting "&lt;SPAN&gt;&lt;STRONG&gt;RecordTooLargeException&lt;/STRONG&gt;" even after increasing few properties that you listed in your previous comment.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So can you please let us know exactly where are you noticing those exceptions?&amp;nbsp; Broker side or Producer side or Consumer side?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also can you please try to specify the complete path of the "producer.properties" file in the "kafka-console-producer.sh" command line just to ensure that we are using the correct producer properties file?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;/usr/hdp/current/kafka-broker/bin/kafka-console-producer.sh --broker-list &amp;lt;broker-ip&amp;gt;:6667 --producer.config /etc/kafka/conf/producer.properties --topic test &amp;lt; ./big.txt&lt;/LI-CODE&gt;&lt;P&gt;.&lt;BR /&gt;Also please verify if this file has the correct value:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# grep 'max.request.size' /etc/kafka/conf/producer.properties&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reference Article:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Kafka-producer-running-into-multiple-org-apache-kafka-common/ta-p/248636" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/Kafka-producer-running-into-multiple-org-apache-kafka-common/ta-p/248636&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Broker side:&lt;/STRONG&gt; "message.max.bytes" - this is the largest size of the message that can be received by the broker from a producer.&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"replica.fetch.max.bytes" - The number of bytes of messages to attempt to fetch for each partition.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Producer side:&lt;/STRONG&gt; "max.request.size" is a limit to send the larger message.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Consumer side:&lt;/STRONG&gt; Increase "max.partition.fetch.bytes" which help you to consume big messages. max number of bytes per partition returned by the server. should be larger than the max.message.size so consumer can read the largest message sent by the broker.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;For Consumer side can you please let us know if you have also increased the &lt;EM&gt;&lt;STRONG&gt;"max.partition.fetch.bytes"&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:28:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/265946#M206018</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-08-19T08:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: RecordTooLargeException on large messages in Kafka?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268242#M206061</link>
      <description>&lt;P&gt;--producer-config did the trick for kafka-console-producer.sh...Or changing "&lt;SPAN&gt;max.request.size" directly in producer code. I didn't have to modify consumer settings&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 18:58:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268242#M206061</guid>
      <dc:creator>lvic4594_</dc:creator>
      <dc:date>2019-08-19T18:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: RecordTooLargeException on large messages in Kafka?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268294#M206067</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/61724"&gt;@lvic4594_&lt;/a&gt;&amp;nbsp; Great to know that the issue is resolved after making the recommended changes to use the producer.config argument explicitly&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;--producer.config /etc/kafka/conf/producer.properties&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;As the issue is resolved, hence it will be great to mark this thread as Solved. So that other users can quickly find the resolved threads/answers,.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 00:26:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268294#M206067</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-08-20T00:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: RecordTooLargeException on large messages in Kafka?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268550#M206277</link>
      <description>&lt;P&gt;&lt;SPAN&gt;it will be great to mark this thread as Solved&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would be happy to, but don't see this available in "options" - i can only see "mark as read"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 13:30:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268550#M206277</guid>
      <dc:creator>lvic4594_</dc:creator>
      <dc:date>2019-08-21T13:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: RecordTooLargeException on large messages in Kafka?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268709#M206367</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/61724"&gt;@lvic4594_&lt;/a&gt;&amp;nbsp; Marking the solution is easy. The author of the original question will see an Accept as solution button on every reply. Click the button on the reply(s) that solved the issue to mark it as such.&lt;/P&gt;
&lt;P&gt;&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>Thu, 22 Aug 2019 15:14:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268709#M206367</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2019-08-22T15:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: RecordTooLargeException on large messages in Kafka?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268734#M206382</link>
      <description>&lt;P&gt;Thanks, i didn't realized i am not actually logged at the moment&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 18:07:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RecordTooLargeException-on-large-messages-in-Kafka/m-p/268734#M206382</guid>
      <dc:creator>lvic4594_</dc:creator>
      <dc:date>2019-08-22T18:07:01Z</dc:date>
    </item>
  </channel>
</rss>

