<?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 How to Completely Clean, Remove or Uninstall Ambari for Fresh Install in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95114#M58484</link>
    <description>&lt;P&gt;Sometimes when installing Ambari run repos are downloaded or there are maybe issues with python.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2015 20:31:46 GMT</pubDate>
    <dc:creator>amcbarnett</dc:creator>
    <dc:date>2015-10-08T20:31:46Z</dc:date>
    <item>
      <title>How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95114#M58484</link>
      <description>&lt;P&gt;Sometimes when installing Ambari run repos are downloaded or there are maybe issues with python.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 20:31:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95114#M58484</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-08T20:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95115#M58485</link>
      <description>&lt;P&gt;Which user is ambari running under?&lt;/P&gt;&lt;PRE&gt;ps aux | grep ambari-server&lt;/PRE&gt;
&lt;PRE&gt;rpm -qa | grep ambari&lt;/PRE&gt;&lt;P&gt;Try the following steps: On the master node&lt;/P&gt;&lt;PRE&gt;ambari-server stop
ambari-server reset
ambari-agent stop
yum erase ambari-server

rm -rf /var/lib/ambari-server

rm -rf /var/run/ambari-server

rm -rf /usr/lib/ambari-server

rm -rf /etc/ambari-server

rm -rf /var/log/ambari-server

rm -rf /usr/lib/python2.6/site-packages/ambari*
&lt;/PRE&gt;&lt;P&gt;Reinstall Ambari server&lt;/P&gt;&lt;PRE&gt;yum install ambari-server  

ambari-server start&lt;/PRE&gt;&lt;P&gt;On each worker node:&lt;/P&gt;&lt;PRE&gt;ambari-agent stop 

yum erase ambari-agent 

rm -rf /var/lib/ambari-agent

rm -rf /var/run/ambari-agent

rm -rf /usr/lib/amrbari-agent

rm -rf /etc/ambari-agent

rm -rf /var/log/ambari-agent

rm -rf /usr/lib/python2.6/site-packages/ambari*
&lt;/PRE&gt;&lt;P&gt;Then try re-running the install of Ambari Agent&lt;/P&gt;&lt;PRE&gt;yum install ambari-agent

vi /etc/ambari-agent/conf/ambari-agent.ini

#Change hostname to Ambari Server 

ambari-agent start&lt;/PRE&gt;&lt;P&gt;———————————————&lt;/P&gt;&lt;P&gt;- check logs&lt;/P&gt;&lt;P&gt;/var/log/ambari-agent/ambari-agent.log&lt;/P&gt;&lt;P&gt;/var/log/ambari-server/ambari-server.log&lt;/P&gt;&lt;P&gt;before starting the cluster install, see if the hosts have actually registered themselves (if doing it by updating ambari-agent.ini)&lt;/P&gt;&lt;P&gt;—————————&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Troubleshooting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can start ambari in debug mode to get more detailed aoutput via:&lt;/P&gt;&lt;P&gt;ambari-server start --verbose --debug&lt;/P&gt;&lt;P&gt;# or for short&lt;/P&gt;&lt;P&gt;ambari-server start -v -g&lt;/P&gt;&lt;P&gt;Significant files/directories:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;/var/log/ambari-server/ambari-server.log (for ambari server)&lt;/LI&gt;&lt;LI&gt;/var/log/ambari-agent/ambari-agent.log (for ambari agens)&lt;/LI&gt;&lt;LI&gt;/var/lib/ambari-agent/data/ (server action output)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SQL scripts to initialize psql DB&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;/var/lib/ambari-server/resources/&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Uninstall Postgres and move the redundant Ambari database file out of the way&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;yum remove postgres*&lt;/P&gt;&lt;P&gt;userdel -fr postgress&lt;/P&gt;&lt;P&gt;mv /var/lib/pgsql /var/lib/old.pgsql&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 20:54:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95115#M58485</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-08T20:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95116#M58486</link>
      <description>&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/369/amcbarnett.html"&gt;amcbarnett@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/nsabharwal/f57bb9e607114833df9b" target="_blank"&gt;https://gist.github.com/nsabharwal/f57bb9e607114833df9b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Important&lt;/P&gt;&lt;P&gt;Ambari reinstall will give you following command while running check during the cluster install. It will save you lot of time&lt;/P&gt;&lt;P&gt;I run with --skip=users&lt;/P&gt;&lt;P&gt;python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent --skip=users&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2015 19:45:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95116#M58486</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-10-10T19:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95117#M58487</link>
      <description>&lt;P&gt;Also check this script:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/hortonworks/HDP-Public-Utilities/blob/master/Installation/cleanup_script.sh"&gt;https://github.com/hortonworks/HDP-Public-Utilities/blob/master/Installation/cleanup_script.sh&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 02:42:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95117#M58487</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2016-02-25T02:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95118#M58488</link>
      <description>&lt;P&gt;There you go! Here's the solution to your problem. I struggled with this for like weeks and tried uninstalling and reinstalling over and over and then finally decided to share it here : &lt;A target="_blank" href="http://www.yourtechchick.com/hadoop/how-to-completely-remove-and-uninstall-hdp-components-hadoop-uninstall-on-linux-system/"&gt;How to completely remove and uninstall HDP&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 04:51:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95118#M58488</guid>
      <dc:creator>simran_k</dc:creator>
      <dc:date>2016-06-08T04:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95119#M58489</link>
      <description>&lt;P&gt;I noticed couple of typos. be mindful if you are running them in batch&lt;/P&gt;&lt;P&gt;rm -rf /usr/lib/&lt;STRONG&gt;amrbari&lt;/STRONG&gt;-server &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rm-rf&lt;/STRONG&gt; /usr/lib/python2.6/site-packages/ambari*&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 17:47:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95119#M58489</guid>
      <dc:creator>hmdanulae</dc:creator>
      <dc:date>2016-08-03T17:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95120#M58490</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/369/amcbarnett.html" nodeid="369"&gt;@Ancil McBarnett&lt;/A&gt;&lt;P&gt; will your above solution delete the existing HDP installation also ?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 00:48:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95120#M58490</guid>
      <dc:creator>syedzeeshanahme</dc:creator>
      <dc:date>2016-11-16T00:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95121#M58491</link>
      <description>&lt;P&gt;No it doesn't.  You have to run additional scripts to delete HDP&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 05:58:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95121#M58491</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2017-02-07T05:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95122#M58492</link>
      <description>&lt;P&gt;One of Powerful clean up by below python script on hadoop , It clean all directory , including user and files &lt;/P&gt;&lt;PRE&gt;[root@.ssh]# python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent
