Created on 02-01-2017 11:23 AM - edited 08-18-2019 05:25 AM
I'm having problems integrating Ranger and Atlas in a clean HDP 2.5 environment. Ranger sync Atlas policies and Atlas is auditing, but when I click on "test connection" from the Ranger Atlas Repo, the test fails.
The log /var/log/ranger/admin/xa_portal.log shows that there is a missing dependency in Ranger.
To fix it I copied the ranger-atlas.plugin-VERSION.jar to the lib folder of Ranger.
cp /usr/hdp/2.5.0.0-1245/atlas/libext/ranger-atlas-plugin-impl/ranger-atlas-plugin-0.6.0.2.5.0.0-1245.jar /usr/hdp/current/ranger-admin/ews/lib
After that, the error changes and now i'm getting a ClassCastException that I don't know how to fix it. Anyone knows how to fix it or has passed the "test connection" for the Ranger Atlas plugin.
Thanks in advanced 🙂
Created 02-01-2017 07:12 PM
Also please check in ranger install folder /usr/hdp/2.XXXX/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins , atlas/ranger-atlas-plugin.*.jar is present.
This is same plugin jar which is part of atlas ranger plugin install.
SOLUTION :
and not to /usr/hdp/2.5.0.0-1245/ranger-admin/ews/lib folder
Created 02-01-2017 12:14 PM
Do you have all of the clients installed on the host? Check the host page and confirm. What is the output of the following command?
hdp-select atlas hdp-select ranger
Created 02-02-2017 08:04 AM
Yes, all clients are installing on the host
Created 02-01-2017 06:34 PM
https://issues.apache.org/jira/browse/RANGER-1271 might be related.
Created 02-02-2017 08:02 AM
Thanks, but bug RANGER-1271 is related with Ranger 0.7 and HDP 2.5 include Ranger 0.6
Created 02-01-2017 07:12 PM
Also please check in ranger install folder /usr/hdp/2.XXXX/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins , atlas/ranger-atlas-plugin.*.jar is present.
This is same plugin jar which is part of atlas ranger plugin install.
SOLUTION :
and not to /usr/hdp/2.5.0.0-1245/ranger-admin/ews/lib folder
Created on 02-02-2017 07:58 AM - edited 08-18-2019 05:25 AM
You are right, the atlas folder is missing as the below screenshot shows.
Executing below commands and restarting Ranger service after it, the "test connection" works.
cd /usr/hdp/2.5.0.0-1245/ranger-admin/ews/webapp/WEB-INF/classes/ranger-plugins mkdir atlas cp /usr/hdp/2.5.0.0-1245/atlas/libext/ranger-atlas-plugin-impl/ranger-atlas-plugin-0.6.0.2.5.0.0-1245.jar atlas/ chown -R ranger:ranger atlas
Thanks @Ramesh Mani 🙂