You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "mike st. john" <ms...@gmail.com> on 2013/11/10 02:26:54 UTC

new collection clustering class not found.

I have a cluster with several collections using the same config in zk,
when i add a new collection through the collection api it
throws org.apache.solr.common.SolrException: Error loading class
'solr.clustering.ClusteringComponent'


when i query all the other collections, clustering works fine,  in the solr
logs i can see the other collections are loading up the clustering libs.

I've tried adding the libs to the sharedlib, but thats causing other issues.


anyone see anything similar with solr 4.4.0?

thanks

msj

Re: new collection clustering class not found.

Posted by Shawn Heisey <so...@elyograg.org>.
On 11/9/2013 6:26 PM, mike st. john wrote:
> I have a cluster with several collections using the same config in zk,
> when i add a new collection through the collection api it
> throws org.apache.solr.common.SolrException: Error loading class
> 'solr.clustering.ClusteringComponent'
> 
> 
> when i query all the other collections, clustering works fine,  in the solr
> logs i can see the other collections are loading up the clustering libs.
> 
> I've tried adding the libs to the sharedlib, but thats causing other issues.

You could be running into this:

https://issues.apache.org/jira/browse/SOLR-4852

Basically what you need to do to eliminate this problem is remove the
sharedLib attribute from solr.xml and put all your extra jars in
${solr.solr.home}/lib, which is automatically searched regardless of
configuration.

You should also remove all <lib> directives from your solrconfig.xml
file(s).

Thanks,
Shawn