<?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: SENDING HTTP RESPONSE  PART BY PART(PAGINATION) IN NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/SENDING-HTTP-RESPONSE-PART-BY-PART-PAGINATION-IN-NIFI/m-p/367125#M239800</link>
    <description>&lt;P&gt;That is fine. But how to send this part by part output in the HTTP response?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 05:30:08 GMT</pubDate>
    <dc:creator>kumsath</dc:creator>
    <dc:date>2023-03-29T05:30:08Z</dc:date>
    <item>
      <title>SENDING HTTP RESPONSE  PART BY PART(PAGINATION) IN NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SENDING-HTTP-RESPONSE-PART-BY-PART-PAGINATION-IN-NIFI/m-p/367093#M239782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am receiving and HTTP call in NIFI. Which does the below job:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Execute the sql and fetch result&lt;/LI&gt;&lt;LI&gt;Convert the result in to JSON(there are 100 or more number of records)&lt;/LI&gt;&lt;LI&gt;Send back the result as HTTPRESPONSE.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Now the issue is that if i want to sent the data part by part( Using pagination mode) . For an example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Receiving the HTTP call . In the call we will be receiving page number. Say it is 5 pages.&lt;/LI&gt;&lt;LI&gt;So if the total record is 100 then first response will be 20 records(100/5).&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;First response will have 20 records, second response will have another 20. Like that 5 times&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Atrans_issue.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37099iDF8CEBFC1889D1EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Atrans_issue.PNG" alt="Atrans_issue.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How can i handle this in NIFI ? Please provide your thoughts on the same. Your help will be much appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 13:57:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SENDING-HTTP-RESPONSE-PART-BY-PART-PAGINATION-IN-NIFI/m-p/367093#M239782</guid>
      <dc:creator>kumsath</dc:creator>
      <dc:date>2023-03-28T13:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: SENDING HTTP RESPONSE  PART BY PART(PAGINATION) IN NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SENDING-HTTP-RESPONSE-PART-BY-PART-PAGINATION-IN-NIFI/m-p/367103#M239786</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96209"&gt;@kumsath&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;If you want to split your output from ExecuteSQL, you could try replacing &lt;STRONG&gt;ConvertAvroToJson&amp;nbsp;&lt;/STRONG&gt;with a &lt;STRONG&gt;SplitRecord&lt;/STRONG&gt; in which you will configure the&lt;STRONG&gt; Record Reader&lt;/STRONG&gt; as &lt;STRONG&gt;AVRO&lt;/STRONG&gt; and the&lt;STRONG&gt; Record Writer&lt;/STRONG&gt; as &lt;STRONG&gt;JSON&lt;/STRONG&gt;, whereas the &lt;STRONG&gt;Records per Split&lt;/STRONG&gt; can be set by you to any value. In this way, your &lt;STRONG&gt;ExecuteSQL&lt;/STRONG&gt; results are always split into smaller chunks, based on your desired output. Of course, you can use the NiFi Expression Language and calculate the Records per Split dynamically and so on.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 14:52:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SENDING-HTTP-RESPONSE-PART-BY-PART-PAGINATION-IN-NIFI/m-p/367103#M239786</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-03-28T14:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: SENDING HTTP RESPONSE  PART BY PART(PAGINATION) IN NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SENDING-HTTP-RESPONSE-PART-BY-PART-PAGINATION-IN-NIFI/m-p/367125#M239800</link>
      <description>&lt;P&gt;That is fine. But how to send this part by part output in the HTTP response?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 05:30:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SENDING-HTTP-RESPONSE-PART-BY-PART-PAGINATION-IN-NIFI/m-p/367125#M239800</guid>
      <dc:creator>kumsath</dc:creator>
      <dc:date>2023-03-29T05:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: SENDING HTTP RESPONSE  PART BY PART(PAGINATION) IN NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SENDING-HTTP-RESPONSE-PART-BY-PART-PAGINATION-IN-NIFI/m-p/367160#M239818</link>
      <description>&lt;P&gt;To be honest I do not really understand your question. If you split your original file into smaller chunks, you will have X flowfiles instead of a single flowfile. Those flowfiles will then go sequentially in your HTTP response Processor, based on your load balance strategy.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 13:07:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SENDING-HTTP-RESPONSE-PART-BY-PART-PAGINATION-IN-NIFI/m-p/367160#M239818</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-03-29T13:07:07Z</dc:date>
    </item>
  </channel>
</rss>

