<?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: Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224452#M79666</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/39226/danielamalan.html" nodeid="39226"&gt;@Dan Alan&lt;/A&gt;!&lt;BR /&gt;Did you check the NIFI Api Rest? &lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/index.html&lt;/A&gt;&lt;BR /&gt;Hope this helps&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 23:01:18 GMT</pubDate>
    <dc:creator>vmurakami</dc:creator>
    <dc:date>2018-06-18T23:01:18Z</dc:date>
    <item>
      <title>Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224450#M79664</link>
      <description>&lt;P&gt;We're looking to automate the shutdown/restart the processor instead of manually stopping through Nifi UI. We don't want to bring down everything through nifi.sh stop, instead looking to bring down a specific processor.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 22:19:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224450#M79664</guid>
      <dc:creator>daniel_amalan</dc:creator>
      <dc:date>2018-06-18T22:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224451#M79665</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39226/danielamalan.html" nodeid="39226"&gt;@Dan Alan&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Anything you can do via the UI, you should be able to accomplish using NiFi's rest-api.&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;The easiest way to learn what specific rest-api call you need to make to accomplish a task is through using the developer tools in your browser.  Perform the action via the UI and then via developer tolls save off that action as a curl command.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;for example (assume secured NiFi using a login provider):&lt;/P&gt;&lt;P&gt;obtain authentication token:&lt;/P&gt;&lt;PRE&gt;token=$(curl -k 'https://&amp;lt;nifi-node&amp;gt;:9091/nifi-api/access/token'  --data 'username=&amp;lt;username&amp;gt;&amp;amp;password=&amp;lt;password&amp;gt;’)&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Then use that token to stop a specific processor by processor UUID:&lt;/P&gt;&lt;PRE&gt;curl 'https://&amp;lt;nifi-node&amp;gt;:9091/nifi-api/processors/aab961c3-6bcd-18e7-0000-00001d74d4ea' -X PUT -H "Authorization: Bearer $token" -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01'  --data-binary '{"revision":{"clientId":"248a328f-a133-1cd0-18c1-8997e36ef898","version":1},"component":{"id":"aab961c3-6bcd-18e7-0000-00001d74d4ea","state":"STOPPED"}}' --compressed --insecure&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;When an "Answer" addresses/solves your question, please select "Accept" beneath that answer.  This encourages user participation in this forum.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 22:47:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224451#M79665</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-06-18T22:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224452#M79666</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/39226/danielamalan.html" nodeid="39226"&gt;@Dan Alan&lt;/A&gt;!&lt;BR /&gt;Did you check the NIFI Api Rest? &lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/index.html&lt;/A&gt;&lt;BR /&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 23:01:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224452#M79666</guid>
      <dc:creator>vmurakami</dc:creator>
      <dc:date>2018-06-18T23:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224453#M79667</link>
      <description>&lt;P&gt;Thank you Matt. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 03:06:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224453#M79667</guid>
      <dc:creator>daniel_amalan</dc:creator>
      <dc:date>2018-06-19T03:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224454#M79668</link>
      <description>&lt;P&gt;Thank you Vinicius.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 03:07:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224454#M79668</guid>
      <dc:creator>daniel_amalan</dc:creator>
      <dc:date>2018-06-19T03:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224455#M79669</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/questions/198100/can-we-stop-a-specific-nifi-processor-ie-consumejm.html#"&gt;@Matt Clarke&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I'm able to stop/start a processor that are under HTTP without any issues. However getting an error with secured nifis (i.e https UI.)&lt;/P&gt;&lt;P&gt;I tried to get the token using below command and it's successful.
&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;token=$(curl 'https://server:port/nifi-api/access/token' --data 'username=userid&amp;amp;password=xxxx') &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But when I tried to get the processors status using $token and --cacert option, it's giving me an error. (/tmp/G2_Root_CA.cer  is the root CA certificate&lt;STRONG&gt;)&lt;/STRONG&gt;
&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$curl 'https://&amp;lt;server_name&amp;gt;:8443/nifi-api/processors/228b783f-0164-1000-f665-9e6e093d6085' &lt;/STRONG&gt;&lt;STRONG&gt;-H "Authorization: Bearer $token"&lt;/STRONG&gt; &lt;STRONG&gt;--cacert /tmp/G2_Root_CA.cer &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;curl: (60) Peer's Certificate issuer is not recognized. More details here: &lt;A href="http://curl.haxx.se/docs/sslcerts.html" target="_blank"&gt;http://curl.haxx.se/docs/sslcerts.html&lt;/A&gt; curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. &lt;/P&gt;&lt;P&gt;If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. &lt;/P&gt;&lt;P&gt;$&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:51:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224455#M79669</guid>
      <dc:creator>daniel_amalan</dc:creator>
      <dc:date>2018-06-21T20:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224456#M79670</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39226/danielamalan.html" nodeid="39226"&gt;@Dan Alan&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Rather then using --cacerts, trying using the -k option in your curl command.  This disables Cleint verificaton of teh server's presented cert.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 21:12:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224456#M79670</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-06-21T21:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224457#M79671</link>
      <description>&lt;P&gt;Perfect. It works now. Thanks again Matt. &lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 21:27:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224457#M79671</guid>
      <dc:creator>daniel_amalan</dc:creator>
      <dc:date>2018-06-21T21:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can we stop a specific Nifi processor (i.e consumeJMS) from the background Linux server?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224458#M79672</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/525/mclarke.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to use the encrypted password or keytab instead of passing the plain password while obtaining the token?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;token=$(curl 'https://server:port/nifi-api/access/token' --data 'username=userid&amp;amp;password=xxxx')&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;</description>
      <pubDate>Thu, 25 Oct 2018 22:11:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-stop-a-specific-Nifi-processor-i-e-consumeJMS-from/m-p/224458#M79672</guid>
      <dc:creator>daniel_amalan</dc:creator>
      <dc:date>2018-10-25T22:11:57Z</dc:date>
    </item>
  </channel>
</rss>

