Uninstalling CDH Components
Before uninstalling CDH, stop all Hadoop processes, following the instructions in Stopping Services.
Here are the commands to use to uninstall the Hadoop components on different Linux systems.
Operating System | Commands | Comments |
---|---|---|
Red-Hat-compatible | yum remove |
|
Debian and Ubuntu | apt-get remove or apt-get purge | apt-get can be run with the remove option to remove only the installed packages or with the purge option to remove packages and configuration |
SLES | zypper remove |
|
Uninstalling from Red Hat, CentOS, and Similar Systems
Component to Remove | Command |
---|---|
Flume | $ sudo yum remove flume |
Hadoop core packages | $ sudo yum remove hadoop |
Hadoop repository packages | $ sudo yum remove cloudera-cdhn |
HBase | $ sudo yum remove hadoop-hbase |
HDFS HA Journal Node | $ sudo yum remove hadoop-hdfs-hadoop-hdfs-journalnode |
Hive | $ sudo yum remove hive hive-metastore hive-server hive-server2 |
HttpFS | $ sudo yum remove hadoop-httpfs |
Hue | $ sudo yum remove hue |
Mahout | $ sudo yum remove mahout |
Pig | $ sudo yum remove pig |
Search | $ sudo yum remove solr hbase-solr search solr-mapreduce solr-doc search-crunch |
Sentry |
$ sudo yum remove sentry |
Spark | $ sudo yum remove spark-core spark-master spark-worker spark-history-server spark-python |
Sqoop 1 | $ sudo yum remove sqoop |
Sqoop 2 | $ sudo yum remove sqoop2-server sqoop2-client |
Oozie client | $ sudo yum remove oozie-client |
Oozie server | $ sudo yum remove oozie |
Whirr | $ sudo yum remove whirr |
ZooKeeper server | $ sudo yum remove hadoop-zookeeper-server |
ZooKeeper client | $ sudo yum remove hadoop-zookeeper |
ZooKeeper Failover Controller (ZKFC) | $ sudo yum remove hadoop-hdfs-zkfc |
Uninstalling from Debian and Ubuntu
Use the apt-get command to uninstall software on Debian and Ubuntu systems. You can use apt-get remove or apt-get purge; the difference is that apt-get remove removes all your configuration data as well as the package files.
Warning: For this reason, you should apt-get remove only with
great care, and after making sure you have backed up all your configuration data.
The apt-get remove commands to uninstall the Hadoop components from a Debian or Ubuntu system are:
Component to Remove | Command |
---|---|
Flume | $ sudo apt-get remove flume |
Hadoop core packages | $ sudo apt-get remove hadoop |
Hadoop repository packages | $ sudo apt-get remove cdhn-repository |
HBase | $ sudo apt-get remove hadoop-hbase |
HDFS HA Journal Node | $ apt-get remove hadoop-hdfs-hadoop-hdfs-journalnode |
Hive | $ sudo apt-get remove hive hive-metastore hive-server hive-server2 |
HttpFS | $ sudo apt-get remove hadoop-httpfs |
Hue | $ sudo apt-get remove hue |
Oozie client | $ sudo apt-get remove oozie-client |
Oozie server | $ sudo apt-get remove oozie |
Pig | $ sudo apt-get remove pig |
Search | $ sudo apt-get remove solr hbase-solr search solr-mapreduce solr-doc search-crunch |
Sentry |
$ sudo apt-get remove sentry |
Spark | $ sudo apt-get remove spark-core spark-master spark-worker spark-history-server spark-python |
Sqoop 1 | $ sudo apt-get remove sqoop |
Sqoop 2 | $ sudo apt-get remove sqoop2-server sqoop2-client |
Whirr | $ sudo apt-get remove whirr |
ZooKeeper client | $ sudo apt-get remove hadoop-zookeeper |
ZooKeeper Failover Controller (ZKFC) | $ sudo apt-get remove hadoop-hdfs-zkfc |
ZooKeeper server | $ sudo apt-get remove hadoop-zookeeper-server |
Uninstalling from SLES
Component to Remove | Command |
---|---|
Flume | $ sudo zypper remove flume |
Hadoop core packages | $ sudo zypper remove hadoop |
Hadoop repository packages | $ sudo zypper remove cloudera-cdh |
HBase | $ sudo zypper remove hadoop-hbase |
HDFS HA Journal Node | $ sudo zypper remove hadoop-hdfs-hadoop-hdfs-journalnode |
Hive | $ sudo zypper remove hive hive-metastore hive-server hive-server2 |
HttpFS | $ sudo zypper remove hadoop-httpfs |
Hue | $ sudo zypper remove hue |
Oozie client | $ sudo zypper remove oozie-client |
Oozie server | $ sudo zypper remove oozie |
Pig | $ sudo zypper remove pig |
Search | $ sudo zypper remove solr hbase-solr search solr-mapreduce solr-doc search-crunch |
Sentry |
$ sudo zypper remove sentry |
Spark | $ sudo zypper remove spark-core spark-master spark-worker spark-history-server spark-python |
Sqoop 1 | $ sudo zypper remove sqoop |
Sqoop 2 | $ sudo zypper remove sqoop2-server sqoop2-client |
Whirr | $ sudo zypper remove whirr |
ZooKeeper client | $ sudo zypper remove hadoop-zookeeper |
ZooKeeper Failover Controller (ZKFC) | $ sudo zypper remove hadoop-hdfs-zkfc |
ZooKeeper server | $ sudo zypper remove hadoop-zookeeper-server |
Additional clean-up
The uninstall commands may not remove all traces of Hadoop from your system. The apt-get purge commands available for Debian and Ubuntu systems delete more files than the commands that use the remove option but are still not comprehensive. If you want to remove all vestiges of Hadoop from your system, look for the following and remove them manually:
- Log files
- Modified system configuration files
- Hadoop configuration files in directories under /etc such as hadoop, hbase, hue, hive, oozie, sqoop, zookeeper, and zookeeper.dist
- User/group identifiers
- Hue, Oozie, and Sqoop databases
- Documentation packages
Page generated May 18, 2018.
<< Third-Party Licenses | ©2016 Cloudera, Inc. All rights reserved | Viewing the Apache Hadoop Documentation >> |
Terms and Conditions Privacy Policy |