卸载ambari

Posted maluscalc

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了卸载ambari相关的知识,希望对你有一定的参考价值。

* 如果是Ubuntu系统,下面的yum命令要换成apt-get命令。
yum remove -> apt-get purge
yum list installed | grep -> sudo apt-cache search all | grep


* yum的参数-y是过程中所有提示都自动选yes。


一、停止服务
ambari-agent stop
ambari-server stop


二、删除主组件
yum remove ambari-agent
yum remove ambari-server


三、删除已安装的服务组件
yum list installed | grep ambari
yum list installed | grep hdp
yum remove -y hdfs*
yum remove -y hive*
yum remove -y yarn*
yum remove -y mapreduce2*
yum remove -y tez*
yum remove -y hbase*
yum remove -y pig*
yum remove -y sqoop*
yum remove -y oozie*
yum remove -y zookeeper*
yum remove -y falcon*
yum remove -y storm*
yum remove -y flume*
yum remove -y accumulo*
yum remove -y Ambari Infra*
yum remove -y Ambari Metrics*
yum remove -y Atlas*
yum remove -y Kafka*
yum remove -y Knox*
yum remove -y Log Search*
yum remove -y Ranger*
yum remove -y Ranger KMS*
yum remove -y SmartSense*
yum remove -y Zeppelin Notebook*
yum remove -y Druid*
yum remove -y Mahout*
yum remove -y Slider*
yum remove -y atlas-metadata_2_6_5_0_292-storm-plugin 0.8.0.2.6.5.0-292
yum remove -y atlas-metadata_2_6_5_0_292-sqoop-plugin 0.8.0.2.6.5.0-292
yum remove -y ranger_2_6_5_0_292-yarn-plugin0.7.0.2.6.5.0-292
yum remove -y bigtop-jsvc 1.0.15-292
yum remove -y spark2_2_6_5_0_292-yarn-shuffle 2.3.0.2.6.5.0-292
yum remove -y ranger_2_6_5_0_292-hdfs-plugin0.7.0.2.6.5.0-292
yum remove -y ranger_2_6_5_0_292-storm-plugin 0.7.0.2.6.5.0-292
yum remove -y ranger_2_6_5_0_292-kafka-plugin 0.7.0.2.6.5.0-292
yum remove -y atlas-metadata_2_6_5_0_292-hive-plugin0.8.0.2.6.5.0-292
yum remove -y slider_2_6_5_0_2920.92.0.2.6.5.0-292
yum remove -y ranger_2_6_5_0_292-hbase-plugin 0.7.0.2.6.5.0-292
yum remove -y ranger_2_6_5_0_292-hive-plugin0.7.0.2.6.5.0-292
yum remove -y spark_2_6_5_0_292-yarn-shuffle1.6.3.2.6.5.0-292


四、删除用户
userdel nagios
userdel hive
userdel ambari-qa
userdel hbase
userdel oozie
userdel hcat
userdel mapred
userdel hdfs
userdel rrdcached
userdel zookeeper
userdel mysql
userdel sqoop
userdel puppet
userdel yarn
userdel tez
userdel hadoop
userdel knox
userdel storm
userdel falcon
userdel flume
userdel nagios
userdel admin
userdel postgres
userdel hdfs
userdel zookeeper
userdel hbase
userdel ams
userdel spark
userdel kafka
userdel ranger
userdel kms
userdel zookeeper
userdel ambari-qa
userdel hdfs
userdel yarn
userdel mapred


五、删除文件
rm -rf /hadoop/*
rm -rf /etc/ambari*
rm -rf /etc/zookeeper/
rm -rf /etc/ranger*
rm -rf /etc/rc.d/init.d/ranger*
rm -rf /etc/hadoop/
rm -rf /etc/hadoop/
rm -rf /etc/hbase/
rm -rf /etc/hive
rm -rf /usr/hdp/
rm -rf /etc/zookeeper/
rm -rf /tmp/ambari-qa
rm -rf /tmp/sqoop-ambari-qa/
rm -rf /kafka-logs/
rm -rf /var/lib/ambari*
rm -rf /var/lib/hive2*
rm -rf /var/run/kafka/
rm -rf /etc/flume
rm -rf /etc/hive-hcatalog
rm -rf /etc/hive-webhcat
rm -rf /etc/phoenix
rm -rf /etc/ambari-metrics-collector
rm -rf /etc/ambari-metrics-monitor
rm -rf /tmp/hdfs
rm -rf /tmp/hcat
rm -rf /etc/kafka
rm -rf /etc/oozie
rm -rf /etc/storm
rm -rf /etc/tez
rm -rf /etc/falcon
rm -rf /etc/slider
rm -rf /etc/pig
rm -rf /etc/ranger
rm -rf /var/log/hadoop
rm -rf /var/log/hbase
rm -rf /var/log/hive
rm -rf /var/log/oozie
rm -rf /var/log/sqoop
rm -rf /var/log/zookeeper
rm -rf /var/log/flume
rm -rf /var/log/storm
rm -rf /var/log/hive-hcatalog
rm -rf /var/log/falcon
rm -rf /var/log/webhcat
rm -rf /var/log/hadoop-hdfs
rm -rf /var/log/hadoop-yarn
rm -rf /var/log/hadoop-mapreduce
rm -rf /var/log/spark
rm -rf /var/log/ranger
rm -rf /usr/lib/flume
rm -rf /usr/lib/storm
rm -rf /var/lib/hive
rm -rf /var/lib/oozie
rm -rf /var/lib/zookeeper
rm -rf /var/lib/flume
rm -rf /var/lib/hadoop-hdfs
rm -rf /var/lib/slider
rm -rf /var/lib/ranger
rm -rf /var/tmp/oozie
rm -rf /var/tmp/sqoop
rm -rf /tmp/hive
rm -rf /tmp/hadoop-hdfs
rm -rf /etc/sqoop
rm -rf /var/log/ambari-metrics-collector
rm -rf /var/log/ambari-metrics-monitor
rm -rf /usr/lib/ambari-metrics-collector
rm -rf /var/lib/hadoop-yarn
rm -rf /var/lib/hadoop-mapreduce
rm -rf /var/lib/ambari-metrics-collector
rm -rf /var/log/kafka
rm -rf /tmp/hadoop-yarn
rm -rf /hadoop/zookeeper
rm -rf /hadoop/hdfs
rm -rf /kafka-logs
rm -rf /etc/storm-slider-client

 

以上是关于卸载ambari的主要内容,如果未能解决你的问题,请参考以下文章

ZoomIt怎么卸载

sqlserver2012怎么卸载干净

ubuntu卸载软件教程ubunto怎么卸载软件?

如何卸载mathType6 ?

怎么卸载LNMP重新安装

如何在Windows下卸载重装Mysql