简体   繁体   English

使用solr并集成nutch和solr时发生错误(HTTP错误500)

[英]error when using solr and Integrating nutch and solr(HTTP ERROR 500)

I have Linux Ubuntu 12.04 installed and I'm trying to install nutch 1.5.1 and solr 3.6.1 and integrate theme together to crawl seed urls. 我已经安装了Linux Ubuntu 12.04,并且正在尝试安装nutt 1.5.1和solr 3.6.1并将主题集成在一起以搜寻种子url。
I'm using This tutorial to get this work. 我正在使用教程来完成这项工作。
I followed the steps before 3.2 and skipped to step 4 and I can access to 我按照3.2之前的步骤进行操作,然后跳到了步骤4 ,可以访问
localhost:8983/solr/admin/ 本地主机:8983 / solr / admin /

without error. 没有错误。
but when going to step 6 and copying schema.xml from conf folder of nutch to example/solr/conf folder of solr solr/admin page occurs a java error,below: 但是在执行步骤6并将schema.xml从nutch的conf文件夹复制到solr solr / admin页面的example / solr / conf文件夹时,发生Java错误,如下所示:

页面的第一部分第二部分

How can I handle that? 我该如何处理?

one more thing to ask.... I have another tutorial for this that looks good but in first step it mentions that add some code to nutch-site.xml file in /conf/ and /runtime/local/conf/ folder 还有一两件事要问....我有另一个教程对于这一点,看起来不错,但在第一步就提到,在/ conf目录添加一些代码的nutch-site.xml文件/和/运行/本地/ conf目录/文件夹

but in nutch folder there is no runtime folder.In step 4 this folder mentioned too. 但是在nutch文件夹中没有运行时文件夹。在第4步中,也提到了该文件夹。 any suggestion? 有什么建议吗?

thanks in advance 提前致谢

This is just bit of red herring. 这只是一点红鲱鱼。 The line that specifies version number something like: 指定版本号的行如下所示:

<schema name="nutch" version="1.5.1">

is causing it because the value of version is being parsed as float. 造成这种情况的原因是version的值被解析为float。 remove the extra dot. 删除多余的点。 Change it to 1.5 or 1.51 to make it valid float and restart your solr instance. 将其更改为1.5或1.51以使其有效浮动并重新启动solr实例。 The exception should disappear. 异常应该消失。

Check,please, whether are Nutch 1.5.1 and Solr 3.6.1 compatible (are they having same versions of lucene-core and solr-solrj jars). 请检查Nutch 1.5.1和Solr 3.6.1是否兼容(它们是否具有相同版本的lucene-core和solr-solrj jars)。 I got some problems with incompatible versions, but not with 1.5/3.6 . 我使用不兼容的版本遇到了一些问题,但是使用1.5 / 3.6却没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM