Reprint: cdh5.x Complete Uninstall step

Source: Internet
Author: User
Tags sqoop

http://blog.csdn.net/wulantian/article/details/42706777

CDH5. x Full Uninstall Step # by coco# 2015-01-14

1. Close all services in the cluster.

This can be done by Clouder Manger home page to close the cluster.  2. Uninstall [[email protected] ~]#/usr/share/cmf/uninstall-cloudera-manager.sh Note: If uninstall-cloudera-manager.sh is not installed in the cluster, uninstall it using the following command:
            a, stop Cloudera Manager server and its database           &N Bsp B. Uninstall Cloudera Manager Server and its database sudo yum remove Cloudera-manager-serversudo yum remove cloudera-manager-server-db  [[email protected] ~]# service cloudera-scm-agent stop[[email protected] ~]# service Cloudera-scm-agent stop . All the clusters to be unloaded are cleared: [[email protected] ~]# umount/var/run/cloudera-scm-agent/ Process[[email protected] ~]# umount/var/run/cloudera-scm-agent/process[[email protected] ~]# Umount/var /run/cloudera-scm-agent/process [[email protected] ~]# rm-rf/usr/share/cmf/var/lib/cloudera*/var/cache /yum/x86_64/6/cloudera*/var/log/cloudera*/var/run/cloudera*  /etc/cloudera*  3. Uninstalling the installation package: [[email protected] ~]# Rpm-qa | grep cloudera[[email protected] ~]# for f in ' Rpm-qa | grep Cloudera '  ; Do Rpm-e ${f}; Done     (if there is a save, do it again)  4. Clear the installation files  rm-rf/var/lib/hadoop-*/var/lib/impala/var/lib/solr/var/lib/zookeeper /var/lib/hue/var/lib/oozie  /var/lib/pgsql  / VAR/LIB/SQOOP2  /data/dfs/ /data/impala//data/yarn/ /dfs//impala//yarn/ /var/run/hadoop-*// var/run/hdfs-*/ /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 /etc/hadoop*/etc/zookeeper*/etc/hive*/etc/hue/etc/impala /etc/sqoop*/etc/oozie/etc/hbase*/etc/hcatalog  //only remove the Hadoop series, do not remove other software, otherwise the version control of other software will be destroyed [[email  Protected] alternatives]# RM-RF ' find/var/lib/alternatives/*! -name "MTA"! -name "Print"! -name "Zlibrary-ui"  -mtime-3 '  [[email protected] alternatives]# rm-rf/etc/alternatives/*   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 Parcel package distribution files and decompression files   Rm-rf/opt/cloudera/parcel-cache/opt/cloudera/parcels  to this uninstall is complete.

Reprint: cdh5.x Full Uninstall Step

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.