<?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 do I stop a NiFi role on a single host? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-stop-a-NiFi-role-on-a-single-host/m-p/410897#M252934</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95024"&gt;@EFasdfSDfaSDFG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out to Cloudera Commnuity&lt;/P&gt;&lt;P&gt;Yes stopping a particular role is possible. Please try the below steps&lt;/P&gt;&lt;P&gt;Please get the roles running on a particular host using the following endpoint&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/" target="_blank"&gt;https://FQDN_CLUSTER:7183/api/v48/hosts/&amp;lt;host-uuid&amp;gt;?view=FULL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Replace host FQDN and Cluster UUID above and now copy the exact role name&lt;/P&gt;&lt;P&gt;For eg&amp;gt;&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    "clusterName" : "Cluster 1",
    "serviceName" : "SOLR-1",
    "roleName" : "SOLR-1-SOLR_SERVER-edf000ebd88d4bc569416c779527523d",
    "healthSummary" : "CONCERNING",
    "roleStatus" : "STARTED"&lt;/PRE&gt;&lt;P&gt;Then stop using the below API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X POST "https://&amp;lt;CLuster-FQND&amp;gt;:7183/api/v57/clusters/&amp;lt;Cluster-name&amp;gt;/services/SOLR-1/roleCommands/stop" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"items\": [ \"SOLR-1-SOLR_SERVER-edf000ebd88d4bc569416c779527523d\" ]}"&lt;/P&gt;&lt;P&gt;Let me know if that helps&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jun 2025 06:50:04 GMT</pubDate>
    <dc:creator>upadhyayk04</dc:creator>
    <dc:date>2025-06-26T06:50:04Z</dc:date>
    <item>
      <title>How do I stop a NiFi role on a single host?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-stop-a-NiFi-role-on-a-single-host/m-p/410894#M252932</link>
      <description>&lt;P&gt;I can stop all role instances...&lt;BR /&gt;&lt;BR /&gt;curl -v -k -u me:$pass -X POST "&lt;A href="https://host.domain:7183/api/v54/clusters/cluster1/services/NIFI/roleCommands/stop" target="_blank"&gt;https://host.domain:7183/api/v54/clusters/cluster1/services/NIFI/roleCommands/stop&lt;/A&gt;" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"items\": [ \"NIFI_NODE1\", \"NIFI_NODE2\" ]}"&lt;BR /&gt;&lt;BR /&gt;...but not the role on&amp;nbsp;NIFI_NODE1 only. I am trying to write a script which detects that a node has disconnected, stops the role on that host, moves the flow.xml and flow.json and then restarts the role on that host.&lt;/P&gt;&lt;P&gt;Is there anything that lets me stop and start a role on a single host?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 06:19:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-I-stop-a-NiFi-role-on-a-single-host/m-p/410894#M252932</guid>
      <dc:creator>EFasdfSDfaSDFG</dc:creator>
      <dc:date>2025-06-26T06:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I stop a NiFi role on a single host?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-stop-a-NiFi-role-on-a-single-host/m-p/410897#M252934</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95024"&gt;@EFasdfSDfaSDFG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out to Cloudera Commnuity&lt;/P&gt;&lt;P&gt;Yes stopping a particular role is possible. Please try the below steps&lt;/P&gt;&lt;P&gt;Please get the roles running on a particular host using the following endpoint&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/" target="_blank"&gt;https://FQDN_CLUSTER:7183/api/v48/hosts/&amp;lt;host-uuid&amp;gt;?view=FULL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Replace host FQDN and Cluster UUID above and now copy the exact role name&lt;/P&gt;&lt;P&gt;For eg&amp;gt;&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    "clusterName" : "Cluster 1",
    "serviceName" : "SOLR-1",
    "roleName" : "SOLR-1-SOLR_SERVER-edf000ebd88d4bc569416c779527523d",
    "healthSummary" : "CONCERNING",
    "roleStatus" : "STARTED"&lt;/PRE&gt;&lt;P&gt;Then stop using the below API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X POST "https://&amp;lt;CLuster-FQND&amp;gt;:7183/api/v57/clusters/&amp;lt;Cluster-name&amp;gt;/services/SOLR-1/roleCommands/stop" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"items\": [ \"SOLR-1-SOLR_SERVER-edf000ebd88d4bc569416c779527523d\" ]}"&lt;/P&gt;&lt;P&gt;Let me know if that helps&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 06:50:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-I-stop-a-NiFi-role-on-a-single-host/m-p/410897#M252934</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2025-06-26T06:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I stop a NiFi role on a single host?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-stop-a-NiFi-role-on-a-single-host/m-p/410899#M252936</link>
      <description>&lt;P&gt;Thank you, that's awesome. I wasn't escaping the JSON correctly.&lt;BR /&gt;&lt;BR /&gt;This works for me:&lt;BR /&gt;&lt;BR /&gt;/api/v54/clusters/cluster1/services/NIFI/roleCommands/stop" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"items\": [ \"NIFI_NODE1\"]}"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 07:40:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-I-stop-a-NiFi-role-on-a-single-host/m-p/410899#M252936</guid>
      <dc:creator>EFasdfSDfaSDFG</dc:creator>
      <dc:date>2025-06-26T07:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I stop a NiFi role on a single host?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-I-stop-a-NiFi-role-on-a-single-host/m-p/410932#M252944</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95024"&gt;@EFasdfSDfaSDFG&lt;/a&gt;&amp;nbsp;Great, glad to know that the issue is resolved&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 05:30:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-I-stop-a-NiFi-role-on-a-single-host/m-p/410932#M252944</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2025-06-27T05:30:03Z</dc:date>
    </item>
  </channel>
</rss>

