<?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: Auto-Start Services from disable to enable ( in ambari GUI under ADMIN ) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185318#M67834</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please try this. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step1). &lt;/STRONG&gt; On the ambari server host run the following command:&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin -port 8080 get amb25101.example.com plain_ambari cluster-env  /tmp/cluster-env.txt&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You should see the file "/tmp/cluster-env.txt" content something like following,  NOTICE the "recovery_enabled" is set to "false" (that you need to make as "true")&lt;/P&gt;&lt;PRE&gt;"properties" : {
"agent_mounts_ignore_list" : "",
"alerts_repeat_tolerance" : "1",
"enable_external_ranger" : "false",
"fetch_nonlocal_groups" : "true",
"hide_yarn_memory_widget" : "false",
"ignore_bad_mounts" : "false",
"ignore_groupsusers_create" : "false",
"kerberos_domain" : "EXAMPLE.COM",
"manage_dirs_on_root" : "true",
"managed_hdfs_resource_property_names" : "",
"one_dir_per_partition" : "false",
"override_uid" : "true",
"recovery_enabled" : "false",
.
.
.&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step2). &lt;/STRONG&gt; Now edit the file "/tmp/cluster-env.txt" and set the "recovery_enabled" : "true".&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step3).&lt;/STRONG&gt; Now run the same config.sh command but this time instead of "get" use "set" to set the "recovery_enabled" is set to "true".&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin -port 8080 set amb25101.example.com plain_ambari cluster-env  /tmp/cluster-env.txt&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step4). &lt;/STRONG&gt;refresh the ambari ui and check again the "Auto Recobery Page"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please Change the Following values in the config.sh command&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here in the above command please replace the ambari admin credentials&lt;BR /&gt;"amb25101.example.com" replace with your Ambari Server Hostname&lt;BR /&gt;"plain_ambari" with your ambari Cluster name.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 20:01:34 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-09-11T20:01:34Z</dc:date>
    <item>
      <title>Auto-Start Services from disable to enable ( in ambari GUI under ADMIN )</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185317#M67833</link>
      <description>&lt;P&gt;I want to enable the button - &lt;STRONG&gt;Auto-Start Services from disable to enable by API as described in picture2 (capture2), the default status is as described in picture1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;* need to set the button to enable - in order to configure all the components as auto start &lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6656i273731926D54CD17/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="capture2.png" title="capture2.png" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6658iCE3F7D896062CD5A/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="capture1.png" title="capture1.png" /&gt;</description>
      <pubDate>Mon, 11 Sep 2017 19:42:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185317#M67833</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-09-11T19:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Start Services from disable to enable ( in ambari GUI under ADMIN )</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185318#M67834</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please try this. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step1). &lt;/STRONG&gt; On the ambari server host run the following command:&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin -port 8080 get amb25101.example.com plain_ambari cluster-env  /tmp/cluster-env.txt&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You should see the file "/tmp/cluster-env.txt" content something like following,  NOTICE the "recovery_enabled" is set to "false" (that you need to make as "true")&lt;/P&gt;&lt;PRE&gt;"properties" : {
"agent_mounts_ignore_list" : "",
"alerts_repeat_tolerance" : "1",
"enable_external_ranger" : "false",
"fetch_nonlocal_groups" : "true",
"hide_yarn_memory_widget" : "false",
"ignore_bad_mounts" : "false",
"ignore_groupsusers_create" : "false",
"kerberos_domain" : "EXAMPLE.COM",
"manage_dirs_on_root" : "true",
"managed_hdfs_resource_property_names" : "",
"one_dir_per_partition" : "false",
"override_uid" : "true",
"recovery_enabled" : "false",
.
.
.&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step2). &lt;/STRONG&gt; Now edit the file "/tmp/cluster-env.txt" and set the "recovery_enabled" : "true".&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step3).&lt;/STRONG&gt; Now run the same config.sh command but this time instead of "get" use "set" to set the "recovery_enabled" is set to "true".&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin -port 8080 set amb25101.example.com plain_ambari cluster-env  /tmp/cluster-env.txt&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step4). &lt;/STRONG&gt;refresh the ambari ui and check again the "Auto Recobery Page"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please Change the Following values in the config.sh command&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here in the above command please replace the ambari admin credentials&lt;BR /&gt;"amb25101.example.com" replace with your Ambari Server Hostname&lt;BR /&gt;"plain_ambari" with your ambari Cluster name.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 20:01:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185318#M67834</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-09-11T20:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Start Services from disable to enable ( in ambari GUI under ADMIN )</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185319#M67835</link>
      <description>&lt;P&gt;is it possible by API to check that button change from disable to enable ?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 21:19:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185319#M67835</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-09-11T21:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Start Services from disable to enable ( in ambari GUI under ADMIN )</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185320#M67836</link>
      <description>&lt;P&gt;when I run the first syntax ( step 1 ) I get - USERID=admin
PASSWORD=admin
PORT=:8080
[ERROR] "/tmp/cluster-env.txt" not found in server response.
[ERROR] Output of `curl -k -s -u admin:admin "http://master.uns.com:8080/api/v1/clusters/cluster-env?fields=Clusters/desired_configs"` is:
[ERROR] { "status" : 404, "message" : "The requested resource doesn't exist: Cluster not found, clusterName=cluster-env" }&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 01:47:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185320#M67836</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-09-12T01:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Start Services from disable to enable ( in ambari GUI under ADMIN )</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185321#M67837</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That error you will get only when you have not specified the  "Cluster Name" aftaer the ambari server hostname in the config.sh command:&lt;/P&gt;&lt;P&gt;/var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin -port 8080 get amb25101.example.com  &lt;STRONG&gt;plain_ambari  &lt;/STRONG&gt;cluster-env  /tmp/cluster-env.txt&lt;/P&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 01:51:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Auto-Start-Services-from-disable-to-enable-in-ambari-GUI/m-p/185321#M67837</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-09-12T01:51:49Z</dc:date>
    </item>
  </channel>
</rss>

