New Contributor
Posts: 5
Registered: ‎09-26-2016
Solr with Sentry, Databased backed storage
[ Edited ]

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" }

Who Me Too'd this topic