...
Lay down the binaries into appropriate places.
cd /usr/local
sudo tar zxf ~/dev/ranger/target/ranger-0.4.0-admin.tar.gz
sudo ln -s ranger-0.4.0-admin ranger-admin
cd ranger-admin and open install.properties using your text editor (e.g. vi install.properties)
Verify the root password that you had picked while installing mysql. I had chosen root so the relevant section in my install.properties file looks as follows
- db_root_user=root
- db_root_password=root
db_host=localhost
The install process would create a couple of users in the database for storing administration and audit information, pick passwords for those too. With my choices here’s how the relevant sections in the install.properties file look now.Ranger allows you to get different authentication modes but for now let’s just leave rest of the things in install.properties file as they are.
- # DB information Ranger Policy Store schema
# - db_name=ranger
- db_user=rangeradmin
- db_password=rangeradmin
- # DB UserId for storing auditlog infromation
- #
- audit_db_name=ranger (Note the database details used here. This is needed while configuring plugins in later steps)
- audit_db_user=rangerlogger
- audit_db_password=rangerlogger
- # DB information Ranger Policy Store schema
Once all the required properties are updated, execute the below scripts to install ranger admin service.
Execute : ./setup.sh (This will configure the properties)
Execute : ./set_globals.sh (This will create the soft links and other folders for logs, etc)Create a valid symlink in /usr/bin/ for start/stop of ranger admin
cd /usr/bin
ln -sf /usr/local/ranger-admin/ews/start-ranger-admin.sh ranger-admin-start
ln -sf /usr/local/ranger-admin/ews/stop-ranger-admin.sh ranger-admin-stopUpdate ranger-admin service file to link to the start and stop scripts
vim /etc/init.d/ranger-admin ( Update the Start and Stop commands to point to the created symlinks )Start the Ranger Admin
service ranger-admin startYou can verify by visiting the external URL of the server using browser, for example :
http://<Host Address>:6080/
Defaut user and password is admin/admin. Please change it post update.Logs are in ews/logs folder. The path is relative to where you have installed ranger-admin. Check xa_portal.log and catalina.out files for ERROR and WARN log messages
...