<?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: Message size exceeded in Publish_Kafka_0_10 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206789#M62741</link>
    <description>&lt;P&gt;What do you have the value of "Max Request Size" set to in PublishKafka_0_10?&lt;/P&gt;&lt;P&gt;From the error message it looks like you still have it set to 1MB which is 1048576 bytes.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 00:28:08 GMT</pubDate>
    <dc:creator>bbende</dc:creator>
    <dc:date>2017-06-13T00:28:08Z</dc:date>
    <item>
      <title>Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206788#M62740</link>
      <description>&lt;P&gt;From what I understand according to: &lt;A href="https://community.hortonworks.com/questions/70355/nifi-putkafka-processor-maximum-allowed-data-size.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.hortonworks.com/questions/70355/nifi-putkafka-processor-maximum-allowed-data-size.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Publish_Kakfa_0_10 was configured to receive messages larger than 1 MB but I am still getting the same error on this (see screenshot)  Does anyone know if they fixed this in the Publish_Kafka_0_10 processor?&lt;/P&gt;&lt;P&gt;My Nifi version is 1.1.2&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16258-screen-shot-2017-06-12-at-105904-am.png" style="width: 792px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17019i70E2B936D03733EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16258-screen-shot-2017-06-12-at-105904-am.png" alt="16258-screen-shot-2017-06-12-at-105904-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:40:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206788#M62740</guid>
      <dc:creator>elloyd</dc:creator>
      <dc:date>2019-08-18T04:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206789#M62741</link>
      <description>&lt;P&gt;What do you have the value of "Max Request Size" set to in PublishKafka_0_10?&lt;/P&gt;&lt;P&gt;From the error message it looks like you still have it set to 1MB which is 1048576 bytes.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 00:28:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206789#M62741</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-06-13T00:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206790#M62742</link>
      <description>&lt;P&gt;I updated the Max Request Size in Publish_Kafka_0_10 to 2 MB and it produced a different error related to the it being a message larger than the server will accept but doesn't list the size of the limitation anymore.  This one is a RecordTooLargeException while the last one was a TokenTooLargeException.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16264-screen-shot-2017-06-12-at-10555-pm.png" style="width: 790px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17018i8386DF1837456E81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16264-screen-shot-2017-06-12-at-10555-pm.png" alt="16264-screen-shot-2017-06-12-at-10555-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:40:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206790#M62742</guid>
      <dc:creator>elloyd</dc:creator>
      <dc:date>2019-08-18T04:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206791#M62743</link>
      <description>&lt;P&gt;Yeah I just tried to change it to 2 MB and got the error shown in my response above.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 00:39:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206791#M62743</guid>
      <dc:creator>elloyd</dc:creator>
      <dc:date>2017-06-13T00:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206792#M62744</link>
      <description>&lt;P&gt;The TokenTooLargeException was coming from NiFi's code comparing against the "Max Request Size" property, which is why changing it to 2MB got past that error.&lt;/P&gt;&lt;P&gt;The RecordTooLargeException is coming from the Kafka client code... I think the Kafka client is talking to broker and determining that the message is too large based config on the broker, but I'm not 100% sure. &lt;/P&gt;&lt;P&gt;The first answer on this post might help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/21020347/kafka-sending-a-15mb-message"&gt;https://stackoverflow.com/questions/21020347/kafka-sending-a-15mb-message&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also may want to make sure you can publish a 2MB message from outside of NiFi, which right now I would suspect you can't until changing some config on the broker.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 00:49:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206792#M62744</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-06-13T00:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206793#M62745</link>
      <description>&lt;P&gt;Im starting to suspect its something to do with either MergeContent or the SplitText we're using.
I've noticed that when I switch SplitText to Line Count 1 it doesn't happen but then we get terrible bottlenecks that break the system.  We currently have it at 15 but this produces the error in the PublishKafka_0_10.  Also when I checked the actual data provenance for Publish_Kakfa_0_10, I saw that it was producing files of size 2.5+ MB which makes me think its MergeContent.  Here are the screenshots&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16266-screen-shot-2017-06-12-at-15339-pm.png" style="width: 764px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17016iB73BC8A7B8E57CBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16266-screen-shot-2017-06-12-at-15339-pm.png" alt="16266-screen-shot-2017-06-12-at-15339-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16265-screen-shot-2017-06-12-at-15016-pm.png" style="width: 763px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17017i331B2AEF55F79EDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16265-screen-shot-2017-06-12-at-15016-pm.png" alt="16265-screen-shot-2017-06-12-at-15016-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:40:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206793#M62745</guid>
      <dc:creator>elloyd</dc:creator>
      <dc:date>2019-08-18T04:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206794#M62746</link>
      <description>&lt;P&gt;Thanks Bryan.  Just for my understanding, these aren't events right?  They are messages?  What is a message, in terms of this kind of error?&lt;/P&gt;&lt;P&gt;I was thinking this was a single log file event that was over 2 MB or whatever.  But now I suspect its different.  Can you help me understand?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 19:42:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206794#M62746</guid>
      <dc:creator>elloyd</dc:creator>
      <dc:date>2017-06-13T19:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206795#M62747</link>
      <description>&lt;P&gt;A message just means whatever you are sending to Kafka. For example, if you used Kafka's console producer from their documentation like:&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;bin/kafka-console-producer.sh --broker-list localhost:9092 --topic streams-file-input &amp;lt; file-input.txt&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;Each line of file-input.txt would be published to the topic, so each line here is what I am describing as a message.&lt;/P&gt;&lt;P&gt;The RecordTooLargeException is indicating there was a call to publish a message, and the message exceeded to maximum size that the broker is configured for.&lt;/P&gt;&lt;P&gt;In NiFi, the messages being published will be based off the content of the flow file... If you specify a "Message Demarcator" in the processor properties, then it will read the content of the flow file and separate it based on the demarcator, sending each separate piece of data as a message. If you don't specify a demarcator then it will take the entire content of the flow file and make a single publish call for the whole content.&lt;/P&gt;&lt;P&gt;In the latest version of NiFi, there is also PublishKafka_0_10_Record which would read the incoming flow file using a configured record reader and send each record to Kafka as a message.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:35:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206795#M62747</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-06-13T20:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206796#M62748</link>
      <description>&lt;P&gt;Thanks Bryan I think you have led me to where I need to go.  I think the configurable property is message.max.bytes that needs to be changed in the config for the broker.  I thought I could do that in Ambari but I can't find that property there so I am trying to hunt where to change that property.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 21:34:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206796#M62748</guid>
      <dc:creator>elloyd</dc:creator>
      <dc:date>2017-06-13T21:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Message size exceeded in Publish_Kafka_0_10</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206797#M62749</link>
      <description>&lt;P&gt;We figured it out Bryan.  We didn't have a message demarcator set and once we set it, the error went away!  Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 21:52:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Message-size-exceeded-in-Publish-Kafka-0-10/m-p/206797#M62749</guid>
      <dc:creator>elloyd</dc:creator>
      <dc:date>2017-06-13T21:52:05Z</dc:date>
    </item>
  </channel>
</rss>

