如何免ROOT密码安装Apache Ranger Admin

2021-05-09  本文已影响0人  _Kantin

背景

解决

grant all privileges on ranger.* to 'A'@'%' with grant option;
grant all privileges on ranger.* to 'A'@'localhost' with grant option;
run_dba_steps(){
    getPropertyFromFileNoExit 'setup_mode' $PROPFILE setup_mode false
    if [ "x${setup_mode}x" == "xSeparateDBAx" ]; then
        log "[I] Setup mode is set to SeparateDBA. Not Running DBA steps. Please run dba_script.py before running setup..!";
    else
        log "[I] Setup mode is not set. Running DBA steps..";
                python dba_script.py -q
        fi
}
#------------------------- DB CONFIG - BEGIN ----------------------------------
# Uncomment the below if the DBA steps need to be run separately
setup_mode=SeparateDBA

例子

#修改install.properties中的配置
setup_mode=SeparateDBA

#用root登陆本地mysql服务器
CREATE USER 'test'@'localhost' IDENTIFIED BY 'test123';
grant all privileges on ranger.* to 'test'@'%' with grant option;
grant all privileges on ranger.* to 'test'@'localhost' with grant option;
FLUSH PRIVILEGES;

#修改install.properties中的配置
db_root_user=test
db_root_password=******
db_user=test
db_password=******
上一篇 下一篇

猜你喜欢

热点阅读