Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you encounter errors in executing the wget commands, try restart Ranger by testdata/bin/run-ranger-server.sh. If Ranger fails to start, try reconfigure the ranger db by "bin/create-test-configuration.sh -create_ranger_policy_db".

2.  Failed to start Ranger Admin server due to "Permission denied"

This error usually happens when you first set up the ranger service or after we bump the CDP build number (so you need to set up the ranger service again!). The errors are

Code Block
find: ‘/home/quanlong/workspace/Impala/toolchain/cdp_components-7049391/ranger-2.1.0.7.2.7.0-44-admin/ews/webapp/WEB-INF/classes/conf/’: No such file or directory
mkdir: cannot create directory ‘/var/run/ranger’: Permission denied
chmod: cannot access '/var/run/ranger': No such file or directory
Restarting Apache Ranger Admin
Apache Ranger Admin Service is not running
Starting Apache Ranger Admin Service
Apache Ranger Admin Service failed to start!

The script should not creating '/var/run/ranger'. It reveals that RANGER_PID_DIR_PATH is not set correctly. It's default value is '/var/run/ranger'.

You should run bin/create-test-configuration.sh to set up the ranger service. It will copy some scripts to the ranger dir so some vars like RANGER_PID_DIR_PATH can be set correctly. After these, testdata/bin/run-ranger-server.sh will succeed.

Remember to run bin/create-test-configuration.sh when you bump the CDP build number. Because a new Ranger dir will be created in toolchain and it should be set up as well.