On 6/15/2015 10:00 AM, Paden wrote:
> Full Import failed:java.lang.RuntimeException: java.lang.RuntimeException:
> org.apache.solr.handler.dataimport.DataImportHandlerException: Could not
> load driver: com.mysql.jdbc.Driver Processing Document # 1
>
> My fairly positive assumption is that it simply cannot find the .jar for the
> JDBC and the tutorial I'm using tells me to put it where it is. So I guess
> the simple question is where do I put the .jar file for this so I stop
> getting this error? 

The examples included in Solr use <lib> config elements in
solrconfig.xml to load extra jars, including the dataimport handler jar.

This is not the best way to handle it, although it's pretty much the
only way to make it work in the out-of-the-box examples.

Instead, you should handle extra jars, including the MySQL JDBC driver,
like this:

* In your Solr home, which is the directory where solr.xml lives, create
a "lib" directory.
* Put all extra jars in that lib directory.
* Remove all <lib> elements from each active solrconfig.xml.

This lib directory will be automatically used without any config (in
Solr 4.3 and later).  Those jars will be available to all cores.

Thanks,
Shawn

Reply via email to