<?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: Can I delete an Ambari configuration version? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-delete-an-Ambari-configuration-version/m-p/157157#M32997</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;, Thanks. This is good info, just to confirm:&lt;/P&gt;&lt;P&gt;- you mentioned  clusterconfigmapping twice, I assume "serviceconfigmapping" is the one missing in that list as in the query its mentioned.&lt;/P&gt;&lt;P&gt;- With these entries in DB, I am deleting only one config version made by "kuldeep", not every entry he made correct? &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jun 2016 23:31:06 GMT</pubDate>
    <dc:creator>jgeorge</dc:creator>
    <dc:date>2016-06-25T23:31:06Z</dc:date>
    <item>
      <title>Can I delete an Ambari configuration version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-delete-an-Ambari-configuration-version/m-p/157155#M32995</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Few questions on Ambari:&lt;/P&gt;&lt;P&gt;1) Can we delete a service configuration version in Ambari? &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;
--Say i made a horrible mistake in my configuration and saved it, reverted back, 
  but i don't want any one in my admin team to go back and apply that version some time later. to avoid that i need to remove it from config history. &lt;/P&gt;&lt;P&gt;2) How many versions of configs will Ambari save in history?&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;-- can that be configured? &lt;/P&gt;&lt;P&gt;3) Does Ambari have any views/method  to alert for Job/application Failures?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2016 02:55:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-delete-an-Ambari-configuration-version/m-p/157155#M32995</guid>
      <dc:creator>jgeorge</dc:creator>
      <dc:date>2016-06-25T02:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I delete an Ambari configuration version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-delete-an-Ambari-configuration-version/m-p/157156#M32996</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/466/jgeorge.html" nodeid="466"&gt;@Jobin George&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Good question! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please find answers below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note - Please take backup of your ambari database before proceeding with suggested steps&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;1) Can we delete a service configuration version in Ambari?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Below are the tables responsible for holding service configuration version information&lt;/P&gt;&lt;PRE&gt;widget_layout
clusterconfigmapping
widget_layout_user_widget
serviceconfigmapping
serviceconfig&lt;/PRE&gt;&lt;P&gt;Suppose I have modified my hdfs configuration by 'kuldeep' user and I want to remove it completely from ambari UI.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please execute below queries in ambari DB&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; select * from serviceconfig where user_name like '%kuldeep%';
 service_config_id | cluster_id | service_name | version | create_timestamp | stack_id | user_name | group_id |  note
-------------------+------------+--------------+---------+------------------+----------+-----------+----------+---------
               407 |          2 | HDFS         |      15 |    1466844482492 |        1 | kuldeep   |          | kuldeep
(1 row)&lt;/PRE&gt;
&lt;PRE&gt;ambari=&amp;gt; delete from serviceconfigmapping where service_config_id=407;
DELETE 11
ambari=&amp;gt; delete from serviceconfig where user_name like '%kuldeep%';
DELETE 1&lt;/PRE&gt;
&lt;PRE&gt;ambari=&amp;gt; select * from clusterconfigmapping where user_name like '%kuldeep%';
 cluster_id | type_name  |     version_tag      | create_timestamp | selected | user_name
------------+------------+----------------------+------------------+----------+-----------
          2 | hadoop-env | version1466844481864 |    1466844482490 |        1 | kuldeep
(1 row)&lt;/PRE&gt;
&lt;PRE&gt;ambari=&amp;gt; delete from clusterconfigmapping where user_name like '%kuldeep%';
DELETE 1&lt;/PRE&gt;
&lt;PRE&gt;ambari=&amp;gt; select * from widget_layout where layout_name like '%kuldeep%';
 id  |      layout_name       | section_name | scope | user_name |      display_name       | cluster_id
-----+------------------------+--------------+-------+-----------+-------------------------+------------
 152 | kuldeep_hdfs_dashboard | HDFS_SUMMARY | USER  | kuldeep   | Standard HDFS Dashboard |          2
(1 row)&lt;/PRE&gt;
&lt;PRE&gt;ambari=&amp;gt; delete from widget_layout_user_widget where widget_layout_id='152';
DELETE 10
ambari=&amp;gt; delete from widget_layout where layout_name like '%kuldeep%';
DELETE 1&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;2) How many versions of configs will Ambari save in history?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I don't think there is any limit, as this version information gets stored in the Ambari DB.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;3) Does Ambari have any views/method to alert for Job/application Failures?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;No. We don't have any views for YARN Job browser except for TEZ applications.&lt;/P&gt;&lt;P&gt;Hope this information helps.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2016 16:10:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-delete-an-Ambari-configuration-version/m-p/157156#M32996</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-06-25T16:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I delete an Ambari configuration version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-delete-an-Ambari-configuration-version/m-p/157157#M32997</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;, Thanks. This is good info, just to confirm:&lt;/P&gt;&lt;P&gt;- you mentioned  clusterconfigmapping twice, I assume "serviceconfigmapping" is the one missing in that list as in the query its mentioned.&lt;/P&gt;&lt;P&gt;- With these entries in DB, I am deleting only one config version made by "kuldeep", not every entry he made correct? &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2016 23:31:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-delete-an-Ambari-configuration-version/m-p/157157#M32997</guid>
      <dc:creator>jgeorge</dc:creator>
      <dc:date>2016-06-25T23:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I delete an Ambari configuration version?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-delete-an-Ambari-configuration-version/m-p/157158#M32998</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/466/jgeorge.html" nodeid="466"&gt;@Jobin George&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks! I have corrected the table name.&lt;/P&gt;&lt;P&gt;That's correct! Only one config made by 'kuldeep' will be deleted.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 01:38:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-delete-an-Ambari-configuration-version/m-p/157158#M32998</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-06-27T01:38:01Z</dc:date>
    </item>
  </channel>
</rss>

