<?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 InvokeHTTP with pagination in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/165546#M41485</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to use InvokeHTTP to query a REST service that requires me to paginate through the results. Pagination is done through two url parameters, limit and offset. The first time through, limit=100, offset=0. If limit number of results are returned, I need to set offset to 100 and then query again. I think I'm close to getting the flow working but as you can see below, the request seems to sit in the queue after "Set Recurring Pagination Parameters" step. Any ideas? Am I missing a step? Are there any example flows out there on how to do this?&lt;/P&gt;&lt;P&gt;EvaluateJsonPath pulls out a field from the resulting json that says how many results are returned. RouteOnAttribute sets more_pages if num_results = limit. Set Recurring Pagination Parameters modifies the variable used in the url of InvokeHTTP.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7867-screen-shot-2016-09-22-at-65833-am.png" style="width: 1073px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20375i893A220D11974D6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7867-screen-shot-2016-09-22-at-65833-am.png" alt="7867-screen-shot-2016-09-22-at-65833-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 11:18:04 GMT</pubDate>
    <dc:creator>frankmarit</dc:creator>
    <dc:date>2019-08-18T11:18:04Z</dc:date>
    <item>
      <title>InvokeHTTP with pagination</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/165546#M41485</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to use InvokeHTTP to query a REST service that requires me to paginate through the results. Pagination is done through two url parameters, limit and offset. The first time through, limit=100, offset=0. If limit number of results are returned, I need to set offset to 100 and then query again. I think I'm close to getting the flow working but as you can see below, the request seems to sit in the queue after "Set Recurring Pagination Parameters" step. Any ideas? Am I missing a step? Are there any example flows out there on how to do this?&lt;/P&gt;&lt;P&gt;EvaluateJsonPath pulls out a field from the resulting json that says how many results are returned. RouteOnAttribute sets more_pages if num_results = limit. Set Recurring Pagination Parameters modifies the variable used in the url of InvokeHTTP.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7867-screen-shot-2016-09-22-at-65833-am.png" style="width: 1073px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20375i893A220D11974D6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7867-screen-shot-2016-09-22-at-65833-am.png" alt="7867-screen-shot-2016-09-22-at-65833-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 11:18:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/165546#M41485</guid>
      <dc:creator>frankmarit</dc:creator>
      <dc:date>2019-08-18T11:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP with pagination</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/165547#M41486</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12998/frankmarit.html" nodeid="12998"&gt;@Frank Maritato&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You have the good approach, and IMO it should work. I have followed a similar approach in this blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pierrevillard.com/2016/04/04/analyze-flickr-account-using-apache/" target="_blank"&gt;https://pierrevillard.com/2016/04/04/analyze-flickr-account-using-apache/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your screenshot, all your processors are stopped. When started do you have errors in your InvokeHTTP processor? Can you inspect the requests sent to be sure the increment is done correctly?&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 21:23:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/165547#M41486</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-09-22T21:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP with pagination</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/165548#M41487</link>
      <description>&lt;P&gt;Ah Thanks &lt;A rel="user" href="https://community.cloudera.com/users/5078/pvillard.html" nodeid="5078"&gt;@Pierre Villard&lt;/A&gt;! Nice blog post. This is good validation to what I did &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I just discovered that my InvokeHTTP step had a longer schedule defined from earlier when I was testing that by itself. When I changed it to 0 sec it started paginating through the data like I expected. Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 21:42:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/165548#M41487</guid>
      <dc:creator>frankmarit</dc:creator>
      <dc:date>2016-09-22T21:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP with pagination</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/369639#M41488</link>
      <description>&lt;P&gt;I call the OpenAQ rest service and increment the pages&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tspannhw/flank-airquality/blob/main/flows/AirQuality.json" target="_blank"&gt;https://github.com/tspannhw/flank-airquality/blob/main/flows/AirQuality.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/041a0c75e4b808cf7dd1d151cc943064784e5c0e/68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f747370616e6e68772f666c616e6b2d6169727175616c6974792f6d61696e2f696d616765732f6f70656e61715f6e696669666c6f77312e706e67" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimothySpann_0-1682614375262.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37404iE026334461F118F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimothySpann_0-1682614375262.png" alt="TimothySpann_0-1682614375262.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/11cb4fc704ee35c0648559efbd1b98452b11f79a/68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f747370616e6e68772f666c616e6b2d6169727175616c6974792f6d61696e2f696d616765732f6f70656e6171666c6f77322e706e67" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 16:53:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/369639#M41488</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2023-04-27T16:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP with pagination</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/369640#M41489</link>
      <description>&lt;P&gt;Also I had one with a Kudu cache for calling Daily Med&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tspannhw/ApacheConAtHome2020/tree/main/flows/DailyMed" target="_blank"&gt;https://github.com/tspannhw/ApacheConAtHome2020/tree/main/flows/DailyMed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.datainmotion.dev/2021/01/flank-using-apache-kudu-as-cache-for.html" target="_blank"&gt;https://www.datainmotion.dev/2021/01/flank-using-apache-kudu-as-cache-for.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 17:03:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/InvokeHTTP-with-pagination/m-p/369640#M41489</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2023-04-27T17:03:02Z</dc:date>
    </item>
  </channel>
</rss>

