<?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: update TCP stream with batchsize 10000 at once using update record in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-TCP-stream-with-batchsize-10000-at-once-using-update/m-p/178164#M82964</link>
    <description>&lt;P&gt;Looks like the jpgs are not aligned as expected, but the names of jpgs are listed below in order, Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 31 Aug 2018 11:18:01 GMT</pubDate>
    <dc:creator>mark_hadoop</dc:creator>
    <dc:date>2018-08-31T11:18:01Z</dc:date>
    <item>
      <title>update TCP stream with batchsize 10000 at once using update record</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-TCP-stream-with-batchsize-10000-at-once-using-update/m-p/178163#M82963</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting a plain json stream with '\n' delimiter through TCP.&lt;/P&gt;&lt;P&gt;I am listening to TCP using listenTCP, set batchsize to 10000.&lt;/P&gt;&lt;P&gt;My json is with variable values, ex:&lt;/P&gt;&lt;PRE&gt;{"a":"20180831","b":"b"}
{"a":"20180831","b":"b","c":"c"}
&lt;/PRE&gt;&lt;P&gt;I want to add a partition_value attribute to every line in json stream at once, which should look like&lt;/P&gt;&lt;P&gt;The attribute a is always present in json, so I want to use partition_value in a&lt;/P&gt;&lt;PRE&gt;{"a":"20180831","b":"b","partition_value":"20180831"}
{"a":"20180831","b":"b","c":"c","partition_value":"20180831"}
&lt;/PRE&gt;&lt;P&gt;I have used "UpdateRecord" processor&lt;/P&gt;&lt;P&gt;below are the configuration&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UpdateRecord&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;JsonTreeReader&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="88404-jsontreereader.jpg" style="width: 758px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19507i25A69C15821481E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="88404-jsontreereader.jpg" alt="88404-jsontreereader.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AvroSchemaRegistry&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AvroRecordSetWriter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I used UpdateRecord -&amp;gt; jsontreereader -&amp;gt;avroschemaregistry&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;|_________  -&amp;gt; avrorecordsetwriter&lt;/P&gt;&lt;P&gt;Then I have used avrotojson&lt;/P&gt;&lt;P&gt;I am getting only one line as output, can you please suggest where it is happening wrong or let me know if there is a better way to do it&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;PRE&gt;{"a":"20180831","b":"b","c":null,"partition_value":"20180831"}
&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="88407-avrotojson.jpg" style="width: 751px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19508iB03CB3BB2799881F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="88407-avrotojson.jpg" alt="88407-avrotojson.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="88406-avrosetwriter.jpg" style="width: 754px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19509i608533DFE20BEF0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="88406-avrosetwriter.jpg" alt="88406-avrosetwriter.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="88405-avroschemaregistry.jpg" style="width: 757px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19510i9B7DB9000D160372/image-size/medium?v=v2&amp;amp;px=400" role="button" title="88405-avroschemaregistry.jpg" alt="88405-avroschemaregistry.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="88403-updaterecord.jpg" style="width: 758px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19511i5C1F98BB240FFABD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="88403-updaterecord.jpg" alt="88403-updaterecord.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 09:35:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-TCP-stream-with-batchsize-10000-at-once-using-update/m-p/178163#M82963</guid>
      <dc:creator>mark_hadoop</dc:creator>
      <dc:date>2019-08-18T09:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: update TCP stream with batchsize 10000 at once using update record</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-TCP-stream-with-batchsize-10000-at-once-using-update/m-p/178164#M82964</link>
      <description>&lt;P&gt;Looks like the jpgs are not aligned as expected, but the names of jpgs are listed below in order, Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 11:18:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-TCP-stream-with-batchsize-10000-at-once-using-update/m-p/178164#M82964</guid>
      <dc:creator>mark_hadoop</dc:creator>
      <dc:date>2018-08-31T11:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: update TCP stream with batchsize 10000 at once using update record</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-TCP-stream-with-batchsize-10000-at-once-using-update/m-p/178165#M82965</link>
      <description>&lt;P&gt;I find an alternate way of doing&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 16:58:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-TCP-stream-with-batchsize-10000-at-once-using-update/m-p/178165#M82965</guid>
      <dc:creator>mark_hadoop</dc:creator>
      <dc:date>2018-09-05T16:58:27Z</dc:date>
    </item>
  </channel>
</rss>

