<?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: Deleting a Service From Ambari Database in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126740#M51487</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11879/shashantpanwar.html" nodeid="11879"&gt;@Shashant Panwar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you will also need to clean alerts and service config tables:&lt;/P&gt;&lt;P&gt;Some of them are as followed:&lt;/P&gt;&lt;P&gt;serviceconfig&lt;/P&gt;&lt;P&gt;serviceconfigmapping&lt;/P&gt;&lt;P&gt;alert_definition&lt;/P&gt;&lt;P&gt;alert_current&lt;/P&gt;&lt;P&gt;alert_group&lt;/P&gt;&lt;P&gt;alert_history&lt;/P&gt;&lt;P&gt;I will rather encourage to resolve the issue of showing Mahout in the UI and then delete service from UI (if using ambari-2.4.0 or above)  or from Ambari API&lt;/P&gt;&lt;P&gt;Can you let us know what version of ambari are you using ? Also what is the content of clusterservices and servicedesiredstate tables specifically if Mahout service entry is present or not?&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2017 03:39:40 GMT</pubDate>
    <dc:creator>jaimin</dc:creator>
    <dc:date>2017-01-13T03:39:40Z</dc:date>
    <item>
      <title>Deleting a Service From Ambari Database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126738#M51485</link>
      <description>&lt;P&gt;I was stuck in a situation where service(in my case Mahout) was not present in Ambari UI but it was present in Ambari database (as a installed/stuck service) which was causing upgrade issues. After reading couple of blogs I found these set of sql statement to delete service from Ambari database:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALTER TABLE
clusterservices DISABLE TRIGGER ALL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALTER TABLE
servicecomponentdesiredstate DISABLE TRIGGER ALL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DELETE FROM
servicedesiredstate WHERE service_name = 'MAHOUT';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DELETE FROM
servicecomponentdesiredstate WHERE service_name = ‘MAHOUT’;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DELETE FROM
clusterservices WHERE service_name = 'MAHOUT';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DELETE FROM
hostcomponentstate WHERE service_name = 'MAHOUT';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DELETE FROM
hostcomponentdesiredstate WHERE service_name = 'MAHOUT';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALTER TABLE
clusterservices ENABLE TRIGGER ALL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALTER TABLE
servicecomponentdesiredstate ENABLE TRIGGER ALL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can anyone confirm whether these statements cover all the tables to remove the service or am I missing some tables here? &lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 00:28:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126738#M51485</guid>
      <dc:creator>shashant_panwar</dc:creator>
      <dc:date>2017-01-13T00:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a Service From Ambari Database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126739#M51486</link>
      <description>&lt;P&gt;I can confirm for you that the deletes look correct.  I normally do not do the alters, but I don't see them causing an issue.  Remember to STOP ambari-server before editing.  Take a good backup of the db.  Then when done, start ambari-server.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 03:39:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126739#M51486</guid>
      <dc:creator>orlandoteixeira</dc:creator>
      <dc:date>2017-01-13T03:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a Service From Ambari Database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126740#M51487</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11879/shashantpanwar.html" nodeid="11879"&gt;@Shashant Panwar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you will also need to clean alerts and service config tables:&lt;/P&gt;&lt;P&gt;Some of them are as followed:&lt;/P&gt;&lt;P&gt;serviceconfig&lt;/P&gt;&lt;P&gt;serviceconfigmapping&lt;/P&gt;&lt;P&gt;alert_definition&lt;/P&gt;&lt;P&gt;alert_current&lt;/P&gt;&lt;P&gt;alert_group&lt;/P&gt;&lt;P&gt;alert_history&lt;/P&gt;&lt;P&gt;I will rather encourage to resolve the issue of showing Mahout in the UI and then delete service from UI (if using ambari-2.4.0 or above)  or from Ambari API&lt;/P&gt;&lt;P&gt;Can you let us know what version of ambari are you using ? Also what is the content of clusterservices and servicedesiredstate tables specifically if Mahout service entry is present or not?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 03:39:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126740#M51487</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-01-13T03:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a Service From Ambari Database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126741#M51488</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/215/oteixeira.html" nodeid="215"&gt;@Orlando Teixeira&lt;/A&gt;. &lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 10:06:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126741#M51488</guid>
      <dc:creator>shashant_panwar</dc:creator>
      <dc:date>2017-01-17T10:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a Service From Ambari Database</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126742#M51489</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/465/jaimin.html" nodeid="465"&gt;@jaimin&lt;/A&gt;. I went ahead and delete the service. I was using Ambari 2.2.2.0 and upgraded to 2.4.2.0.&lt;/P&gt;&lt;P&gt;But thanks for pointing out extra tables to take care.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 10:08:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Deleting-a-Service-From-Ambari-Database/m-p/126742#M51489</guid>
      <dc:creator>shashant_panwar</dc:creator>
      <dc:date>2017-01-17T10:08:31Z</dc:date>
    </item>
  </channel>
</rss>

