<?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: How to ask Ambari service to start automatically in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-ask-Ambari-service-to-start-automatically/m-p/147711#M52669</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/14059/akceptorkindle.html" nodeid="14059"&gt;@Volodymyr Ostapiv&lt;/A&gt;&lt;P&gt;After adding a service you wanted to start that service automatically? May be you can include the start script/command in the install section itself.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 23:23:47 GMT</pubDate>
    <dc:creator>apappu</dc:creator>
    <dc:date>2017-01-26T23:23:47Z</dc:date>
    <item>
      <title>How to ask Ambari service to start automatically</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-ask-Ambari-service-to-start-automatically/m-p/147710#M52668</link>
      <description>&lt;P&gt;I'm implementing the Ambari service and need to have it started aotumatically after cluster was started. Is there some option in metainfo.xml to enable this?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:58:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-ask-Ambari-service-to-start-automatically/m-p/147710#M52668</guid>
      <dc:creator>Akceptor</dc:creator>
      <dc:date>2017-01-26T22:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to ask Ambari service to start automatically</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-ask-Ambari-service-to-start-automatically/m-p/147711#M52669</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14059/akceptorkindle.html" nodeid="14059"&gt;@Volodymyr Ostapiv&lt;/A&gt;&lt;P&gt;After adding a service you wanted to start that service automatically? May be you can include the start script/command in the install section itself.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 23:23:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-ask-Ambari-service-to-start-automatically/m-p/147711#M52669</guid>
      <dc:creator>apappu</dc:creator>
      <dc:date>2017-01-26T23:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to ask Ambari service to start automatically</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-ask-Ambari-service-to-start-automatically/m-p/147712#M52670</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14059/akceptorkindle.html" nodeid="14059"&gt;@Volodymyr Ostapiv&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may want to refer to the following article which talks about a new feature added to ambari 2.4  in order to have dynamic auto-recovery, which allows auto-start properties to be configured without needing an ambari-agent / ambari-server restart. &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/kbentry/71748/how-do-i-enable-automatic-restart-recovery-of-serv.html" target="_blank"&gt;https://community.hortonworks.com/content/kbentry/71748/how-do-i-enable-automatic-restart-recovery-of-serv.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: &lt;/STRONG&gt;{"recovery_enabled":"true"}&lt;/P&gt;&lt;PRE&gt;curl -u admin:&amp;lt;password&amp;gt; -H "X-Requested-By: ambari" -X PUT 'http://localhost:8080/api/v1/clusters/&amp;lt;cluster_name&amp;gt;/components?ServiceComponentInfo/component_name.in(HBASE_REGIONSERVER)' -d '{"ServiceComponentInfo" : {"recovery_enabled":"true"}}'&lt;/PRE&gt;&lt;P&gt;In the above curl call you can define your own service component. Above will help in setting auto start in case of host reboot.&lt;/P&gt;&lt;P&gt;Also for your custom service you may customize your scripts like "package/scripts" to have your own desired start feature.&lt;/P&gt;&lt;P&gt;- You can take a look at the&lt;STRONG&gt; "metainfo.xml"&lt;/STRONG&gt; file of AMS something like following 'recovery_enabled':&lt;/P&gt;&lt;PRE&gt;    &amp;lt;component&amp;gt;
         &amp;lt;name&amp;gt;METRICS_COLLECTOR&amp;lt;/name&amp;gt;
         &amp;lt;displayName&amp;gt;Metrics Collector&amp;lt;/displayName&amp;gt;
         &amp;lt;category&amp;gt;MASTER&amp;lt;/category&amp;gt;
         &amp;lt;recovery_enabled&amp;gt;true&amp;lt;/recovery_enabled&amp;gt;&lt;/PRE&gt;&lt;P&gt;- More info regarding this feature for ambari 2.4.x (and prior versions can be found at: &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Recovery%3A+auto+start+components" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Recovery%3A+auto+start+components&lt;/A&gt; ) &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 23:52:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-ask-Ambari-service-to-start-automatically/m-p/147712#M52670</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-01-26T23:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to ask Ambari service to start automatically</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-ask-Ambari-service-to-start-automatically/m-p/147713#M52671</link>
      <description>&lt;P&gt;Nope, it is already started. But if cluster restarts (e.g. power outage) my service is down and needs to be started manualy&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 02:12:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-ask-Ambari-service-to-start-automatically/m-p/147713#M52671</guid>
      <dc:creator>Akceptor</dc:creator>
      <dc:date>2017-01-27T02:12:24Z</dc:date>
    </item>
  </channel>
</rss>

