ambari失败重装重置环境

3_1_4是ambari版本号

sudo rpm -qa| grep 3_1_4 | awk '{print $1}'| xargs rpm -e --nodeps

sudo rpm -qa| grep ambari| awk '{print $1}'| xargs rpm -e --nodeps

rm -rf  /usr/hdp/ 

userdel accumulo
userdel admin
userdel ambari-qa
userdel ams
userdel atlas
userdel falcon
userdel flume
userdel hadoop
userdel hbase
userdel hcat
userdel hdfs
userdel hive
userdel kafka
userdel kms
userdel knox
userdel mapred
userdel nagios
userdel oozie
userdel postgres
userdel puppet
userdel ranger
userdel rrdcached
userdel spark
userdel sqoop
userdel storm
userdel tez
userdel yarn
userdel yarn-ats
userdel zeppelin
userdel zookeeper


rm -rf /var/log/ambari* /var/log/hadoop /var/log/hbase /var/log/hive /var/log/oozie /var/log/sqoop /var/log/zookeeper /var/log/flume /var/log/storm /var/log/hive-hcatalog /var/log/falcon /var/log/webhcat /var/log/hadoop-hdfs /var/log/hadoop-yarn /var/log/hadoop-mapreduce /var/log/spark /var/log/spark2 /var/log/ranger /var/log/atlas /var/log/kafka /var/log/knox /var/log/livy2 /var/log/zeppelin /var/log/accumulo /var/log/hst /var/log/solr /var/log/falcon

你可能感兴趣的:(ambari,服务器,linux)