org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler

社会主义新天地 提交于 2019-11-30 12:15:52

you have to edit solrconfig.xml and add the path to the library as well, e.g.:

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

..if you still have it in that directory. In the example solrconfigs I found they put it right underneath

<luceneMatchVersion>LUCENE_40</luceneMatchVersion>

In solr-4.3.0 while trying to implement: http://wiki.apache.org/solr/DIHQuickStart adding:

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

in the file: PROJECT-HOME\solr\collection1\ conf\solrconfig.xml

under the existing lines:

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

solved the problem. maybe you need to restart the servlet container (in default case: Jetty).

The problem with solr-5.2.0 version. when i switched to solr-5.5.0, The issue has been resolved.

Had similar problem, my issue was with symlinks (solr didn't follow them).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!