Hi,

i'm totally confused ... DIH == DataImportHandler ... it's just an
acronym, you say you aren't using DIH, but you are having a problem
loading DIH, so DIH is used in your configs.


sorry for the confusion. I was just trying to say:
I use the example code from
solr-4.3.0/example/solr
and not from
solr-4.3.0/example/example-DIH


        ...ok, for starters this makes no sense, and may be the cause of
some problems.  you aparently have your collection1 configs setup to load
all of the classes from the /home/solr/solr-4.3.0/example/example/lib
directory as part of the collection1 classloader.

you really don't want to do that.  It will most likeley cause you all
sorts of problems, even if it's unrelated to the current problem.

For solr is was recomended to place the MySQL driver in
solr_3.6.2/example/lib/ This dir is load by default in 3.6 (as I did not add any additional lib dirs). Thats why I did this in 4.3 as well. What's the best practice to place third party libs?

I added example/lib/ to collection1/conf/solrconfig.xml as <lib dir
Without this, the MySQL driver is not loaded according to the
org.apache.solr.core.SolrResourceLoader  – Adding xxx messages

but no where does it ever say anything about adding
contrib/dataimporthandler jars to the classloader.

collection1/conf/solrconfig.xml has the following lib dirs by default:
  <lib dir="../../../contrib/extraction/lib" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-cell-\d.*\.jar" />

  <lib dir="../../../contrib/clustering/lib/" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-clustering-\d.*\.jar" />

  <lib dir="../../../contrib/langid/lib/" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-langid-\d.*\.jar" />

  <lib dir="../../../contrib/velocity/lib" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-velocity-\d.*\.jar" />

Looks the same to me as in 3.6.


which means your config isn't setup to load any of hte dataimporthandler
jars as plugins

That means I have to configure the dataimporthandler manually in 4.3? If yes, this is the root of all problems ...



which means when it's done loading plugins, and it starts to initialize
things like RequestHandlers, and it finds a refrence to the
DataImportHandler, it doesn't know what that means...

: Caused by: java.lang.ClassNotFoundException:
: org.apache.solr.handler.dataimport.DataImportHandler


if you look at the 4.3 DIH examples, you'll note that
the only solrconfig.xml files that mention "DataImportHandler" also
include lib directives like the following in order to load
dataimporthandler as a plugin...


   <lib dir="../../../../dist/" regex="solr-dataimporthandler-.*\.jar" />

included this ... to no avail.

    <requestHandler name="/dataimport" 
class="org.apache.solr.handler.dataimport.DataImportHandler">


  <requestHandler name="/dataimport"
        class="org.apache.solr.handler.dataimport.DataImportHandler">

still does not load.

Regards
Chris

Reply via email to