<?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: NiFi 1.3 - PublishKafka_0_10 - A message in the stream exceeds the maximum allowed message size of 1048576 bytes in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-1-3-PublishKafka-0-10-A-message-in-the-stream-exceeds/m-p/205740#M167706</link>
    <description>&lt;P&gt;Thanks this solution worked. &lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2017 02:24:33 GMT</pubDate>
    <dc:creator>mayank_rathi</dc:creator>
    <dc:date>2017-11-22T02:24:33Z</dc:date>
    <item>
      <title>NiFi 1.3 - PublishKafka_0_10 - A message in the stream exceeds the maximum allowed message size of 1048576 bytes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-1-3-PublishKafka-0-10-A-message-in-the-stream-exceeds/m-p/205738#M167704</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;Hello All,I am getting this error in 
PublishKafka_0_10 processor for a message of size 2.08 MB. I have 
updated Max Request Size to 10 MB in processor properties and 
max.request.size to 10 MB in Kafka's server.properties. After reboot 
Kafka Broker I can see that max.request.size = 10 MB in Kafka logs but I
 am still getting below error. What am I missing here?&lt;BR /&gt;&lt;BR /&gt;2017-11-17 11:07:47,966 ERROR [Timer-Driven Process Thread-4] o.a.n.p.kafka.pubsub.PublishKafka_0_10 PublishKafka_0_10[id=e6d932d9-97ae-1647-aa8f-86d07791ce25] Failed to send all message for StandardFlowFileRecord[uuid=fa2399e5-bea5-4113-b58b-6cdef228733c,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1510934860019-132, container=default, section=132], offset=0, length=2160613],offset=0,name=12337127439954063,size=2160613] to Kafka; routing to failure due to &lt;A href="http://org.apache.nifi.stream.io"&gt;org.apache.nifi.stream.io&lt;/A&gt;.exception.TokenTooLargeException: A message in the stream exceeds the maximum allowed message size of 1048576 bytes.: {}&lt;BR /&gt;&lt;A href="http://org.apache.nifi.stream.io"&gt;org.apache.nifi.stream.io&lt;/A&gt;.exception.TokenTooLargeException: A message in the stream exceeds the maximum allowed message size of 1048576 bytes.&lt;BR /&gt;  at &lt;A href="http://org.apache.nifi.stream.io"&gt;org.apache.nifi.stream.io&lt;/A&gt;.util.AbstractDemarcator.extractDataToken(AbstractDemarcator.java:157)&lt;BR /&gt;  at &lt;A href="http://org.apache.nifi.stream.io"&gt;org.apache.nifi.stream.io&lt;/A&gt;.util.StreamDemarcator.nextToken(StreamDemarcator.java:129)&lt;BR /&gt;  at org.apache.nifi.processors.kafka.pubsub.PublisherLease.publish(PublisherLease.java:78)&lt;BR /&gt;  at org.apache.nifi.processors.kafka.pubsub.PublishKafka_0_10$1.process(PublishKafka_0_10.java:334)&lt;BR /&gt;  at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2136)&lt;BR /&gt;  at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2106)&lt;BR /&gt;  at org.apache.nifi.processors.kafka.pubsub.PublishKafka_0_10.onTrigger(PublishKafka_0_10.java:330)&lt;BR /&gt;  at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)&lt;BR /&gt;  at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1120)&lt;BR /&gt;  at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147)&lt;BR /&gt;  at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)&lt;BR /&gt;  at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)&lt;BR /&gt;  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)&lt;BR /&gt;  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)&lt;BR /&gt;  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)&lt;BR /&gt;  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;BR /&gt;  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;BR /&gt;  at java.lang.Thread.run(Thread.java:748)Thanks and Regards&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 18 Nov 2017 01:01:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-1-3-PublishKafka-0-10-A-message-in-the-stream-exceeds/m-p/205738#M167704</guid>
      <dc:creator>mayank_rathi</dc:creator>
      <dc:date>2017-11-18T01:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi 1.3 - PublishKafka_0_10 - A message in the stream exceeds the maximum allowed message size of 1048576 bytes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-1-3-PublishKafka-0-10-A-message-in-the-stream-exceeds/m-p/205739#M167705</link>
      <description>&lt;P&gt;Verify whether message.max.bytes (or max.message.bytes for the topic) is set to an appropriate value to support the large messages.  And to enable the consumers to read from this topic, set fetch.message.max.bytes as well.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 12:48:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-1-3-PublishKafka-0-10-A-message-in-the-stream-exceeds/m-p/205739#M167705</guid>
      <dc:creator>rmaruthiyodan</dc:creator>
      <dc:date>2017-11-21T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi 1.3 - PublishKafka_0_10 - A message in the stream exceeds the maximum allowed message size of 1048576 bytes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-1-3-PublishKafka-0-10-A-message-in-the-stream-exceeds/m-p/205740#M167706</link>
      <description>&lt;P&gt;Thanks this solution worked. &lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 02:24:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-1-3-PublishKafka-0-10-A-message-in-the-stream-exceeds/m-p/205740#M167706</guid>
      <dc:creator>mayank_rathi</dc:creator>
      <dc:date>2017-11-22T02:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi 1.3 - PublishKafka_0_10 - A message in the stream exceeds the maximum allowed message size of 1048576 bytes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-1-3-PublishKafka-0-10-A-message-in-the-stream-exceeds/m-p/295271#M217653</link>
      <description>&lt;P&gt;Hi , where did you found the property he talked about to modify it ? because I'm facing the same issue ? thank in advance&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 13:29:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-1-3-PublishKafka-0-10-A-message-in-the-stream-exceeds/m-p/295271#M217653</guid>
      <dc:creator>AndyAjram</dc:creator>
      <dc:date>2020-05-01T13:29:03Z</dc:date>
    </item>
  </channel>
</rss>

