在多核 solr 中配置 DIH [英] Configure DIH in multicore solr

查看:30
本文介绍了在多核 solr 中配置 DIH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 solr 的多核实现.我想配置DIH/核心.我设法让它在单核 solr 上工作.我假设,我必须进行配置/核心,这意味着我在核心的 conf 目录中创建 data-import.xml 并重写核心的 solrconfig.xml.我还在 lib 中复制了 dih 的加工驱动程序,但收到一条错误消息:

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:加载类时出错'org.apache.solr.handler.dataimport.DataImportHandler' 在org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389)......................................

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

原因:java.lang.ClassNotFoundException:org.apache.solr.handler.dataimport.DataImportHandler 在java.net.URLClassLoader$1.run(URLClassLoader.java:217) 在java.security.AccessController.doPrivileged(Native Method) 在java.net.URLClassLoader.findClass(URLClassLoader.java:205) 在java.lang.ClassLoader.loadClass(ClassLoader.java:321) 在java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:615) 在java.lang.ClassLoader.loadClass(ClassLoader.java:266) 在java.lang.Class.forName0(Native Method) 在java.lang.Class.forName(Class.java:264) 在org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373)……还有 49 个

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.

推荐答案

dataimporthandler 不再包含在 solr.war 中.您应该将 jar apache-solr-dataimporthandler-x.x.x.jar(请将 x.x.x 替换为您当前的版本)到您的类路径.您可以在下载的 solr zip 文件的 dist 文件夹中找到它.

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.

这篇关于在多核 solr 中配置 DIH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