New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Presto ranger integration error #12989
Comments
Though I'm not familiar with Ranger, I guess you would also need to make sure the plugin contains presto/presto-main/src/main/java/com/facebook/presto/server/PluginManager.java Lines 223 to 226 in 6796a1e
See if https://prestodb.github.io/docs/current/develop/system-access-control.html helps |
Yes, I have created access-control.properties in pestro etc directory manually. But I am not sure what should be the name of access-control.name=<What Name>. And how I can configure control name while installing ranger plugin. Do we need to do anything else after executing ./enable-presto-plugin.sh to enable ranger plugin with presto? I am not sure if I need to do any changes in ranger UI (port 6080) for presto? Thanks in Advance |
it works for me, u need to build ranger from source (master branch) as ranger-admin jar will change and .sh will change in ranger, then u will see presto in Ranger UI. don't manually create any rules.json, the enable-presto-plugin.sh will create files in plugins subfolder of presto's install folder. Note that it works for prestosql not prestodb. |
do you mean prestodb does not support ranger integration at all? |
@bb786112 you can change references from prestosql.io to com.facebook.presto... in ranger master branch, worked for me |
@tooptoop4 I have the same issue to install ranger plugin as describe by @bb786112 . |
@bradhill99 i'm using prestodb 0.220, needed to change all prestosql references. see apache/ranger#36 it has discussion with my folder structure |
I have PrestoSQL-326 to configure it with Ranger and following these steps: https://cwiki.apache.org/confluence/display/RANGER/Presto+Plugin But I am getting below error:
Can someone help me through this issue? |
@rushidmarne echo ranger > etc/access-control.properties |
Presto 3xx releases are maintained at https://github.com/prestosql/presto. |
The moment I put file /usr/lib/presto/etc/access-control.properties presto breaks and fails to connect catalogs. access-control.properties hive_ranger.xml Seems like presto is not understanding : access-control.name=ranger Are the contents of access-control.properties file are correct? |
error msg? access-control.properties should just have access-control.name=ranger |
@tooptoop4 |
@tooptoop4 : And now getting other error: Do we need to do any changes at ranger side/server? because I had done all the changes on presto server only. |
Yeeahhhh....!!! Now I can see the presto plugin in the Ranger. I had to add below few additional jars to : ranger-presto-plugin |
Presto-Ranger integration is done, I am seeing Presto plugin in Ranger but whenever I am trying to access hive schema I am getting error : "Access Denied: Cannot access catalog hive". I tried configuring Ranger service with Hive driver: 'org.apache.hive.jdbc.HiveDriver' and also with Presto driver 'io.prestosql.jdbc.PrestoDriver' but still getting access denied error. Any idea what I am missing? |
@rushidmarne |
I am still getting this same problem any solution for this? |
What is the solution?
|
I have the same problem too. @rushidmarne How did you fix it? just added som jars?
|
I am also facing the same problem. @rushidmarne how did you resolve it? |
@rushidmarne +1 |
@rushidmarne Would you please tell me all the full names of those jars? I installed presto 0.276.1, and still encountered ranger-presto-plugin integration problem: |
HI All,
I am working to integrate ranger and presto and following this URL but ended with error and integration is not successful.
Steps:
It was successful run but It did not create access-control.properties & rules.json file. And I created these files manually in /etc/presto. Now presto is not starting and failed with the below error.
2019-06-21T04:59:21.731Z ERROR main com.facebook.presto.server.PrestoServer Access control ranger is not registered
java.lang.IllegalStateException: Access control ranger is not registered
at com.google.common.base.Preconditions.checkState(Preconditions.java:585)
at com.facebook.presto.security.AccessControlManager.setSystemAccessControl(AccessControlManager.java:136)
at com.facebook.presto.security.AccessControlManager.loadSystemAccessControl(AccessControlManager.java:118)
at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:142)
at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:73)
Do we need to use ranger-servicedef-presto.json anywhere because its not mentioned in ranger presto integration URL.
OR any another link which I can follow which is having all information.
Thanks
Bharat Bhushan
The text was updated successfully, but these errors were encountered: