<?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: Ambari Custom Service Upgrade &amp; Hooks in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98933#M12238</link>
    <description>&lt;P&gt;+ &lt;A rel="user" href="https://community.cloudera.com/users/326/afernandez.html" nodeid="326"&gt;@Alejandro Fernandez&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/165/smohanty.html" nodeid="165"&gt;@smohanty&lt;/A&gt; &lt;/P&gt;&lt;P&gt;For sample upgrade code for Ambari services, you can look at existing Ambari services for example of this. In Hbase master service, you will find the method to be overridden:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_master.py#L75-L78"&gt;https://github.com/apache/ambari/blob/trunk/ambari...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the upgrade class being called:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/upgrade.py"&gt;https://github.com/apache/ambari/blob/trunk/ambari...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To get configurations from components of existing services, you can use the config object to do this in params.py. In the above Hbase example, you can see some samples here&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py#L87-L115"&gt;https://github.com/apache/ambari/blob/trunk/ambari...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Some code samples of more basic Ambari services are available below..these may be useful for those getting started with building services (but so far they don't implement the upgrade hooks)&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/partners/learn/#ambari"&gt;http://hortonworks.com/partners/learn/#ambari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For more details on how rolling/express upgrades work from end user perspective, you can check the below article&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/2473/rolling-upgrade-express-upgrade-in-ambari.html"&gt;https://community.hortonworks.com/articles/2473/ro...&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Dec 2015 11:30:40 GMT</pubDate>
    <dc:creator>abajwa</dc:creator>
    <dc:date>2015-12-13T11:30:40Z</dc:date>
    <item>
      <title>Ambari Custom Service Upgrade &amp; Hooks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98932#M12237</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have written a custom service and i am able to run it successfully using Ambari.&lt;/P&gt;&lt;P&gt;But now want to understand about &lt;/P&gt;&lt;P&gt;How do i go about upgrade it? Does Ambari provide some support to do this OR i have to write some custom command to do that OR i need to do it manually? Is the RPM package recommended practice for Ambari custom components in this case?&lt;/P&gt;&lt;P&gt;Also in the source code i saw that there is a support for hooks. How do i implement hooks?&lt;/P&gt;&lt;P&gt;How to get existing services configurations(e.g. HDFS, YARN), installation homes to define classpath? Do i have to use the REST services?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2015 11:00:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98932#M12237</guid>
      <dc:creator>abhijit_shingat</dc:creator>
      <dc:date>2015-12-13T11:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Custom Service Upgrade &amp; Hooks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98933#M12238</link>
      <description>&lt;P&gt;+ &lt;A rel="user" href="https://community.cloudera.com/users/326/afernandez.html" nodeid="326"&gt;@Alejandro Fernandez&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/165/smohanty.html" nodeid="165"&gt;@smohanty&lt;/A&gt; &lt;/P&gt;&lt;P&gt;For sample upgrade code for Ambari services, you can look at existing Ambari services for example of this. In Hbase master service, you will find the method to be overridden:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_master.py#L75-L78"&gt;https://github.com/apache/ambari/blob/trunk/ambari...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the upgrade class being called:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/upgrade.py"&gt;https://github.com/apache/ambari/blob/trunk/ambari...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To get configurations from components of existing services, you can use the config object to do this in params.py. In the above Hbase example, you can see some samples here&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py#L87-L115"&gt;https://github.com/apache/ambari/blob/trunk/ambari...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Some code samples of more basic Ambari services are available below..these may be useful for those getting started with building services (but so far they don't implement the upgrade hooks)&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/partners/learn/#ambari"&gt;http://hortonworks.com/partners/learn/#ambari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For more details on how rolling/express upgrades work from end user perspective, you can check the below article&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/2473/rolling-upgrade-express-upgrade-in-ambari.html"&gt;https://community.hortonworks.com/articles/2473/ro...&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2015 11:30:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98933#M12238</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-12-13T11:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Custom Service Upgrade &amp; Hooks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98934#M12239</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/132/abajwa.html" nodeid="132"&gt;@Ali Bajwa&lt;/A&gt; for the pointers!!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 11:16:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98934#M12239</guid>
      <dc:creator>abhijit_shingat</dc:creator>
      <dc:date>2015-12-14T11:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Custom Service Upgrade &amp; Hooks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98935#M12240</link>
      <description>&lt;P&gt;Most welcome! Btw just curious: what kind of Ambari service are you working on? Is the code up on git somewhere?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 11:21:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98935#M12240</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-12-14T11:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Custom Service Upgrade &amp; Hooks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98936#M12241</link>
      <description>&lt;P&gt;It is for one of the big data analytics product that we are building. Its not on git but in private repo. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 11:04:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Custom-Service-Upgrade-Hooks/m-p/98936#M12241</guid>
      <dc:creator>abhijit_shingat</dc:creator>
      <dc:date>2015-12-15T11:04:55Z</dc:date>
    </item>
  </channel>
</rss>

