<?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: how to configure listenerhttp processor in NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297334#M218649</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/37332"&gt;@hegdemahendra&lt;/a&gt;&amp;nbsp;thanks for solution...but I really want to know listenhttp processor configuration....and your explanation method is awesome with flow and configuration. Thank alot ....&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2020 06:51:22 GMT</pubDate>
    <dc:creator>renuu</dc:creator>
    <dc:date>2020-06-04T06:51:22Z</dc:date>
    <item>
      <title>how to configure listenerhttp processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297135#M218614</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We want to configure listenhttp processor that listen our web service. question is what are the configuration in http listener processor in nifi such that when we will make curl post request this ListenHttp processor will catch the update. basically i didn't understand what i have to put in Base path (is it i have to put nifi address i.e&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://localhost:8080/contentListener" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/contentListener&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;or our web app service URL???) what is contentListener. And is it i have to put our web app port number in listening port? in the request command what i have to put in url part&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl --request POST 'http://(here i have to used the nifi url)' -H 'Authorization: Key demo-key&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i know this is very basic question but i'm just using this don't know any thing about nifi and curl command .....thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BNucf.png" style="width: 613px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27744i34C96A14CCCC7609/image-size/large?v=v2&amp;amp;px=999" role="button" title="BNucf.png" alt="BNucf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 09:34:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297135#M218614</guid>
      <dc:creator>renuu</dc:creator>
      <dc:date>2020-06-03T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure listenerhttp processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297171#M218633</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78219"&gt;@renuu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use'HandleHttpRequest' to listen for incoming GET/POST request on specific port and respond back using 'HandleHttpResponse' processor.&lt;BR /&gt;Add one Http Context Map controller service and use the same in both processor to map request to response, thats it.&lt;BR /&gt;&lt;BR /&gt;Take a look at the below sample configurations.&lt;/P&gt;&lt;P&gt;This HandleHTTPRequest listens for http requests on port 8888 &amp;amp; specifi path i.e /curlRequest.&lt;BR /&gt;'Allowed path' is optional, if you just want listen for any request then you ca remove that value.&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="HandleHTTPRequest processor" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27754i97F6178155759BC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-03 at 9.36.33 PM.png" alt="HandleHTTPRequest processor" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;HandleHTTPRequest processor&lt;/span&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;HandleHTTPResponse responds to client with 201 response code and any content which is flowfile content.&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="HandleHTTPResponse processor" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27755i9048050967AB822B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-03 at 9.36.46 PM.png" alt="HandleHTTPResponse processor" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;HandleHTTPResponse processor&lt;/span&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of curl command I have invoked above listener with another NiFi processor (which you can consider as client)&lt;BR /&gt;InvokeHttp processor with target end point as above HandleHTTPRequest host &amp;amp; port.&lt;BR /&gt;I am using host as localhost as I am invoking form Nifi (local) only.&lt;BR /&gt;For curl command form outside, you need to use your nifi host name instead of 'localhost'.&lt;BR /&gt;So that would be 'http://&amp;lt;hostname&amp;gt;':8888/curlRequest&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-03 at 9.45.54 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27756i40A0EFE33CE0AFDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-03 at 9.45.54 PM.png" alt="Screenshot 2020-06-03 at 9.45.54 PM.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;All together -&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-03 at 9.49.06 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27757iE015E5FB836724F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-03 at 9.49.06 PM.png" alt="Screenshot 2020-06-03 at 9.49.06 PM.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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please ACCEPT the solution if it helps/resolves your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 16:20:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297171#M218633</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2020-06-03T16:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure listenerhttp processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297334#M218649</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/37332"&gt;@hegdemahendra&lt;/a&gt;&amp;nbsp;thanks for solution...but I really want to know listenhttp processor configuration....and your explanation method is awesome with flow and configuration. Thank alot ....&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 06:51:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297334#M218649</guid>
      <dc:creator>renuu</dc:creator>
      <dc:date>2020-06-04T06:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure listenerhttp processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297344#M218652</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78219"&gt;@renuu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ListenHTTP also works same way -&lt;BR /&gt;Find below sample configuration and how to invoke using curl.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ListenHTTP listens on a specific port (in my case 8889) and a base path ('/curlRequestListener')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-04 at 2.17.45 PM.png" style="width: 878px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27882i29DE01144CFCD13E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-04 at 2.17.45 PM.png" alt="Screenshot 2020-06-04 at 2.17.45 PM.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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-04 at 2.17.55 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27883i7B414010B6914AD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-04 at 2.17.55 PM.png" alt="Screenshot 2020-06-04 at 2.17.55 PM.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;Using below curl command from terminal you can post data -&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;curl -d '&lt;EM&gt;my request data&lt;/EM&gt;'&lt;/STRONG&gt;&lt;SPAN class="Apple-converted-space"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;A href="https://community.cloudera.com/" target="_blank"&gt;http://&amp;lt;nifihostname&amp;gt;:8889/curlRequestListener&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;EM&gt;'my request data' is the sample data which I am posting to the ListenHTTP processor and same is received in processors and queued as flowfile.&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Received request&amp;nbsp;Flowfile content -&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-06-04 at 2.18.29 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27884iA85C7F8FAC4938B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-06-04 at 2.18.29 PM.png" alt="Screenshot 2020-06-04 at 2.18.29 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 08:55:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297344#M218652</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2020-06-04T08:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure listenerhttp processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297349#M218655</link>
      <description>&lt;P class="lia-align-left"&gt;awesome thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/37332"&gt;@hegdemahendra&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 09:33:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/297349#M218655</guid>
      <dc:creator>renuu</dc:creator>
      <dc:date>2020-06-04T09:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure listenerhttp processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/331330#M230860</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/37332"&gt;@hegdemahendra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried listenhttp processor. But I'm getting following error.&lt;/P&gt;&lt;PRE&gt;ListenHTTP[id=70ce3e99-017d-1000-1516-26d82190ff59] Failed to process session due to Failed to initialize the server: java.net.BindException: Address already in use: bind
↳ causes: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8443
↳ causes: org.apache.nifi.processor.exception.ProcessException: Failed to initialize the server&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Can you help me in fixing this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 12:51:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/331330#M230860</guid>
      <dc:creator>krishna123</dc:creator>
      <dc:date>2021-11-30T12:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure listenerhttp processor in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/355570#M237107</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92737"&gt;@krishna123&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try changing the port, you won't face the same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 07:29:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-configure-listenerhttp-processor-in-NIFI/m-p/355570#M237107</guid>
      <dc:creator>JagadeeshJinka</dc:creator>
      <dc:date>2022-10-20T07:29:50Z</dc:date>
    </item>
  </channel>
</rss>

