<?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 Nifi GetHTTP more than one single processor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205539#M73931</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to make a stream for Yahoo weather.&lt;/P&gt;&lt;P&gt;But I do not want to use GetHTTP separately for each province. I would like to throw multiple queries in a single GetHTTP instead.&lt;/P&gt;&lt;P&gt;I would like to send the following 2 queries as an example&lt;/P&gt;&lt;P&gt;Query 1;&lt;/P&gt;&lt;P&gt;&lt;A href="http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Adana%2CAdana%2C%20tr%22)%20and%20u%3D%22c%22&amp;amp;format=json&amp;amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" target="_blank" rel="nofollow noopener noreferrer"&gt;http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Adana%2CAdana%2C%20tr%22)%20and%20u%3D%22c%22&amp;amp;format=json&amp;amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="58428-adana.jpg" style="width: 797px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17090i2F0A09828069C332/image-size/medium?v=v2&amp;amp;px=400" role="button" title="58428-adana.jpg" alt="58428-adana.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Query 2;&lt;/P&gt;&lt;P&gt;&lt;A href="http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Ankara%2CAnkara%2C%20tr%22)%20and%20u%3D%22c%22&amp;amp;format=json&amp;amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" target="_blank" rel="nofollow noopener noreferrer"&gt;http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Ankara%2CAnkara%2C%20tr%22)%20and%20u%3D%22c%22&amp;amp;format=json&amp;amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="58429-ankara.jpg" style="width: 794px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17091i94E1B573CB1872A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="58429-ankara.jpg" alt="58429-ankara.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do I submit them on a single processor?&lt;/P&gt;&lt;P&gt;there are 81 provinces like this. I do not want to do it all separately.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 04:49:26 GMT</pubDate>
    <dc:creator>muratmentese1</dc:creator>
    <dc:date>2019-08-18T04:49:26Z</dc:date>
    <item>
      <title>Nifi GetHTTP more than one single processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205539#M73931</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to make a stream for Yahoo weather.&lt;/P&gt;&lt;P&gt;But I do not want to use GetHTTP separately for each province. I would like to throw multiple queries in a single GetHTTP instead.&lt;/P&gt;&lt;P&gt;I would like to send the following 2 queries as an example&lt;/P&gt;&lt;P&gt;Query 1;&lt;/P&gt;&lt;P&gt;&lt;A href="http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Adana%2CAdana%2C%20tr%22)%20and%20u%3D%22c%22&amp;amp;format=json&amp;amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" target="_blank" rel="nofollow noopener noreferrer"&gt;http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Adana%2CAdana%2C%20tr%22)%20and%20u%3D%22c%22&amp;amp;format=json&amp;amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="58428-adana.jpg" style="width: 797px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17090i2F0A09828069C332/image-size/medium?v=v2&amp;amp;px=400" role="button" title="58428-adana.jpg" alt="58428-adana.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Query 2;&lt;/P&gt;&lt;P&gt;&lt;A href="http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Ankara%2CAnkara%2C%20tr%22)%20and%20u%3D%22c%22&amp;amp;format=json&amp;amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" target="_blank" rel="nofollow noopener noreferrer"&gt;http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Ankara%2CAnkara%2C%20tr%22)%20and%20u%3D%22c%22&amp;amp;format=json&amp;amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="58429-ankara.jpg" style="width: 794px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17091i94E1B573CB1872A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="58429-ankara.jpg" alt="58429-ankara.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do I submit them on a single processor?&lt;/P&gt;&lt;P&gt;there are 81 provinces like this. I do not want to do it all separately.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:49:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205539#M73931</guid>
      <dc:creator>muratmentese1</dc:creator>
      <dc:date>2019-08-18T04:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi GetHTTP more than one single processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205540#M73932</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/56179/muratmentese.html" nodeid="56179" target="_blank"&gt;@Murat Menteşe &lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Instead of &lt;STRONG&gt;GetHTTP&lt;/STRONG&gt; processor use &lt;STRONG&gt;InvokeHTTP&lt;/STRONG&gt; processor,InvokeHTTP Processor accepts incoming connections. &lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;Generate Flowfile Processo&lt;/STRONG&gt;r and add all your URL's in GenerateFlowfile processors as each line having one URL in it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Generate Flowfile Processor:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Configs:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="58430-generateflowfile.png" style="width: 2646px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17086i6FBBA6EAB4EFCB1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="58430-generateflowfile.png" alt="58430-generateflowfile.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As shown in the above screenshot add all URL's one per each line in CustomText property and In Scheduling tab change the frequency of run.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;SplitText:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We are Triggering GenerateFlowfile processor and we are going to have onefile having all url's in it so we are going to split the file into 1 Line as new flowfile now.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Configs:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Line Split Count&lt;/P&gt;&lt;PRE&gt;1&lt;/PRE&gt;&lt;P&gt;THen connect Splits relation from SplitText processor to ExtractText processor.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;ExtractText:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We are going to Extract the contents of flowfile and adding as flowfile attribute in this processor then the extracted attribute is going to be used in InvokeHTTP processor.&lt;/P&gt;&lt;P&gt;Add new property in this processor by clicking on + sign at right corner&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;URL
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;(.*)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="58431-extracttext.png" style="width: 1954px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17087i27B82982DE5CEC6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="58431-extracttext.png" alt="58431-extracttext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;ControlRate:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it's an optional processor as we are going to control the rate of flowfiles that are going to InvokeHTTP processor.&lt;/P&gt;&lt;P&gt;Rate Control Criteria&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;flowfile count&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Maximum Rate&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;1&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Rate Controlled Attribute
No value set
Time Duration&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;1 min&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;so with this configs we are going to process one flowfile per 1 min but you can change all this configs as per your requirements.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;InvokeHTTP:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="58432-invokehttp.png" style="width: 1526px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17088i9D4C76054FFD985A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="58432-invokehttp.png" alt="58432-invokehttp.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;we have configured &lt;STRONG&gt;RemoteURL property as ${URL}&lt;/STRONG&gt; , this &lt;STRONG&gt;URL attribute we have added in ExtractText Processor.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So we don't need to use &lt;STRONG&gt;Seperate GetHTTP processors for each Request by following above approach.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="58433-flow.png" style="width: 1904px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17089i57E87E14FDB108E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="58433-flow.png" alt="58433-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;GenerateFLowFIle //keep all URL's and schedule to run 
SplitText //Split into one line  
Extract Text //extracting URL from content of ff and adding as attribute 
ControlRate(optional) //control the rate of flowfiles passed to next processor
InvokeHTTP //Use the extracted URL attribute and Get Response. &lt;/PRE&gt;&lt;P&gt;I'm attaching my xml here save, use as reference and modify as per your requirements.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/58434-hcc-168913-gethttp.xml" target="_blank"&gt;hcc-168913-gethttp.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:49:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205540#M73932</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T04:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi GetHTTP more than one single processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205541#M73933</link>
      <description>&lt;P&gt;thank you so much. &lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2018 04:58:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205541#M73933</guid>
      <dc:creator>muratmentese1</dc:creator>
      <dc:date>2018-01-28T04:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi GetHTTP more than one single processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205542#M73934</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;what if i have all the URL's in a text file ?&lt;/P&gt;&lt;P&gt;like instead of opening generate flowfile and pasting all the urls manually , is there any way to send all the urls as a text file means without opening nifi console ?&lt;/P&gt;&lt;P&gt;by that we can do automate right ?&lt;/P&gt;&lt;P&gt;ManyThanks,&lt;/P&gt;&lt;P&gt;SaiKumar Akula. &lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:37:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205542#M73934</guid>
      <dc:creator>saikumar_akula2</dc:creator>
      <dc:date>2018-07-17T19:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi GetHTTP more than one single processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205543#M73935</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;
