ranger
ranger copied to clipboard
setup.sh: Create lib directory before copying jar
I ran into this while creating docker image for 2.1.0. I think this is a bug, but I cannot find any report elsewhere.
2021-01-15 08:02:34,119 [I] Copying POSTGRES Connector to /ranger-2.1.0-admin/ews/webapp/WEB-INF/lib
2021-01-15 08:02:34,127 [I] Copying POSTGRES Connector to /ranger-2.1.0-admin/ews/webapp/WEB-INF/lib DONE
2021-01-15 08:02:34,130 [I] check if command python exists
2021-01-15 08:02:34,132 [I] 'python' command found
Error: Could not find or load main class org.apache.ranger.common.RangerVersionInfo
/ranger-2.1.0-admin/ews/ranger-admin-services.sh: line 182: cd: /ranger-2.1.0-admin/ews/webapp/WEB-INF/lib: Not a directory
root@f1376d3be7d3:/ranger-2.1.0-admin# ls -lh /ranger-2.1.0-admin/ews/webapp/WEB-INF/lib
-rw-r--r-- 1 root root 982K Jan 15 08:02 /ranger-2.1.0-admin/ews/webapp/WEB-INF/lib
root@f1376d3be7d3:/ranger-2.1.0-admin# ls -lh postgresql.jar
-rw-r--r-- 1 ranger ranger 982K Oct 15 13:11 postgresql.jar