Sorry for the lack of details. I'm up and running now- before I was
accidently using some nightly snapshot.
On Jul 19, 2010, at 10:49 PM, Chris Hostetter
<hossman_luc...@fucit.org> wrote:
: I'm trying to enable clustering in solr 1.4. I'm following these
instructions:
:
: http://wiki.apache.org/solr/ClusteringComponent
:
: However, `ant get-libraries` fails for me. Before it tries to
download
: the 4 jar files, it tries to compile lucene? Is this necessary?
FWIW: in the future please post the actual commands you run and the
output
you recieve so we can understand exactly what you are talking about.
Looking at the build.xml file i see that the clustering "get-
libraries"
ant target depends on the "init" target (for reasons i don't
understand),
and init then wants to compile *solr* (again, for reasons i don't
understand).
Is that perhaps what you are seeing? that get-libraries is compiling
solr? (not all of lucene)
I've opened a bug to improve the situation in future releases...
https://issues.apache.org/jira/browse/SOLR-2007
..however there are other things about your email that don't make
sense to
me...
: My next attempt was to just copy contrib/clustering/lib/*.jar and
: contrib/clustering/lib/downloads/*.jar to WEB-INF/lib and enable
1) you shouldn't ever need to copy jars into WEB-INF/lib. solr
makes it
very easy to load jars with plugins...
http://wiki.apache.org/solr/SolrPlugins#How_to_Load_Plugins
http://wiki.apache.org/solr/SolrConfigXml#lib
...the example solrconfig.xml file already has a <lib/> directive
that
points at that downloads directory.
2) if the jars didn't get downloaded, they aren't going to be there
for
you to copy, so there's not much point in doing this -- but your
statement implies you have something to copy in the downloads/
directory ... do you? what exactly is in that downloads directory?
: SEVERE: org.apache.solr.common.SolrException: Error loading class
: 'org.apache.solr.handler.clustering.ClusteringComponent'
once again: full error messages are neccessary. all of the other
details
of that error that come after that line are crucial to knowing *why*
the
component didn't load.
if you have those jars in the download directory, then you should have
everything you need, it's possible there is another reason for this
error.
(details, details, details....)
-Hoss