Uninstall the CDH script and cdh script

Source: Internet
Author: User
Tags solr sqoop

Uninstall the CDH script and cdh script

Uninstall the CDH script and share it with you ~

#! /Bin/bash
For u in cloudera-scm flume hadoop hdfs hbase hive httpfs hue impala llama mapred oozie solr spark sqoop sqoop2 yarn zookeeper; do
Pid = 'ps-u hdfs-o pid ='
Sudo kill-9 $ pid
Done
Sudo rm-Rf/usr/share/cmf/var/lib/cloudera */var/cache/yum/cloudera */var/log/cloudera */var/run/cloudera *
Sudo rm/tmp/. scm_prepare_node.lock
Sudo/usr/share/cmf/uninstall-cloudera-manager.sh
Sudo service cloudera-scm-server stop
Sudo service cloudera-scm-server-db stop
Sudo yum remove cloudera-manager-server-y
Sudo yum remove cloudera-manager-server-db-y
Sudo service cloudera-scm-agent hard_stop
Sudo yum remove-y mahout
Sudo yum remove-y whirr
Sudo yum remove-y hue
Sudo yum remove-y pig
Sudo yum remove-y sqoop
Sudo yum remove-y sqoop2-server sqoop2-client
Sudo yum remove-y flume
Sudo yum remove-y oozie-client
Sudo yum remove-y oozie
Sudo yum remove-y hive-metastore hive-server hive-server2
Sudo yum remove-y hadoop-hbase
Sudo yum remove-y hadoop-zookeeper-server
Sudo yum remove-y hadoop-zookeeper
Sudo yum remove-y hadoop-hdfs-zkfc
Sudo yum remove-y hadoop-hdfs-journalnode
Sudo yum remove-y cloudera-cdh
Sudo yum remove-y hadoop-httpfs
Sudo yum remove-y hadoop
Sudo yum remove-y avro-tools
Sudo yum remove 'cloudera-manager-* 'hadoop hue-common' bigtop-* 'sqoop2-client-y
Sudo yum clean all
Sudo rm-Rf/dfs/mapred/yarn
Rm-rf/var/log/hadoop-hdfs
Rm-rf/var/log/hadoop-yarn
Rm-rf/var/log/hadoop-kms
Rm-rf/var/log/hadoop-mapreduce
Rm-rf/var/log/oozie
Rm-rf/var/log/hive
Rm-rf/var/log/hue
Rm-rf/var/log/flume-ng
Rm-rf/var/log/sqoop2
Rm-rf/var/log/zookeeper
Rm-rf/etc/flume-ng
Rm-rf/etc/pig
Rm-rf/etc/flume-ng
Rm-rf/etc/hue
Rm-rf/etc/solr
Rm-rf/etc/sqoop
Rm-rf/etc/sqoop2
Rm-rf/etc/sentry
Rm-rf/etc/zookeeper
Rm-rf/etc/hadoop
Rm-rf/etc/hbase
Rm-rf/etc/hbase-solr
Rm-rf/etc/hive
Rm-rf/etc/hive-hcatalog
Rm-rf/etc/hive-webhcat
Rm-rf/etc/impala
Rm-rf/mnt/disk1/dfs
Rm-rf/mnt/disk2/dfs
Rm-rf/opt/cloudera
Sudo rm-Rf/var/lib/flume-ng/var/lib/hadoop */var/lib/hue/var/lib/navigator/var/lib/oozie/var/ lib/solr/var/lib/sqoop */var/lib/zookeeper
Rm-rf/var/run/zookeeper/var/run/sqoop2/var/run/hdfs-sockets/var/run/flume-ng cloudera-scm-agent
Rm-rf/etc/yum. repos. d/cloudera -*
Rm-rf/etc/yum. repos. d/cm *
P9000 = 'netstat-apn | grep 9000 | grep python | awk '{print $7}' | sed's // python // G''
Kill-9 $ {p9000}
P9001 = 'netstat-apn | grep 9001 | grep python | awk '{print $7}' | sed's // python // G''
Kill-9 $ {p9001}

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.