<?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 stop and start processor-group in NIFI using REST in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180016#M142262</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16412/simonjespersen.html" nodeid="16412"&gt;@Simon Jespersen&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Tail your nifi-user.log while you execute the curl command.  This will give you exactly what user identity string is being passed to the NiFi authorizer.  You can then compare that string with what has been added to and authorized within your NiFi.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2018 21:37:55 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2018-03-02T21:37:55Z</dc:date>
    <item>
      <title>how to stop and start processor-group in NIFI using REST</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180013#M142259</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am trying to start and stop my processor-group with a curl commando &lt;/P&gt;&lt;P&gt;Im on a hdf 2.1.1 using kerberos &lt;/P&gt;&lt;PRE&gt;curl -k -i -H 'Content-Type: application/json' -XPUT -d '{"id":"cdb54c9a-0158-1000-5566-c45ca9692f85","state":"RUNNING"}'  &lt;A href="https://localhost:9091//nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3" target="_blank"&gt;https://localhost:9091//nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;the response from NIFI is following &lt;/P&gt;&lt;PRE&gt;HTTP/1.1 405 JSPs only permit GET POST or HEAD
Date: Fri, 02 Mar 2018 09:10:03 GMT
Content-Length: 0
Server: Jetty(9.3.9.v20160517)&lt;/PRE&gt;&lt;P&gt;If i remove the -k param i got following  response &lt;/P&gt;&lt;PRE&gt;curl  -i -H 'Content-Type: application/json' -XPUT -d '{"id":"cdb54c9a-0158-1000-5566-c45ca9692f85","state":"RUNNING"}'  &lt;A href="https://localhost:9091//nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3" target="_blank"&gt;https://localhost:9091//nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3&lt;/A&gt;
curl: (60) Peer's certificate issuer has been marked as not trusted by the user.
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.
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;/PRE&gt;&lt;P&gt;what can i do to obtain this from commandline &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 17:14:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180013#M142259</guid>
      <dc:creator>simon_jespersen</dc:creator>
      <dc:date>2018-03-02T17:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop and start processor-group in NIFI using REST</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180014#M142260</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16412/simonjespersen.html" nodeid="16412"&gt;@Simon Jespersen&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;You are having&lt;STRONG&gt; two forward slashes in your curl call&lt;/STRONG&gt; &lt;STRONG&gt;after &lt;A href="https://localhost:9091" target="_blank"&gt;https://localhost:9091&lt;/A&gt;&lt;/STRONG&gt;, just use one forward slash and run again the your curl call&lt;/P&gt;&lt;PRE&gt;curl -k -i -H 'Content-Type: application/json'-XPUT -d '{"id":"cdb54c9a-0158-1000-5566-c45ca9692f85","state":"RUNNING"}'  &lt;A href="https://localhost:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3" target="_blank"&gt;https://localhost:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;If you are &lt;STRONG&gt;still facing some issues&lt;/STRONG&gt; then &lt;STRONG&gt;follow the below steps&lt;/STRONG&gt; to start/stop processor groups in kerberos HDF2.1.1.&lt;/P&gt;&lt;P&gt; if our HDF is Kerberised then we need to pass our access token with CURL api call.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Steps to Start/Stop Processor Group:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;1.F&lt;/U&gt;irst do kinit in your NiFi node&lt;/P&gt;&lt;PRE&gt;bash$ kinit&lt;/PRE&gt;&lt;P&gt;2.Check the validity of the kerberos ticket and make sure your your ticket is valid&lt;/P&gt;&lt;PRE&gt;bash$ klist&lt;/PRE&gt;&lt;P&gt;3. Now create access token &lt;/P&gt;&lt;PRE&gt;bash$ token=`curl -k -X POST --negotiate -u : &lt;A href="https://localhost:9091/nifi-api/access/kerberos`" target="_blank"&gt;https://localhost:9091/nifi-api/access/kerberos`&lt;/A&gt; &lt;A href="https://localhost:9091/nifi/" target="_blank"&gt;https://localhost:9091/nifi/&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;4.Use the created token in your curl call to &lt;STRONG&gt;start processor group&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;bash$ curl -k --header "Authorization: Bearer $token" -i -H 'Content-Type: application/json' -XPUT -d'{"id":"cdb54c9a-0158-1000-5566-c45ca9692f85","state":"RUNNING"}' &lt;A href="https://localhost:9091/nifi-api/flow/process-groups/cdb54c9a-0158-1000-5566-c45ca9692f85" target="_blank"&gt;https://localhost:9091/nifi-api/flow/process-groups/cdb54c9a-0158-1000-5566-c45ca9692f85&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;5.Use the created token in your curl call to &lt;STRONG&gt;stop processor group&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;bash$ curl -k --header "Authorization: Bearer $token" -i -H 'Content-Type: application/json' -XPUT -d'{"id":"cdb54c9a-0158-1000-5566-c45ca9692f85","state":"STOPPED"}' &lt;A href="https://localhost:9091/nifi-api/flow/process-groups/cdb54c9a-0158-1000-5566-c45ca9692f85" target="_blank"&gt;https://localhost:9091/nifi-api/flow/process-groups/cdb54c9a-0158-1000-5566-c45ca9692f85&lt;/A&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:28:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180014#M142260</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-03-02T18:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop and start processor-group in NIFI using REST</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180015#M142261</link>
      <description>&lt;P&gt;It seems to work when i send the header "Authorization: Bearer $token" But then another problem appear&lt;/P&gt;&lt;P&gt;I did following:&lt;/P&gt;&lt;PRE&gt;1.&lt;BR /&gt;myuser@localhost ~]$ kinit
