ranger部署

Ranger部署

1.修改初始化配置文件 :

sudo su - app

cd /data/users/app/ranger-admin

vim install.properties

 

2.mysql授权

#my 3306

>create database ranger_audit_db;

>create database ranger_db;

>grant all privileges on `ranger_db`.* to 'ranger'@'%' with grant option identified by $password;

>grant all privileges on `ranger_audit_db`.* to 'ranger'@'%' with grant option;

>grant all privileges on `mysql`.* to 'ranger'@'%';

>grant all privileges on `ranger_audit_db`.* to 'ranger'@'%';

>grant reload on *.* to 'ranger'@'%';

>FLUSH PRIVILEGES;

>set global innodb_large_prefix=on;

>set global log_bin_trust_function_creators=ON;

 

3.初始化mysql

cd /data/users/app/ranger-admin

sudo ./setup.sh

 

4.启动ranger进程

/data/users/app/ranger-admin/ews/start-ranger-admin.sh

你可能感兴趣的:(hadoop)