Reply
Highlighted
Expert Contributor
Posts: 128
Registered: ‎08-08-2013

Solr with Sentry in 5.8 sandbox not working : null:java.lang.NoSuchFieldError: LISTSNAPSHOTS

Hello,

 

I am struggling with running Solr including Sentry for granting ACLs in CDH-sandbox-5.8. After enabling "Sentry service" for SOLR and restarting it, it didn't come up properly and SOLR gets in bad health with the following error message:

Could not start Solr. Check solr/home property and the logs

Apr 12, 10:20:25.295 AM 	ERROR 	org.apache.solr.core.SolrCore 	

null:java.lang.NoSuchFieldError: LISTSNAPSHOTS
	at org.apache.solr.handler.admin.SecureCollectionsHandler.<clinit>(SecureCollectionsHandler.java:38)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:270)
	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:474)
	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:593)
	at org.apache.solr.core.CoreContainer.createHandler(CoreContainer.java:784)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:230)
	at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:237)
	at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:182)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:298)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:119)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:802)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1080)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1003)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:507)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:325)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1068)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

 

Any hints how to solve this ?

 

Thanks....

 

Cloudera Employee
Posts: 25
Registered: ‎08-22-2014

Re: Solr with Sentry in 5.8 sandbox not working : null:java.lang.NoSuchFieldError: LISTSNAPSHOTS

What version of CDH and CM are you using? Did you set sentry as a service for solr from CM or setting it with sentry-provider.ini file?

 

Have a look at this doc

https://www.cloudera.com/documentation/enterprise/5-5-x/topics/search_sentry.html

Announcements