Description
The following error occurred when the "ranger-admin start" command was run.
Starting Apache Ranger Admin Service
/usr/bin/ranger-admin: line 73: /var/run/ranger/rangeradmin.pid: No such file or directory
chown: cannot access '/var/run/ranger/rangeradmin.pid': No such file or directory
chmod: cannot access '/var/run/ranger/rangeradmin.pid': No such file or directory
cat: /var/run/ranger/rangeradmin.pid: No such file or directory
Apache Ranger Admin Service with pid has started.
The program doesn't check the RANGER_PID_DIR_PATH variables corresponding to the path in ranger-admin-services.sh file. The "echo $VALUE_OF_PID > ${pidf}" failed when the path doesn't exist.
Reproducible Steps in ubuntu 16.04 system:
1. Configure install.properties. Using mysql database to save audit information.
2. Using 'sudo ./setup.sh' command to install ranger-admin under program directory.
3. Using 'sudo ranger-admin start' command to start security admin when the second step return success.