<?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: CLI tool to manage cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/289926#M214553</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74250"&gt;@sharathkumar13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the Cloudera Manager API call something like following to start/stop Kafka Service (or any desired service)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In order to stop "kafka" service:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# curl -iLv -u admin:admin -X POST --header 'Accept: application/json' 'ttp://dc-1.example.com:7180/api/v40/clusters/TestCluster/services/kafka/commands/stop'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;In order to start "kafka" Service&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -iLv -u admin:admin -X POST --header 'Accept: application/json' 'ttp://dc-1.example.com:7180/api/v40/clusters/TestCluster/services/kafka/commands/start'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;BR /&gt;Please also take a look at the Cloudera Manager Swagger APIs.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Cloudera Manager(CM) 6.0 introduces new &lt;EM&gt;&lt;STRONG&gt;Python API client cm_client&lt;/STRONG&gt;&lt;/EM&gt; based on&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://swagger.io/" target="_blank"&gt;Swagger&lt;/A&gt;&lt;SPAN&gt;. This new API client supports all CM API versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cloudera.github.io/cm_api/docs/python-client-swagger/" target="_blank"&gt;https://cloudera.github.io/cm_api/docs/python-client-swagger/&lt;/A&gt;&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here please replace the CM credentials and cluster name in CM host port in the above mentioned API calls.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 12:06:26 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2020-02-17T12:06:26Z</dc:date>
    <item>
      <title>CLI tool to manage cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/289907#M214536</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm planning to bring the Kafka as a Service. I would need any client or command-line tools to add a cluster. Right now, I'm able to add from Cloudera Manager, but I would want to do it from the CLI. Do we have any API or any leads to get this done?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 11:11:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/289907#M214536</guid>
      <dc:creator>sharathkumar13</dc:creator>
      <dc:date>2020-02-17T11:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: CLI tool to manage cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/289920#M214547</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74250"&gt;@sharathkumar13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cloudera Manager comes with an API. Here is a link to the Cloudera Manager API guide:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cloudera.github.io/cm_api/docs/quick-start/" target="_blank"&gt;http://cloudera.github.io/cm_api/docs/quick-start/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 11:24:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/289920#M214547</guid>
      <dc:creator>StevenOD</dc:creator>
      <dc:date>2020-02-17T11:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: CLI tool to manage cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/289926#M214553</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74250"&gt;@sharathkumar13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the Cloudera Manager API call something like following to start/stop Kafka Service (or any desired service)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In order to stop "kafka" service:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# curl -iLv -u admin:admin -X POST --header 'Accept: application/json' 'ttp://dc-1.example.com:7180/api/v40/clusters/TestCluster/services/kafka/commands/stop'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;In order to start "kafka" Service&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -iLv -u admin:admin -X POST --header 'Accept: application/json' 'ttp://dc-1.example.com:7180/api/v40/clusters/TestCluster/services/kafka/commands/start'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;BR /&gt;Please also take a look at the Cloudera Manager Swagger APIs.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Cloudera Manager(CM) 6.0 introduces new &lt;EM&gt;&lt;STRONG&gt;Python API client cm_client&lt;/STRONG&gt;&lt;/EM&gt; based on&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://swagger.io/" target="_blank"&gt;Swagger&lt;/A&gt;&lt;SPAN&gt;. This new API client supports all CM API versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cloudera.github.io/cm_api/docs/python-client-swagger/" target="_blank"&gt;https://cloudera.github.io/cm_api/docs/python-client-swagger/&lt;/A&gt;&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here please replace the CM credentials and cluster name in CM host port in the above mentioned API calls.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 12:06:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/289926#M214553</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2020-02-17T12:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: CLI tool to manage cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/290785#M215099</link>
      <description>&lt;P&gt;Thank you. This help me a lot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 05:43:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/290785#M215099</guid>
      <dc:creator>sharathkumar13</dc:creator>
      <dc:date>2020-03-02T05:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: CLI tool to manage cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/290786#M215100</link>
      <description>&lt;P&gt;Thank You. This helped a lot. I wrote the scripts for the basic functionalities.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 05:44:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CLI-tool-to-manage-cluster/m-p/290786#M215100</guid>
      <dc:creator>sharathkumar13</dc:creator>
      <dc:date>2020-03-02T05:44:40Z</dc:date>
    </item>
  </channel>
</rss>

