数据库自动索引时solr的delta导入URL出错

时间:2014-11-06 08:52:08

标签: database solr indexing solrj dataimporthandler

当我启动solr并在浏览器中打开Delta-import URL后。它对我来说很好。

http://localhost:8983/solr/#/ACE/dataimport//dataimport?command=delta-import&debug=false&optimize=true&indent=true&commit=true&clean=false&wt=json&verbose=false

但是当我通过以下链接中给出的wiki调度程序生成相同的查询时,解释了调度过程。

http://wiki.apache.org/solr/DataImportHandler

我已按照上述链接中给出的所有步骤进行调度,并通过它生成上述增量查询。 但是我在命令提示符下遇到了以下错误:

2161099 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Process started at .............. 06.11
.2014 12:56:31 055
2161102 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Request method                 POST
2161102 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Succesfully connected to server
localhost
2161103 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Using port                     8983
2161104 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Application name
solr
2161104 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> URL params                     dataimpo
rt//dataimport?command=delta-import&debug=false&optimize=true&indent=true&commit
=true&clean=false&wt=json&verbose=false
2161104 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Full URL

http://localhost:8983/solr/#/ACEdataimport//dataimport?command=delta-import&debug=false&optimize=true&indent=true&commit=true&clean=false&wt=json&verbose=false

2161107 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Response message
HTTP method POST is not supported by this URL
2161107 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Response code                  405
2161108 [Timer-0] INFO  org.apache.solr.core.SolrResourceLoader  û JNDI not conf
igured for solr (NoInitialContextEx)
2161108 [Timer-0] INFO  org.apache.solr.core.SolrResourceLoader  û solr home def
aulted to 'solr/' (could not find system property or JNDI)
2161108 [Timer-0] INFO  org.apache.solr.core.SolrResourceLoader  û new SolrResou
rceLoader for deduced Solr Home: 'solr/'
2161118 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.SolrDataImp
ortProperties  û Instance dir = solr/
2161119 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Disconnected from server
localhost
2161120 [Timer-0] INFO  org.apache.solr.handler.dataimport.scheduler.HttpPostSch
eduler  û [#/core_name] <index update process> Process ended at ................ 06.11
.2014 12:56:31 076

我没有得到网址中的实际问题。它在浏览器中打开时工作正常,所以为什么它无法通过调度程序正确调用。

请帮我解决这个问题

提前致谢

1 个答案:

答案 0 :(得分:1)

我猜你已经从Solr Admin Web app复制了URL。请注意,网址http://localhost:8983/solr/#/由管理员网络应用注册。如果您尝试调用API,则可能需要直接调用ACE核心。

尝试http://localhost:8983/solr/ACE/dataimport/dataimport?command=delta-import&debug=false&optimize=true&indent=true&commit=true&clean=false&wt=json&verbose=false