Password for myuser@CCTA.DK:
myuser@localhost ~]$&lt;/PRE&gt;&lt;P&gt;2. &lt;/P&gt;&lt;PRE&gt;myuser@localhost ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_742017602
Default principal: myuser@CCTA.DK&lt;BR /&gt;Valid starting       Expires              Service principal &lt;BR /&gt;03/02/2018 14:09:46  03/03/2018 00:09:46  krbtgt/CCTA.DK@CCTA.DK
        renew until 03/09/2018 14:09:39
myuser@localhost ~]$&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;3.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;PRE&gt;myuser@localhost ~]$ token=`curl -k -X POST --negotiate -u : &lt;A href="https://sktudv01hdf01.ccta.dk:9091/nifi-api/access/kerberos`" target="_blank"&gt;https://sktudv01hdf01.ccta.dk:9091/nifi-api/access/kerberos`&lt;/A&gt;                                                                                                                % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0   269    0     0   2112      0 --:--:-- --:--:-- --:--:--  2112
myuser@localhost ~]$&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;4.&lt;/P&gt;&lt;PRE&gt;myuser@localhost ~]$ curl -k --header "Authorization: Bearer $token" -i -H 'Content-Type: application/json' -XPUT -d'{"id":"a9d5c45f-015b-1000-0000-00006d9844d3","state":"STOPPED"}' &lt;A href="https://sktudv01hdf01.ccta.dk:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3" target="_blank"&gt;https://sktudv01hdf01.ccta.dk:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3&lt;/A&gt;
HTTP/1.1 403 Forbidden
Date: Fri, 02 Mar 2018 13:10:50 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Server: Jetty(9.3.9.v20160517)
Unable to perform the desired action due to insufficient permissions. Contact the system administrator.myus

er@localhost ~]$&lt;/PRE&gt;&lt;P&gt;My user should have admin rights &lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 21:18:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180015#M142261</guid>
      <dc:creator>simon_jespersen</dc:creator>
      <dc:date>2018-03-02T21:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop and start processor-group in NIFI using REST</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180016#M142262</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16412/simonjespersen.html" nodeid="16412"&gt;@Simon Jespersen&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Tail your nifi-user.log while you execute the curl command.  This will give you exactly what user identity string is being passed to the NiFi authorizer.  You can then compare that string with what has been added to and authorized within your NiFi.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 21:37:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180016#M142262</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-03-02T21:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop and start processor-group in NIFI using REST</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180017#M142263</link>
      <description>&lt;P&gt;The NIFI log when i execute the curl string &lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;018-03-02 14:49:51,442 INFO [NiFi Web Server-21012857] o.a.n.w.s.NiFiAuthenticationFilter Attempting request for (eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ3MjA5NjBAQ0NUQS5ESyIsImlzcyI6IktlcmJlcm9zU2VydmljZSIsImF1ZCI6IktlcmJlcm9zU2VydmljZSIsInByZWZlcnJlZF91c2VybmFtZSI6IncyMDk2MEBDQ1RBLkRLIiwia2lkIjoxNSwiZXhwIjoxNTIwMDQxMzczLCJpYXQiOjE1MTk5OTgxNzN9.OX5DsmHY4Y6mpxqEMGIvT4q_FbHJUDzLItMbjM4heBI) PUT &lt;A href="https://sktudv01hdf01.ccta.dk:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3" target="_blank"&gt;https://sktudv01hdf01.ccta.dk:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3&lt;/A&gt; (source ip: 172.20.242.82)
