<?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: listenudp listentcp newline gets added in betwenn messages in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190893#M70938</link>
    <description>&lt;P&gt;I don't think this could happen with ListenTCP, but with ListenUDP it could happen if the data being received already has a new-line at the end. For example, if you received these two messages "This is message 1\n" and "This is message 2\n" and then you used the batching delimiter of "\n" then you'd get "This is message 1\n\nThis is message 2\n".&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 04:29:03 GMT</pubDate>
    <dc:creator>bbende</dc:creator>
    <dc:date>2017-11-08T04:29:03Z</dc:date>
    <item>
      <title>listenudp listentcp newline gets added in betwenn messages</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190892#M70937</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thanks a lot to this aweosome community.&lt;/P&gt;&lt;P&gt;We have a listenTCP and listenUDP processors listening for events. We have set "Max Batch Size" to 20000 increase throughput.&lt;/P&gt;&lt;P&gt;However sometime in between messages a new line chacrater is added in a flowfile.&lt;/P&gt;&lt;P&gt;Is it because of Batching Message delimiter? I guess no beause it is happening in between the messages in a flowfile.&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dheeru&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 00:36:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190892#M70937</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-11-08T00:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: listenudp listentcp newline gets added in betwenn messages</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190893#M70938</link>
      <description>&lt;P&gt;I don't think this could happen with ListenTCP, but with ListenUDP it could happen if the data being received already has a new-line at the end. For example, if you received these two messages "This is message 1\n" and "This is message 2\n" and then you used the batching delimiter of "\n" then you'd get "This is message 1\n\nThis is message 2\n".&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 04:29:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190893#M70938</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-11-08T04:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: listenudp listentcp newline gets added in betwenn messages</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190894#M70939</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/363/bbende.html" nodeid="363"&gt;@Bryan Bende&lt;/A&gt; Thanks a lot for the response appreciate it, yes you re absolutely correct about, I have 4 listenudp merging on to 2 merge processors in serial and the puthdfs. I am batching the message for throughput in each of the listenUDP processors and the default matching delimiter is \n so sometimes "This is message 1\n\nThis is message 2\n" this happens.&lt;/P&gt;&lt;P&gt;What I am looking for is this pattern in hdfs&lt;/P&gt;&lt;P&gt;This is message 1&lt;/P&gt;&lt;P&gt;This is message 2&lt;/P&gt;&lt;P&gt;however right now &lt;/P&gt;&lt;P&gt;it is writing to hdfs as &lt;/P&gt;&lt;P&gt;This is message 1&lt;/P&gt;&lt;P&gt;\n&lt;/P&gt;&lt;P&gt;This is message 2&lt;/P&gt;&lt;P&gt;here the extraline takes the additional memory. Any way we can avoid it?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dheery &lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 04:48:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190894#M70939</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-11-08T04:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: listenudp listentcp newline gets added in betwenn messages</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190895#M70940</link>
      <description>&lt;P&gt;Can you change whatever is sending the data to ListenUDP to not send a new-line at the end of the message?&lt;/P&gt;&lt;P&gt;If not, how about ReplaceText to replace \n\n with \n?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 04:53:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190895#M70940</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-11-08T04:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: listenudp listentcp newline gets added in betwenn messages</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190896#M70941</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/363/bbende.html" nodeid="363"&gt;@Bryan Bende&lt;/A&gt; Thanks for the response, unfortunately I will not be able to change from the source side, but it looks like I will have to use replaceText processor &lt;/P&gt;&lt;P&gt;Thank you appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 05:21:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190896#M70941</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-11-08T05:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: listenudp listentcp newline gets added in betwenn messages</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190897#M70942</link>
      <description>&lt;P&gt;You're welcome... one more option is to use ExecuteScript to run a simple processor that reads a flow file line by line and only writes out the lines with length &amp;gt; 0.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 05:23:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/listenudp-listentcp-newline-gets-added-in-betwenn-messages/m-p/190897#M70942</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-11-08T05:23:24Z</dc:date>
    </item>
  </channel>
</rss>

