移除Ambari服务
依次运行如下命令:
1 | rpm -qa | grep ambari |
1 | ambari-server stop |
Ambari Agent Cleanup Script
1 | python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py -s -k users |
Remove Packages
1 | yum erase -y `yum list | grep @HDP-2 | awk '{ print $1 }'` |
移除文件夹(Clean Folders)
移除文件夹(Clean Folders)脚本:
1 | rm -rf |
Clean Repository
1 | yum clean all |
在重装之前一定要移除干净。
各个服务的目录位置如下:
1 | /etc/<service_name> |
参考资料来自:
[Uninstalling and Cleaning a HDP Node]
[Uninstalling and Cleaning a HDP Node]:http://henning.kropponline.de/2016/04/24/uninstalling-and-cleaning-a-hdp-node/