博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ambari删除脚本
阅读量:6328 次
发布时间:2019-06-22

本文共 3612 字,大约阅读时间需要 12 分钟。

#1.删除hdp.repo和hdp-util.repocd /etc/yum.repos.d/rm -rf hdp*rm -rf HDP*#rm -rf ambari*#2.删除安装包#用yum list installed | grep HDP来检查安装的ambari的包yum remove -y  sqoop.noarch  yum remove -y  lzo-devel.x86_64  yum remove -y  hadoop-libhdfs.x86_64  yum remove -y  rrdtool.x86_64  yum remove -y  hbase.noarch  yum remove -y  pig.noarch  yum remove -y  lzo.x86_64  yum remove -y  ambari-log4j.noarch  yum remove -y  oozie.noarch  yum remove -y  oozie-client.noarch  yum remove -y  gweb.noarch  yum remove -y  snappy-devel.x86_64  yum remove -y  hcatalog.noarch  yum remove -y  python-rrdtool.x86_64  yum remove -y  nagios.x86_64  yum remove -y  webhcat-tar-pig.noarch  yum remove -y  snappy.x86_64  yum remove -y  libconfuse.x86_64    yum remove -y  webhcat-tar-hive.noarch  yum remove -y  ganglia-gmetad.x86_64  yum remove -y  extjs.noarch  yum remove -y  hive.noarch  yum remove -y  hadoop-lzo.x86_64  yum remove -y  hadoop-lzo-native.x86_64  yum remove -y  hadoop-native.x86_64  yum remove -y  hadoop-pipes.x86_64  yum remove -y  nagios-plugins.x86_64  yum remove -y  hadoop.x86_64  yum remove -y  zookeeper.noarch      yum remove -y  hadoop-sbin.x86_64  yum remove -y  ganglia-gmond.x86_64  yum remove -y  libganglia.x86_64  yum remove -y  perl-rrdtool.x86_64yum remove -y  epel-release.noarchyum remove -y  compat-readline5*yum remove -y  fping.x86_64yum remove -y  perl-Crypt-DES.x86_64yum remove -y  exim.x86_64yum remove -y ganglia-web.noarchyum remove -y perl-Digest-HMAC.noarchyum remove -y perl-Digest-SHA1.x86_64#3.删除快捷方式cd /etc/alternativesrm -rf hadoop-etc rm -rf zookeeper-conf rm -rf hbase-conf rm -rf hadoop-log rm -rf hadoop-lib rm -rf hadoop-default rm -rf oozie-conf rm -rf hcatalog-conf rm -rf hive-conf rm -rf hadoop-man rm -rf sqoop-conf rm -rf hadoop-conf#4.删除用户userdel nagios userdel hive userdel ambari-qa userdel hbase userdel oozie userdel hcat userdel mapred userdel hdfs userdel rrdcached userdel zookeeper #userdel mysql userdel sqoopuserdel puppet#5.删除文件夹rm -rf /hadooprm -rf /etc/hadoop rm -rf /etc/hbase rm -rf /etc/hcatalog rm -rf /etc/hive rm -rf /etc/ganglia rm -rf /etc/nagios rm -rf /etc/oozie rm -rf /etc/sqoop rm -rf /etc/zookeeper rm -rf /var/run/hadoop rm -rf /var/run/hbase rm -rf /var/run/hive rm -rf /var/run/ganglia rm -rf /var/run/nagios rm -rf /var/run/oozierm -rf /var/run/zookeeperrm -rf /var/log/hadoop rm -rf /var/log/hbase rm -rf /var/log/hive rm -rf /var/log/nagios rm -rf /var/log/oozie rm -rf /var/log/zookeeper rm -rf /usr/lib/hadooprm -rf /usr/lib/hbase rm -rf /usr/lib/hcatalog rm -rf /usr/lib/hive rm -rf /usr/lib/oozie rm -rf /usr/lib/sqoop rm -rf /usr/lib/zookeeper rm -rf /var/lib/hive rm -rf /var/lib/ganglia rm -rf /var/lib/oozie rm -rf /var/lib/zookeeper rm -rf /var/tmp/oozie rm -rf /tmp/hive rm -rf /tmp/nagios rm -rf /tmp/ambari-qa rm -rf /tmp/sqoop-ambari-qa rm -rf /var/nagios rm -rf /hadoop/oozie rm -rf /hadoop/zookeeper rm -rf /hadoop/mapred rm -rf /hadoop/hdfs rm -rf /tmp/hadoop-hive rm -rf /tmp/hadoop-nagios rm -rf /tmp/hadoop-hcat rm -rf /tmp/hadoop-ambari-qa rm -rf /tmp/hsperfdata_hbase rm -rf /tmp/hsperfdata_hive rm -rf /tmp/hsperfdata_nagios rm -rf /tmp/hsperfdata_oozie rm -rf /tmp/hsperfdata_zookeeper rm -rf /tmp/hsperfdata_mapred rm -rf /tmp/hsperfdata_hdfs rm -rf /tmp/hsperfdata_hcat rm -rf /tmp/hsperfdata_ambari-qa#5.重置数据库,删除ambari包#采用这句命令来检查yum list installed | grep ambariambari-server stopambari-agent stopambari-server resetyum remove -y ambari-*yum remove -y postgresqlrm -rf /etc/yum.repos.d/ambari*rm -rf /var/lib/ambari*rm -rf /var/log/ambari*rm -rf /etc/ambari*

这个脚本给安装失败,需要重新安装的人用的,在ambari的官网上找的,然后自己花了一个小时写出来的,哎、、希望对大家有帮助。

转载地址:http://yygaa.baihongyu.com/

你可能感兴趣的文章
最佳6款用于移动网站开发的 jQuery 图片滑块插件
查看>>
C++ String
查看>>
获取系统托盘图标的坐标及文本
查看>>
log4j Test
查看>>
HDU 1255 覆盖的面积(矩形面积交)
查看>>
Combinations
查看>>
ECSHOP 布局参考图
查看>>
[译]JavaScript:参数中的数组展开
查看>>
SQL数据库无法附加,提示 MDF" 已压缩,但未驻留在只读数据库或文件组中。必须将此文件解压缩。...
查看>>
第二十一章流 3用cin输入
查看>>
在workflow中,无法为实例 ID“...”传递接口类型“...”上的事件“...” 问题的解决方法。...
查看>>
获取SQL数据库中的数据库名、所有表名、所有字段名、列描述
查看>>
Percona Toolkit 2.1.5 发布
查看>>
Cookie的生命周期问题
查看>>
Orchard 视频资料
查看>>
简述:预处理、编译、汇编、链接
查看>>
调试网页PAIP HTML的调试与分析工具
查看>>
路径工程OpenCV依赖文件路径自动添加方法
查看>>
玩转SSRS第七篇---报表订阅
查看>>
WinCE API
查看>>