Hello,

I try to access Hive from Spark in an Hadoop cluster where I use Ranger to
control Hive access.

As Ranger is installed, I have setup hive accordingly:

hive.security.authorization.manager=
org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizerFactory

When I run Spark and I request it to access Hive table, it is using this
class to access it but I get several errors:

16/01/18 17:51:50 INFO provider.AuditProviderFactory: No v3 audit
configuration found. Trying v2 audit configurations
16/01/18 17:51:50 ERROR util.PolicyRefresher:
PolicyRefresher(serviceName=null): failed to refresh policies. Will
continue to use last known version of policies (-1)
com.sun.jersey.api.client.ClientHandlerException:
java.lang.IllegalArgumentException: URI is not absolute
        at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at
com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
        at
com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
        at
com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:503)
        at
org.apache.ranger.admin.client.RangerAdminRESTClient.getServicePoliciesIfUpdated(RangerAdminRESTClient.java:71)
        at
org.apache.ranger.plugin.util.PolicyRefresher.loadPolicyfromPolicyAdmin(PolicyRefresher.java:205)



--

And then (but it is not clear at all the two errors are connected) :

16/01/18 17:51:50 INFO ql.Driver: Starting task [Stage-0:DDL] in serial mode
16/01/18 17:51:50 ERROR authorizer.RangerHiveAuthorizer:
filterListCmdObjects: Internal error: null RangerAccessResult object
received back from isAccessAllowed()!
16/01/18 17:51:50 ERROR authorizer.RangerHiveAuthorizer:
filterListCmdObjects: Internal error: null RangerAccessResult object
received back from isAccessAllowed()!
16/01/18 17:51:50 ERROR authorizer.RangerHiveAuthorizer:
filterListCmdObjects: Internal error: null RangerAccessResult object
received back from isAccessAllowed()!
1
-- 

And then the access to Hive tables fails.

I am not sure where to go from there. Any help would be appreciated.

Best Regards,

Julien

Reply via email to