<?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: Need Guidance : Information of restarts for cloudera services in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38744#M22633</link>
    <description>&lt;P&gt;Thanks for your response. We are building a custom UI to display messages when cloudera manager stops/starts the services through API. Is it possible to stop individual services through API. rather than all ? .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a specific table it stores relevant data for us to query and check?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are interested to understand through API., what role each node belongs to ? What is the API call.?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sorry for so many questions . I appreciate your response.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2016 18:59:04 GMT</pubDate>
    <dc:creator>positivekarma</dc:creator>
    <dc:date>2016-03-16T18:59:04Z</dc:date>
    <item>
      <title>Need Guidance : Information of restarts for cloudera services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38606#M22631</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where does Cloudera manager store restart of services information in the database ? We are using the default postgres database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Srikrishna&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:08:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38606#M22631</guid>
      <dc:creator>positivekarma</dc:creator>
      <dc:date>2022-09-16T10:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need Guidance : Information of restarts for cloudera services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38696#M22632</link>
      <description>&lt;P&gt;Can you summarise your end goal, so I can provide you with an appropriate information.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 16:08:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38696#M22632</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2016-03-15T16:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need Guidance : Information of restarts for cloudera services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38744#M22633</link>
      <description>&lt;P&gt;Thanks for your response. We are building a custom UI to display messages when cloudera manager stops/starts the services through API. Is it possible to stop individual services through API. rather than all ? .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a specific table it stores relevant data for us to query and check?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are interested to understand through API., what role each node belongs to ? What is the API call.?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sorry for so many questions . I appreciate your response.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 18:59:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38744#M22633</guid>
      <dc:creator>positivekarma</dc:creator>
      <dc:date>2016-03-16T18:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need Guidance : Information of restarts for cloudera services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38750#M22634</link>
      <description>&lt;P&gt;Yes you can stop service and it's individual roles via CM API [1]&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Is there a specific table it stores relevant data for us to query and check?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Service status can be check directly from the CM API querying the relevant endpoint, specifically for the service you'd need to GET (open your browser) to the service endpoint [2] which will give you its state [3]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a start point you could see the example [4a][4b]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://github.com/cloudera/cm_api/wiki/Start-Stop-Restart-JobTracker-Role" target="_blank"&gt;https://github.com/cloudera/cm_api/wiki/Start-Stop-Restart-JobTracker-Role&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[2]&amp;nbsp;&lt;A href="https://cloudera.github.io/cm_api/apidocs/v11/path__clusters_-clusterName-_services_-serviceName-.html#GET" target="_blank"&gt;https://cloudera.github.io/cm_api/apidocs/v11/path__clusters_-clusterName-_services_-serviceName-.html#GET&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[3]&amp;nbsp;&lt;A href="https://cloudera.github.io/cm_api/apidocs/v11/ns0_apiServiceState.html" target="_blank"&gt;https://cloudera.github.io/cm_api/apidocs/v11/ns0_apiServiceState.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[4a]&amp;nbsp;&lt;A href="https://github.com/cloudera/cm_api/tree/master/python/examples" target="_blank"&gt;https://github.com/cloudera/cm_api/tree/master/python/examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[4b]&amp;nbsp;&lt;A href="https://github.com/gdgt/cmapi" target="_blank"&gt;https://github.com/gdgt/cmapi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 21:48:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38750#M22634</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2016-03-16T21:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need Guidance : Information of restarts for cloudera services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38876#M22635</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks . Based on the github &amp;nbsp;, I am able to get all hosts ,ip . For eg if &amp;nbsp;some of the hosts are down ,Is there is an API call to check ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ip hostname down&lt;/P&gt;&lt;P&gt;ip hostname up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;srikrishna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Python 2.7.2+ (default, Oct  4 2011, 20:06:09) 
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt; from cm_api.api_client import ApiResource
&amp;gt;&amp;gt;&amp;gt; api = ApiResource('rhel62-1.ent.cloudera.com', 7180, 'admin', 'admin')
&amp;gt;&amp;gt;&amp;gt; for h in api.get_all_hosts():
...   print h.hostname
... 
rhel62-2.ent.cloudera.com
rhel62-4.ent.cloudera.com
rhel62-3.ent.cloudera.com
rhel62-1.ent.cloudera.com
&amp;gt;&amp;gt;&amp;gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 09:15:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-Guidance-Information-of-restarts-for-cloudera-services/m-p/38876#M22635</guid>
      <dc:creator>positivekarma</dc:creator>
      <dc:date>2016-03-21T09:15:13Z</dc:date>
    </item>
  </channel>
</rss>

