<?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: Is there a way to remove the services from ambari and add the services once again? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170158#M57749</link>
    <description>&lt;P&gt;Hi Jay thanks a lot for the help but i cant find any option to remove the services in Ambari UI..&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 21:21:18 GMT</pubDate>
    <dc:creator>saravanagopal88</dc:creator>
    <dc:date>2017-03-22T21:21:18Z</dc:date>
    <item>
      <title>Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170155#M57746</link>
      <description />
      <pubDate>Fri, 16 Sep 2022 11:18:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170155#M57746</guid>
      <dc:creator>saravanagopal88</dc:creator>
      <dc:date>2022-09-16T11:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170156#M57747</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16804/saravanagopal88.html" nodeid="16804"&gt;@saravanan gopalsamy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, Either you can remove the services from Ambari UI as following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Ambari UI --&amp;gt; Ambari Metrics Collector (Or any service that you want to delete) --&amp;gt; Service Action (Drop down menu) --&amp;gt; "Delete Service" (Button)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Or use the Ambari Rest API to do the same :  &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+components+on+a+host" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+components+on+a+host&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- &lt;/P&gt;&lt;P&gt;Here is an example removing METRICS_COLLECTOR from a host.&lt;/P&gt;&lt;PRE&gt;# curl -u admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://&amp;lt;AMBARI_HOST&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTERNAME&amp;gt;/hosts/hdmdup0002.machine.test.group/host_components/METRICS_COLLECTOR" target="_blank"&gt;http://&amp;lt;AMBARI_HOST&amp;gt;:8080/api/v1/clusters/&amp;lt;CLUSTERNAME&amp;gt;/hosts/hdmdup0002.machine.test.group/host_components/METRICS_COLLECTOR&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;- Which version of ambari are you using that also matters.  Because you can delete services from ambari UI from Ambari 2.4.x version else you will have to use the Rest API as mentioned in the above link.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 20:58:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170156#M57747</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-22T20:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170157#M57748</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/90209/is-there-a-way-to-remove-the-services-from-ambari.html#"&gt;@saravanan gopalsamy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For removing a service: &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-user-guide/content/removing_a_service.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-user-guide/content/removing_a_service.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For adding a service: &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-user-guide/content/adding_a_service.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-user-guide/content/adding_a_service.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 21:05:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170157#M57748</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2017-03-22T21:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170158#M57749</link>
      <description>&lt;P&gt;Hi Jay thanks a lot for the help but i cant find any option to remove the services in Ambari UI..&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 21:21:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170158#M57749</guid>
      <dc:creator>saravanagopal88</dc:creator>
      <dc:date>2017-03-22T21:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170159#M57750</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13899-amba.png" style="width: 602px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20112i64621C98AE53B588/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13899-amba.png" alt="13899-amba.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This are the things i could find in service actions tab&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:46:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170159#M57750</guid>
      <dc:creator>saravanagopal88</dc:creator>
      <dc:date>2019-08-18T10:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170160#M57751</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16804/saravanagopal88.html" nodeid="16804"&gt;@saravanan gopalsamy&lt;/A&gt; Which version of ambari are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:01:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170160#M57751</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2017-03-22T22:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170161#M57752</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/40/apathan.html" nodeid="40"&gt;@Ayub Khan&lt;/A&gt; 2.2.1.0 is amabri version and hdp version is 2.4.3.0-227&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:11:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170161#M57752</guid>
      <dc:creator>saravanagopal88</dc:creator>
      <dc:date>2017-03-22T22:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170162#M57753</link>
      <description>&lt;P&gt;Please use the below API to delete the service from Ambari-2.2.1.0. Below example shows how to delete KNOX service, similarly you can modify its values to reflect your need.&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://&amp;lt;AMBARi_SERVER_HOST&amp;gt;:8080/api/v1/clusters/&amp;lt;$CLUSTER_NAME&amp;gt;/services/KNOX" target="_blank"&gt;http://&amp;lt;AMBARi_SERVER_HOST&amp;gt;:8080/api/v1/clusters/&amp;lt;$CLUSTER_NAME&amp;gt;/services/KNOX&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;To add the service you can refer to this &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_Ambari_Users_Guide/content/_adding_a_service.html"&gt;documentation&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:16:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170162#M57753</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2017-03-22T22:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170163#M57754</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16804/saravanagopal88.html" nodeid="16804"&gt;@saravanan gopalsamy
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As mentioned earlier that you can
 delete services from ambari UI &lt;STRONG&gt;from&lt;/STRONG&gt; Ambari 2.4.x version else you will 
have to use the Rest API as mentioned in the above link.&lt;/P&gt;&lt;P&gt;In Ambari 2.2.1 that feature is not available in ambari UI. So you will need to either use the Ambari API or more simplest way is to delete the service directly from the Database as mentioned in the following article.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Easiest and quick option) &lt;/STRONG&gt;Deleting Service entry directly from Database using the following query:
&lt;/P&gt;&lt;PRE&gt;    delete from hostcomponentstate where service_name = 'KNOX';
    delete from hostcomponentdesiredstate where service_name = 'KNOX';
    delete from servicecomponentdesiredstate where service_name = 'KNOX';
    delete from servicedesiredstate where service_name = 'KNOX';
    delete from serviceconfighosts where service_config_id in (select service_config_id from serviceconfig where service_name = 'KNOX');
    delete from serviceconfigmapping where service_config_id in (select service_config_id from serviceconfig where service_name = 'KNOX');
    delete from serviceconfig where service_name = 'KNOX';
    delete from requestresourcefilter where service_name = 'KNOX';
    delete from requestoperationlevel where service_name = 'KNOX';
    delete from clusterservices where service_name ='KNOX';
    delete from clusterconfig where type_name like 'knox%';
    delete from clusterconfigmapping where type_name like 'knox%';
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Please see: &lt;A href="https://community.hortonworks.com/content/kbentry/81939/how-to-resolve-ambari-db-inconsistency-error-you-h.html"&gt;https://community.hortonworks.com/content/kbentry/81939/how-to-resolve-ambari-db-inconsistency-error-you-h.html
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then you will need to restart Ambari Server.
&lt;A href="https://community.hortonworks.com/content/kbentry/81939/how-to-resolve-ambari-db-inconsistency-error-you-h.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
&lt;A rel="user" href="https://community.cloudera.com/users/16804/saravanagopal88.html" nodeid="16804"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:32:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170163#M57754</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-22T22:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170164#M57755</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; Thanks for your help..Let me try this one.Moreover i tried the curl calls as well but still i could not delete the services &lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:39:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170164#M57755</guid>
      <dc:creator>saravanagopal88</dc:creator>
      <dc:date>2017-03-22T22:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the services from ambari and add the services once again?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170165#M57756</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16804/saravanagopal88.html" nodeid="16804"&gt;@saravanan gopalsamy
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sure, The Database queries should definitely work well as it leaves no foot print in the database of the service that we wanted to delete and completely cleans all the entries related to that mentioned service from the Database completely. 
You will need to restart AmbariServer after making the database changes.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:45:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-remove-the-services-from-ambari-and-add/m-p/170165#M57756</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-22T22:45:54Z</dc:date>
    </item>
  </channel>
</rss>