I added the attachment file. With the GenerateFlowFile operator I sent the file to the SplitText operator. I've assigned it as a variable in the ExtractText operator.
then I started to get the url diary about InvokeHTTP.  &lt;A rel="user" href="https://community.cloudera.com/users/68230/saikumarakula1106.html" nodeid="68230"&gt;@SaiKumar Akula&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/80572-test-weather.xml"&gt;test-weather.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;hope helps.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 20:00:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205543#M73935</guid>
      <dc:creator>muratmentese1</dc:creator>
      <dc:date>2018-07-17T20:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi GetHTTP more than one single processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205544#M73936</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/68230/saikumarakula1106.html" nodeid="68230"&gt;@SaiKumar Akula&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The same flow above will still work for you except swap out the GenerateFlowFile processor for a GetFile processor.&lt;/P&gt;&lt;P&gt;Simply set a "run schedule" for how often you want the GetFile to read the source file and change "&lt;STRONG&gt;Keep Source File&lt;/STRONG&gt;" property to true.   &lt;BR /&gt;Every time the processor executes it will read the source text file and it can be passed to the splitText processor in above flow and so on...&lt;/P&gt;&lt;P&gt;As long as you don't change the source file's filename, you can edit whenever you want to add new lines or remove URL lines.  -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 20:42:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-GetHTTP-more-than-one-single-processor/m-p/205544#M73936</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-07-17T20:42:31Z</dc:date>
    </item>
  </channel>
</rss>

