Reply
Sri
New Contributor
Posts: 4
Registered: ‎12-18-2017

Enable clustering in SolrCloud

We are on Cloudera 5.8 wih SOLR 4.10 which came with Clodera. Our Solr is running distributed way in clyustering mode. I have already enabled Dsolr.Clustring.Enabled = True in JVM options and trying to create a new collection.

Using solrctl I have created new instancedir, edited solrconfig.xml to give correct path to clustering libs. I have placed all the clustering and dist libs under /var/lib/solr and gave that absolute path in my solrconfig.xml. And when I am trying to create collection using solrctl it complains on error in clustering. The error is not descriptive enough to find out whats going on.

 

Does anyone come across issue like this? If so how did you resolve it? Any ideas would be appreciated.

 

In our setup we have solr running on 2 data nodes and I am executing these commands on our solr gateway which is on edge node.

 

Thanks

Sri

Cloudera Employee
Posts: 232
Registered: ‎01-09-2014

Re: Enable clustering in SolrCloud

Can you post the error observed from the solr logs?

-pd
Highlighted
Sri
New Contributor
Posts: 4
Registered: ‎12-18-2017

Re: Enable clustering in SolrCloud

Here is the error from the solr logs

 

 Unable to create core [findrclust_shard1_replica1] Caused by: solr.clustering.ClusteringComponent

 

org.apache.solr.common.SolrException: Error CREATEing SolrCore 'findrclust_shard1_replica1': Unable to create core [findrclust_shard1_replica1] Caused by: solr.clustering.ClusteringComponent
	at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:833)
	at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:227)
	at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:207)
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
	at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:876)
	at org.apache.solr.servlet.SolrDispatchFilter.httpSolrCall(SolrDispatchFilter.java:316)
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.solr.servlet.SolrHadoopAuthenticationFilter$2.doFilter(SolrHadoopAuthenticationFilter.java:408)
	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:622)
	at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:301)
	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:574)
	at org.apache.solr.servlet.SolrHadoopAuthenticationFilter.doFilter(SolrHadoopAuthenticationFilter.java:413)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:610)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:503)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.common.SolrException: Unable to create core [findrclust_shard1_replica1]
	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:596)
	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:523)
	at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:795)
	... 26 more
Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.clustering.ClusteringComponent'
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:974)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:754)
	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:551)
	... 28 more
Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.clustering.ClusteringComponent'
	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:490)
	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:421)
	at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:651)
	at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:707)
	at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2533)
	at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2527)
	at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2560)
	at org.apache.solr.core.SolrCore.loadSearchComponents(SolrCore.java:1501)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:885)
	... 30 more
Caused by: java.lang.ClassNotFoundException: solr.clustering.ClusteringComponent
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:474)
	... 38 more

 

Announcements