Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

java.lang.NullPointerException received when following Tutorial for Cloudera Search deployment for CDH 6.2

Highlighted

java.lang.NullPointerException received when following Tutorial for Cloudera Search deployment for CDH 6.2

Explorer

[The following question was moved here after originally being posted 12-18-1019 to this thread which was marked 'Solved' 12-17-2019 — Moderator]

The final step in the tutorial [presumably the one located here—Moderator]…Execute Query at the end of the tutorial results in this exception

 

trace":"java.lang.NullPointerException\n\tat org.apache.sentry.binding.solr.authz.SentrySolrPluginImpl.getShortUserName(SentrySolrPluginImpl.java:413)\n\tat org.apache.solr.handler.component.DocAuthorizationComponent.getUserName(DocAuthorizationComponent.java:80)\n\tat org.apache.solr.handler.component.DocAuthorizationComponent.prepare(DocAuthorizationComponent.java:95)\n\tat org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:272)\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:2548)\n\tat org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:764)\n\tat org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:521)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:376)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:322)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:513)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\n\tat org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:539)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)\n\tat java.lang.Thread.run(Thread.java:748)\n",

4 REPLIES 4
Highlighted

Cloudera Search Tutorial Error

Explorer

Completed the Tutorial, but querying fails

Env:

Migrated from CDH 5.14 to CDH 6.2

Solr 7.4.0

 

Browsing to mysolrserver:8983/solr/test_collection/select?q=*:*&wt=json&indent=true

 

returns this error below.

{
  "responseHeader":{
    "zkConnected":true,
    "status":500,
    "QTime":1,
    "params":{
      "q":"*:*",
      "indent":"true",
      "wt":"json"}},
  "error":{
    "trace":"java.lang.NullPointerException\n\tat org.apache.sentry.binding.solr.authz.SentrySolrPluginImpl.getShortUserName(SentrySolrPluginImpl.java:413)\n\tat org.apache.solr.handler.component.DocAuthorizationComponent.getUserName(DocAuthorizationComponent.java:80)\n\tat org.apache.solr.handler.component.DocAuthorizationComponent.prepare(DocAuthorizationComponent.java:95)\n\tat org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:272)\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:2548)\n\tat org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:764)\n\tat org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:521)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:376)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:322)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:513)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\n\tat org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:539)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)\n\tat org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)\n\tat org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)\n\tat java.lang.Thread.run(Thread.java:748)\n",
    "code":500}}

Highlighted

Re: Cloudera Search Tutorial Error

Expert Contributor

Your recent update indicates that an upgrade was performed from 5.14 to 6.2.

 

The 500 error indicates a problem in the system response. Have you properly followed the migration and upgrade documentation found here?

 

https://docs.cloudera.com/documentation/enterprise/upgrade/topics/search_prepare_upgrade_cdh_6.html

---
Customer Operations Engineer | Security SME | Cloudera, Inc.
Highlighted

Re: Cloudera Search Tutorial Error

Explorer

We weren't using the Solr service in the previous cluster.  So we just removed the service during the upgrade and added it after the upgrade

 

following the turorial we are able to create the 2 shard cores and the test collection.

 

Just the execute query throws exception

Highlighted

Re: Cloudera Search Tutorial Error

Explorer

We don't have any indexes or collection in this cluster.

Just trying to use it for Solr Search functions now.

We were just running the tutorial to validate the Solr service configuration.

 

Any steps we can take to re-initialize the service as new and get rid of any left over artifacts from the 5.14 will also be good as we don't have anything in the Search service yet.

 

Regards

Don't have an account?
Coming from Hortonworks? Activate your account here