lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: not able to import Data through DIH solr 4.2.1
Date Thu, 19 Mar 2015 05:28:49 GMT
On 3/18/2015 11:00 PM, abhishek tiwari wrote:
> my solrconfig :
> <lib dir="../../../example/lib/" regex="mysql-connector-java-.*\.jar" /> <
> lib dir="../../../dist/" regex="solr-dataimporthandler-.*\.jar" />

The way that I always recommend dealing with extra jars:

In your solr home, create a "lib" directory.  Copy all the extra jars
that you need into this directory, including the DIH jar and your jdbc
driver jar.  Remove all <lib> config elements from solrconfig.xml.

In Solr 4.2, you will also need to make sure that your solr.xml has a
sharedLib attribute on the <solr> tag, set to "lib".  On 4.3 and later,
this step is not required ... it will actually cause the jars to NOT work.

See the comment on this issue dated 12/Nov/13:


View raw message