Thanks Shawn,

> > Error loading class 'solr.clustering.ClusteringComponent'
> >
> > Please check your logs for more information Log4j
> > (org.slf4j.impl.Log4jLoggerFactory)
> > Time        Level   Logger  Message
> > 17:36:43    WARN    SolrResourceLoader      Can't find (or read)
> > directory to add to classloader: ../../../contrib/extraction/lib
> > (resolved
> > as: /usr/share/solr/ckan/../../../contrib/extraction/lib).
> 
> Your solrconfig.xml file includes the ClusteringComponent, but you don't
> have the jars required for that component available.  Your solrconfig file
does
> have a bunch of <lib> directives, but they don't point anywhere that's
valid --
> they assume that the entire Solr download is available, not just what's in
the
> example dir.  The jar for that particular component can be found in the
> download as dist/solr-clustering-X.X.X.jar ... but it is likely to also
require
> additional jars, such as those found in contrib/clustering/lib.
> 
> When it comes to extra jars for contrib or third-party components, the
best
> thing to do is remove all <lib> directives from solrconfig.xml and put the
jars
> in ${solr.solr.home}/lib.  For you that location would be
/usr/share/solr/lib.
> Solr automatically looks in this location without any extra configuration.
>

I have put all the jar in the ${solr.solr.home}/lib folder, and now Solr
starts correctly!
There are still warnings, but apparently Solr works

11:44:37        WARN    SolrResourceLoader      Can't find (or read)
directory to add to classloader: ../../../contrib/extraction/lib (resolved
as: /usr/share/solr/ckan/../../../contrib/extraction/lib).
11:44:37        WARN    SolrResourceLoader      Can't find (or read)
directory to add to classloader: ../../../dist/ (resolved as:
/usr/share/solr/ckan/../../../dist).
11:44:37        WARN    SolrResourceLoader      Can't find (or read)
directory to add to classloader: ../../../contrib/clustering/lib/ (resolved
as: /usr/share/solr/ckan/../../../contrib/clustering/lib).
11:44:37        WARN    SolrResourceLoader      Can't find (or read)
directory to add to classloader: ../../../dist/ (resolved as:
/usr/share/solr/ckan/../../../dist).
11:44:37        WARN    SolrResourceLoader      Can't find (or read)
directory to add to classloader: ../../../contrib/langid/lib/ (resolved as:
/usr/share/solr/ckan/../../../contrib/langid/lib).
11:44:37        WARN    SolrResourceLoader      Can't find (or read)
directory to add to classloader: ../../../dist/ (resolved as:
/usr/share/solr/ckan/../../../dist).
11:44:37        WARN    SolrResourceLoader      Can't find (or read)
directory to add to classloader: ../../../contrib/velocity/lib (resolved as:
/usr/share/solr/ckan/../../../contrib/velocity/lib).
11:44:37        WARN    SolrResourceLoader      Can't find (or read)
directory to add to classloader: ../../../dist/ (resolved as:
/usr/share/solr/ckan/../../../dist).

 
 
> Further advice - remove things you don't need from your config.  If you're
> not planning to use the clustering component, take it out.  Also remove
any
> handlers that refer to components you won't be using -- the /browse
> handler is a prime example of something that most people don't need.

Thanks for this tip. 
The original CKAN installation instructions for Solr were for Solr 1.4.1, so
most likely with that version solrconf.xml was simpler and no editig was
required.
I will send the CKAN developers ml the new instructions for configuring Solr
4.5, asking them which Solr components are actually required by CKAN, so
solrconf.xml can be changed accordingly.

Thanks a lot for your precious help!

Regards,
-Elena


Reply via email to