Configure DIH in multicore solr

白昼怎懂夜的黑 提交于 2019-12-02 17:51:08

问题


I have a multicore implementation of solr. I want to configure DIH / core. I manage to make it work on single core solr. What I assume, I have to make the configurations / core, which means I create the data-import.xml in the core's conf directory and rewrite solrconfig.xml of the core. I also copied in the lib the maching driver for dih, but I get an error message:

org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler' at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389) .............................................

Caused by: java.lang.ClassNotFoundException: org.apache.solr.handler.dataimport.DataImportHandler at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:615) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373) ... 49 more

Any clue, what I'm doing wrong? Thanks in advance.


回答1:


The dataimporthandler isn't included anymore in the solr.war. You should add the jar apache-solr-dataimporthandler-x.x.x.jar (please replace the x.x.x with your current version) to your classpath. You can find it in the dist folder of the solr zip file you've downloaded.



来源:https://stackoverflow.com/questions/8225650/configure-dih-in-multicore-solr

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