Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of completely uninstalling CDH5.X

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the relevant knowledge of "what is the method of uninstalling CDH5.X completely?" in the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. Shut down all services in the cluster.

This can be done through the clouder manger home page to shut down the cluster.

two。 Unloading

[root@master ~] # / usr/share/cmf/uninstall-cloudera-manager.sh

[root@slave1 ~] # service cloudera-scm-agent stop

[root@slave1 ~] # service cloudera-scm-agent stop

The following is that all clusters to be uninstalled need to perform cleanup:

[root@master ~] # umount / var/run/cloudera-scm-agent/process

[root@slave1 ~] # umount / var/run/cloudera-scm-agent/process

[root@slave2 ~] # umount / var/run/cloudera-scm-agent/process

[root@master ~] # rm-rf / usr/share/cmf / var/lib/cloudera* / var/cache/yum/x86_64/6/cloudera* / var/log/cloudera* / var/run/cloudera* / etc/cloudera*

3. Uninstall the installation package:

[root@slave1 ~] # rpm-qa | grep cloudera

[root@slave2 ~] # for f in `rpm-qa | grep cloudera `; do rpm-e ${f}; done (if any, execute it again)

4. Clear 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 delete hadoop series, do not delete other software, otherwise the version control of other software will be broken

[root@master alternatives] # rm-rf `find / var/lib/alternatives/*!-name "mta"!-name "print"!-name "zlibrary-ui"-mtime-3`

[root@master alternatives] # rm-rf / etc/alternatives/*

5. Kill the related process:

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 extract files

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

This is the end of the content of "what is the method to uninstall CDH5.X completely". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report