INFO:HostCleanup:
Killing pid's: ['']

INFO:HostCleanup:Deleting packages: ['']

INFO:HostCleanup:
Deleting users: ['ams', 'ambari-qa', 'yarn', 'mapred', 'tez', 'hbase', 'sqoop', 'oozie', 'falcon', 'flume', 'hive', 'hcat']
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf ams
INFO:HostCleanup:Successfully deleted user: ams
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf ambari-qa
INFO:HostCleanup:Successfully deleted user: ambari-qa
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf yarn
INFO:HostCleanup:Successfully deleted user: yarn
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf mapred
INFO:HostCleanup:Successfully deleted user: mapred
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf tez
INFO:HostCleanup:Successfully deleted user: tez
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf hbase
INFO:HostCleanup:Successfully deleted user: hbase
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf sqoop
INFO:HostCleanup:Successfully deleted user: sqoop
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf oozie
INFO:HostCleanup:Successfully deleted user: oozie
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf falcon
INFO:HostCleanup:Successfully deleted user: falcon
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf flume
INFO:HostCleanup:Successfully deleted user: flume
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf hive
INFO:HostCleanup:Successfully deleted user: hive
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh userdel -rf hcat
INFO:HostCleanup:Successfully deleted user: hcat
INFO:HostCleanup:Executing command: /var/lib/ambari-agent/ambari-sudo.sh groupdel hadoop
WARNING:HostCleanup:Cannot delete group : hadoop, groupdel: cannot remove the primary group of user 'hduser'
INFO:HostCleanup:Path doesn't exists: /home/ams
INFO:HostCleanup:Path doesn't exists: /home/ambari-qa
INFO:HostCleanup:Path doesn't exists: /home/yarn
INFO:HostCleanup:Path doesn't exists: /home/mapred
INFO:HostCleanup:Path doesn't exists: /home/tez
INFO:HostCleanup:Path doesn't exists: /home/hbase
INFO:HostCleanup:Path doesn't exists: /home/sqoop
INFO:HostCleanup:Path doesn't exists: /home/oozie
INFO:HostCleanup:Path doesn't exists: /home/falcon
INFO:HostCleanup:Path doesn't exists: /home/flume
INFO:HostCleanup:Path doesn't exists: /home/hive
INFO:HostCleanup:Path doesn't exists: /home/hcat
INFO:HostCleanup:Deleting file/folder: /tmp/Jetty_0_0_0_0_60010_master____q3nwom
INFO:HostCleanup:Deleting file/folder: /tmp/Jetty_0_0_0_0_34300_mapreduce____.dx7bll
INFO:HostCleanup:Deleting file/folder: /tmp/hbase-hbase
INFO:HostCleanup:Deleting file/folder: /tmp/Jetty_0_0_0_0_34025_mapreduce____jgsznr
INFO:HostCleanup:Deleting file/folder: /tmp/Jetty_centos4_test_com_8088_cluster____.cl0kmf
INFO:HostCleanup:Deleting file/folder: /tmp/Jetty_0_0_0_0_8042_node____19tj0x
INFO:HostCleanup:
Deleting directories: ['']
INFO:HostCleanup:Path doesn't exists:
INFO:HostCleanup:
Deleting repo files: []
INFO:HostCleanup:
Erasing alternatives:{'symlink_list': [''], 'target_list': ['']}

INFO:HostCleanup:Path doesn't exists:
INFO:HostCleanup:Clean-up completed. The output is at /var/lib/ambari-agent/data/hostcleanup.result


&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 13:16:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/95122#M58492</guid>
      <dc:creator>shivkumar82015</dc:creator>
      <dc:date>2018-01-29T13:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Completely Clean, Remove or Uninstall Ambari for Fresh Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/284323#M211129</link>
      <description>&lt;P&gt;Hi, the link seems broken. Can you share with us the working one? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 08:05:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Completely-Clean-Remove-or-Uninstall-Ambari-for-Fresh/m-p/284323#M211129</guid>
      <dc:creator>NH</dc:creator>
      <dc:date>2019-11-28T08:05:30Z</dc:date>
    </item>
  </channel>
</rss>

