过程概述
列出已经安装的ranger服务:
yum list installed | grep ranger*
手动删除已安装ranger服务列表中的独立插件:
yum erase ranger_4_2_0_0-<component>-plugin.x86_64
详细卸载过程
卸载Ranger和Ranger-KMS
-
通过ambari停止Ranger和Ranger-KMS服务
可以使用下面的curl删除服务
curl -u admin:admin -H "X-Requested-By:ambari" -X DELETE http://<host_name>/api/v1/clusters/<cluster-name>/services/RANGER
curl -u admin:admin -H "X-Requested-By:ambari" -X DELETE http://<host_name>/api/v1/clusters/<cluster-name>/services/RANGER_KMS
-
列出已经安装的ranger服务:
yum list installed | grep ranger*
手动删除已安装ranger服务列表中的独立插件:
yum erase ranger_4_2_0_0-admin.x86_64
yum erase ranger_4_2_0_0-usersync.x86_64
yum erase ranger_4_2_0_0-kms.x86_64
-
Ranger和Ranger-KMS创建了users,所以这些用户也要被删除
userdel ranger and/or userdel kms
-
删除ranger log目录和run运行目录,
默认的ranger log目录是:/var/log/ranger
默认的run运行目录是/usr/bin/ranger* -
清除mysql数据库:
drop database ranger