Member since
09-26-2016
5
Posts
0
Kudos Received
0
Solutions
12-14-2016
12:37 PM
Yes, user group and user existed before adding them to sentry admin group.
... View more
12-14-2016
10:23 AM
I have already tried doing that but it worked only when I added system user to the pre-existing sentry admin group i.e. hive.
... View more
10-20-2016
02:47 AM
Hi, I am using Sentry on Hive for securing hive tables. I have two users hive,admin. I am using Hue to manage permissions. I use hive user to login and create a new admin user. I give both users same permissions and add them to all groups i.e. hive and admin. Then I create two roles hive and admin and grant them all permission to read/write database/tables. I am able to create new tables in metastore manager in Hue through hive user but I get error in case of logging by admin user and doing same in hue. I am worndering why there are no roles found as well which I created using hive user for admin user. I also get error saying Access denied to user admin when I open security->hive tables by admin user. Below are the screenshots.
... View more
09-26-2016
04:48 AM
Hi, I am using Solr with Sentry service. Both Service are up and running properly but when I run below command, I get NullPointer Error solrctl sentry --list-roles ERROR tools.SentryShellSolr: Config key sentry.service.client.server.rpc-address is required
java.lang.NullPointerException: Config key sentry.service.client.server.rpc-address is required
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:208)
at org.apache.sentry.provider.db.generic.service.thrift.SentryGenericServiceClientDefaultImpl.<init>(SentryGenericServiceClientDefaultImpl.java:123)
at org.apache.sentry.provider.db.generic.service.thrift.SentryGenericServiceClientFactory.create(SentryGenericServiceClientFactory.java:31)
at org.apache.sentry.provider.db.generic.tools.SentryShellSolr.run(SentryShellSolr.java:50)
at org.apache.sentry.provider.db.tools.SentryShellCommon.executeShell(SentryShellCommon.java:241)
at org.apache.sentry.provider.db.generic.tools.SentryShellSolr.main(SentryShellSolr.java:95)
The operation failed. Message: Config key sentry.service.client.server.rpc-address is require Any help/hint is appreciable. Thanks! EDIT : 1 Following is the message I get when I try to add priviledges using Hue. { "message": "{\"responseHeader\":{\"status\":401,\"QTime\":26},\"error\":{\"metadata\":[\"error-class\",\"org.apache.solr.common.SolrException\",\"root-error-class\",\"org.apache.sentry.binding.solr.authz.SentrySolrAuthorizationException\"],\"msg\":\"org.apache.sentry.binding.solr.authz.SentrySolrAuthorizationException: User admin does not have privileges for admin\",\"code\":401}}\n (error 401)", "traceback": [ [ "/opt/cloudera/parcels/CDH-5.8.0-1.cdh5.8.0.p0.42/lib/hue/desktop/libs/libsolr/src/libsolr/api.py", 481, "configs", "return self._root.get('admin/configs', params=params)['configSets']" ], [ "/opt/cloudera/parcels/CDH-5.8.0-1.cdh5.8.0.p0.42/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", 98, "get", "return self.invoke(\"GET\", relpath, params, headers=headers, allow_redirects=True)" ], [ "/opt/cloudera/parcels/CDH-5.8.0-1.cdh5.8.0.p0.42/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", 79, "invoke", "urlencode=self._urlencode)" ], [ "/opt/cloudera/parcels/CDH-5.8.0-1.cdh5.8.0.p0.42/lib/hue/desktop/core/src/desktop/lib/rest/http_client.py", 163, "execute", "raise self._exc_class(ex)" ] ], "detail": null, "title": "Error while accessing Solr" }
... View more