2018-03-02 14:49:51,442 INFO [NiFi Web Server-21012857] o.a.n.w.s.NiFiAuthenticationFilter Authentication success for myuser
2018-03-02 14:49:51,447 INFO [NiFi Web Server-21004041] o.a.n.w.s.NiFiAuthenticationFilter Attempting request for (&amp;lt;myuser&amp;gt;&amp;lt;CN=sktudv01hdf01.ccta.dk, OU=CCTA.DK&amp;gt;) PUT &lt;A href="https://sktudv01hdf01.ccta.dk:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3" target="_blank"&gt;https://sktudv01hdf01.ccta.dk:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3&lt;/A&gt; (source ip: 172.20.242.82)
2018-03-02 14:49:51,447 INFO [NiFi Web Server-21004041] o.a.n.w.s.NiFiAuthenticationFilter Authentication success for myuser
2018-03-02 14:49:51,448 INFO [NiFi Web Server-21004041] o.a.n.w.a.c.AccessDeniedExceptionMapper myuser does not have permission to access the requested resource. Returning Forbidden response.
2018-03-02 14:49:51,452 INFO [NiFi Web Server-21012857] o.a.n.w.a.c.AccessDeniedExceptionMapper myuser does not have permission to access the requested resource. Returning Forbidden response.
2018-03-02 14:49:51,452 INFO [NiFi Web Server-21009169] o.a.n.w.s.NiFiAuthenticationFilter Attempting request for (&amp;lt;myuser&amp;gt;&amp;lt;CN=sktudv01hdf01.ccta.dk, OU=CCTA.DK&amp;gt;) PUT &lt;A href="https://sktudv01hdf01.ccta.dk:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3" target="_blank"&gt;https://sktudv01hdf01.ccta.dk:9091/nifi-api/flow/process-groups/a9d5c45f-015b-1000-0000-00006d9844d3&lt;/A&gt; (source ip: 172.20.242.82)
2018-03-02 14:49:51,452 INFO [NiFi Web Server-21009169] o.a.n.w.s.NiFiAuthenticationFilter Authentication success for myuser&lt;BR /&gt;


&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 21:51:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180017#M142263</guid>
      <dc:creator>simon_jespersen</dc:creator>
      <dc:date>2018-03-02T21:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop and start processor-group in NIFI using REST</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180018#M142264</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16412/simonjespersen.html" nodeid="16412"&gt;@Simon Jespersen&lt;/A&gt; &lt;/P&gt;&lt;P&gt;It states that "myuser" is not authorized to access this resource.  Would need to look at your authorizer now to determine why. &lt;/P&gt;&lt;P&gt;Assuming you are using NiFi's built-in file based authorizer, you would need to check teh users.xml and authorizations.xml files or carefullly inspect what permissions have been created for "myuser" within teh NiFi UI.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 22:01:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/180018#M142264</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-03-02T22:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop and start processor-group in NIFI using REST</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/398223#M250137</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/55311"&gt;@Shu_ashu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I want to make this call from the postman so what I need to do then right now I'm getting forbidden error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 07:49:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/398223#M250137</guid>
      <dc:creator>pankajgaikwad</dc:creator>
      <dc:date>2024-11-29T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop and start processor-group in NIFI using REST</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/398253#M250148</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/119236"&gt;@pankajgaikwad&lt;/a&gt;&amp;nbsp;As this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 14:18:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-stop-and-start-processor-group-in-NIFI-using-REST/m-p/398253#M250148</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-11-29T14:18:19Z</dc:date>
    </item>
  </channel>
</rss>

