<?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 set ambari service to maintenance mode by API in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237876#M199688</link>
    <description>&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;as all know we can set any service from ambari GUI to maintenance mode&lt;/P&gt;&lt;P&gt;so&lt;/P&gt;&lt;P&gt;is it possible to set any ambari service to maintenance mode by API command ?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Apr 2019 02:37:52 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2019-04-07T02:37:52Z</dc:date>
    <item>
      <title>How to set ambari service to maintenance mode by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237876#M199688</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;as all know we can set any service from ambari GUI to maintenance mode&lt;/P&gt;&lt;P&gt;so&lt;/P&gt;&lt;P&gt;is it possible to set any ambari service to maintenance mode by API command ?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 02:37:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237876#M199688</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-04-07T02:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set ambari service to maintenance mode by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237877#M199689</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;BR /&gt;Example Putting a Service (Spark2) in Maintenance Mode using API call:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Turning ON maintenance Mode for Spark2 Service&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl -sH "X-Requested-By: ambari" -u admin:admin -X PUT &amp;nbsp;-d '{"RequestInfo":{"context":"Turn On Maintenance Mode for Spark2"},"Body":{"ServiceInfo":{"maintenance_state":"ON"}}}' &amp;nbsp;http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/services/SPARK2&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Turning OFF maintenance Mode for Spark2 Service&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl -sH "X-Requested-By: ambari" -u admin:admin -X PUT &amp;nbsp;-d '{"RequestInfo":{"context":"Turn Off Maintenance Mode for Spark2"},"Body":{"ServiceInfo":{"maintenance_state":"OFF"}}}' &amp;nbsp;http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/services/SPARK2&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please change the cluster name "NewCluster" and ambari hostname + credentials according to yoiur env.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 02:54:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237877#M199689</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-04-07T02:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to set ambari service to maintenance mode by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237878#M199690</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/5258"&gt;@Jay&lt;/a&gt; , when we rrun this API we seen that also spark history became with maintenance mode&lt;/P&gt;&lt;P&gt;is it possible to set maintenance mode only to the thrift server and not to spark history ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="107691-capture.png" style="width: 489px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14176i1BB9312093220FEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="107691-capture.png" alt="107691-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:07:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237878#M199690</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-08-17T23:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set ambari service to maintenance mode by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237879#M199691</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;Yes, it can be done something as described in:&lt;BR /&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="https://community.hortonworks.com/questions/244121/api-how-to-set-both-thrift-server-in-ambari-to-mai.html?childToView=244130#answer-244130" target="_blank"&gt;https://community.hortonworks.com/questions/244121/api-how-to-set-both-thrift-server-in-ambari-to-mai.html?childToView=244130#answer-244130&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 03:10:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237879#M199691</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-04-07T03:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to set ambari service to maintenance mode by API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237880#M199692</link>
      <description>&lt;P&gt;Hi can you put datanode in maintenance through bash command or direct python command?  I have ginormous  and i want to quickly stop and start services. I am using hadoop-daemon.sh  start to to start a datanode. I know maintenence mode is not from hadoop API that is built as part of Ambari.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 04:46:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-set-ambari-service-to-maintenance-mode-by-API/m-p/237880#M199692</guid>
      <dc:creator>meenakrajani</dc:creator>
      <dc:date>2019-05-14T04:46:44Z</dc:date>
    </item>
  </channel>
</rss>

