<?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 how to check which services/component are in maintenance  mode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195984#M76207</link>
    <description>&lt;P&gt;we run the follwing curl in order to check which services/component are in maintenance  mode &lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X GET &lt;A href="http://localhost:8080/api/v1/clusters/sys76/services?ServiceInfo/maintenance_state=OFF" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/api/v1/clusters/sys76/services?ServiceInfo/maintenance_state=OFF&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;as we can see all zookeeper are in maintenance mode&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="65419-capture.png" style="width: 621px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17972i03E334B12B20642F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="65419-capture.png" alt="65419-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but the output from API still show  - "maintenance_state" : "OFF" &lt;/P&gt;&lt;P&gt;why ? - what its wrong here ?&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;PRE&gt;      "href" : "http://localhost:8080/api/v1/clusters/sys76/services/ZOOKEEPER",
      "ServiceInfo" : {
        "cluster_name" : "sys76",
        "maintenance_state" : "OFF",
        "service_name" : "ZOOKEEPER"
      }
    }
  ]&lt;/PRE&gt;</description>
    <pubDate>Sun, 18 Aug 2019 06:33:10 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2019-08-18T06:33:10Z</dc:date>
    <item>
      <title>how to check which services/component are in maintenance  mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195984#M76207</link>
      <description>&lt;P&gt;we run the follwing curl in order to check which services/component are in maintenance  mode &lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X GET &lt;A href="http://localhost:8080/api/v1/clusters/sys76/services?ServiceInfo/maintenance_state=OFF" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/api/v1/clusters/sys76/services?ServiceInfo/maintenance_state=OFF&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;as we can see all zookeeper are in maintenance mode&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="65419-capture.png" style="width: 621px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17972i03E334B12B20642F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="65419-capture.png" alt="65419-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but the output from API still show  - "maintenance_state" : "OFF" &lt;/P&gt;&lt;P&gt;why ? - what its wrong here ?&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;PRE&gt;      "href" : "http://localhost:8080/api/v1/clusters/sys76/services/ZOOKEEPER",
      "ServiceInfo" : {
        "cluster_name" : "sys76",
        "maintenance_state" : "OFF",
        "service_name" : "ZOOKEEPER"
      }
    }
  ]&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:33:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195984#M76207</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-08-18T06:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to check which services/component are in maintenance  mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195985#M76208</link>
      <description>&lt;P&gt;The is the correct way to check for Maintenance Mode being enabled. Which version of Ambari are you running? When I try this locally, the correct value for `maintenance_state` is reflected. &lt;/P&gt;&lt;P&gt;Also - you're putting the ZooKeeper service itself into MM, right? Putting individual hosts/components into MM won't reflect here.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 23:54:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195985#M76208</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2018-03-21T23:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to check which services/component are in maintenance  mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195986#M76209</link>
      <description>&lt;P&gt;so in that case can we capture the individual hosts/components that are in MM?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 23:57:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195986#M76209</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-03-21T23:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to check which services/component are in maintenance  mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195987#M76210</link>
      <description>&lt;P&gt;we have ambari version - 2.6.1.0&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 23:57:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195987#M76210</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-03-21T23:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to check which services/component are in maintenance  mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195988#M76211</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can use this API to check maintenance mode of components in a particular host&lt;/P&gt;&lt;P&gt;To get maintenance_state of all components&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari"-X GET &lt;A href="http://localhost:8080/api/v1/clusters/sys76/hosts/{hostname}/host_components?fields=HostRoles/maintenance_state" target="_blank"&gt;http://localhost:8080/api/v1/clusters/sys76/hosts/{hostname}/host_components?fields=HostRoles/maintenance_state&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;To get components which have maintenance mode ON&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari"-X GET &lt;A href="http://localhost:8080/api/v1/clusters/sys76/hosts/{hostname}/host_components?HostRoles/maintenance_state=ON" target="_blank"&gt;http://localhost:8080/api/v1/clusters/sys76/hosts/{hostname}/host_components?HostRoles/maintenance_state=ON&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;To get components which have maintenance mode OFF&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari"-X GET &lt;A href="http://localhost:8080/api/v1/clusters/sys76/hosts/{hostname}/host_components?HostRoles/maintenance_state=OFF" target="_blank"&gt;http://localhost:8080/api/v1/clusters/sys76/hosts/{hostname}/host_components?HostRoles/maintenance_state=OFF&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Note: Replace the hostname with the original hostname in the curl call&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-Aditya&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 00:09:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195988#M76211</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-03-22T00:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to check which services/component are in maintenance  mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195989#M76212</link>
      <description>&lt;P&gt;@Aditya&lt;/P&gt;&lt;P&gt;do you think we must check that no maintenance mode in component before HDP upgrade ? &lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 00:26:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195989#M76212</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-03-22T00:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to check which services/component are in maintenance  mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195990#M76213</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I think it is a good idea to check that no component is in maintenance mode. Ambari recommends that all the services must be up and running before upgrade and all the service checks should pass before the upgrade.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 00:37:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195990#M76213</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-03-22T00:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to check which services/component are in maintenance  mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195991#M76214</link>
      <description>&lt;P&gt;Yes, you can - the above calls can capture it on a host/component basis. &lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 02:23:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-which-services-component-are-in-maintenance/m-p/195991#M76214</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2018-03-22T02:23:40Z</dc:date>
    </item>
  </channel>
</rss>

