1) Build the Apache Ranger usersync module
Follow the steps in the following tutorial to build Apache Ranger and to setup and start the Apache Ranger Admin service. Once this is done, go back to the Apache Ranger distribution that you have built and copy the usersync module:
- tar zxvf target/ranger-0.6.0-usersync.tar.gz
- mv ranger-0.6.0-usersync ${usersync.home}
You will need to install the Apache Ranger Usersync service using "sudo". If the root user does not have a JAVA_HOME property defined, then edit ${usersync.home}/setup.sh + add in, e.g.:
- export JAVA_HOME=/opt/jdk1.8.0_112
- POLICY_MGR_URL = http://localhost:6080
- SYNC_SOURCE = unix
- SYNC_INTERVAL = 1 (just for testing purposes....)
3) Start the Usersync service
The Apache Ranger Usersync service can be started via "sudo ./ranger-usersync-services.sh start". After 1 minute (see SYNC_INTERVAL above), it should successfully copy the users/groups from the local UNIX machine into the Apache Ranger Admin. Open a browser and go to "http://localhost:6080", and click on "Settings" and then "Users/Groups". You should see the users and groups synced successfully.
No comments:
Post a Comment