Uninstall cloudera Manager

Source: Internet
Author: User
Tags sqoop

Uninstall cloudera-Manager

sudo /usr/share/cmf/uninstall-cloudera-manager.sh

Always select Yes

After the uninstallation is complete, it will ask you if you want to clean up the data in the database, select Yes

2. Delete the installation directory of cloudera according to the official introduction.

sudo rm -rf /usr/share/cmf /var/lib/cloudera* /var/cache/yum/x86_64/6/cloudera* /var/log/cloudera* /var/run/cloudera*

Here, I spoke up, and another database configuration file was not cleaned up, which led to an error in the old saying when I re-installed the service later.

rm -rf /etc/cloudera*

3. Uninstall the RPM package of cloudera

Check the packages installed

rpm -qa | grep cloudera

Delete them one by one

for f in `rpm -qa | grep cloudera `  ; do rpm -e ${f} ; done

4. Clear cloudera Related Files

sudo rm -rf /var/lib/flume-ng /var/lib/hadoop* /var/lib/hue /var/lib/oozie /var/lib/solr /var/lib/sqoop*
sudo rm -rf /dfs /mapred /yarn
rm -rf /var/run/hadoop* /var/run/flume-ng /var/run/cloudera* /var/run/oozie/ /var/run/sqoop2 /var/run/zookeeper /var/run/hbase /var/run/impala /var/run/hive /var/run/hdfs-sockets
rm -rf /usr/lib/hadoop /usr/lib/hadoop* /usr/lib/hive /usr/lib/hbase /usr/lib/oozie /usr/lib/sqoop* /usr/lib/zookeeper /usr/lib/bigtop* /usr/lib/flume-ng /usr/lib/hcatalog
rm -rf /usr/bin/hadoop* /usr/bin/zookeeper* /usr/bin/hbase* /usr/bin/hive* /usr/bin/hdfs /usr/bin/mapred /usr/bin/yarn /usr/bin/sqoop* /usr/bin/oozie
rm -rf /etc/alternatives/*
rm -rf /etc/hadoop* /etc/zookeeper* /etc/hive* /etc/hue /etc/impala /etc/sqoop* /etc/oozie /etc/hbase* /etc/hcatalog

There is also a very important path. Previously, from cdh4.5 update to cdh5, there has been a soft link to the old 4.5 directory. After searching for a long time, I finally found the problem with the help of the strace tool.

rm -rf /var/lib/alternatives/{cdh.app}

It is risky to simply delete all files under/var/lib/alternatives/*, because the system may also use alternatives for version control of other tools, we recommend that you delete CDH files.

5. Kill related processes

for u in hdfs mapred cloudera-scm hbase hue zookeeper oozie hive impala flume; do sudo kill $(ps -u $u -o pid=); done

6. Delete the lock file of the cloudera manager.

sudo rm /tmp/.scm_prepare_node.lock

7. Delete the parcel package distribution file and decompression File

rm -rf /opt/cloudera/parcel-cache /opt/cloudera/parcels

In this way, we have completely cleaned up.

For more information about deployment, see my previous blog.

Uninstall cloudera Manager

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.