Solr数据导入属性-不存在 [英] Solr Data Import Properties - Doesnt exist

查看:158
本文介绍了Solr数据导入属性-不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Solr中的DIH进行增量导入.当我尝试执行此操作时,会在工作日志中得到此信息:

I am trying to do a delta import via the DIH in Solr. When I tried to do it I get this in my effort log:

INFO: Starting Delta Import
Nov 18, 2012 12:48:46 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/dataimport params={clean=false&command=delta-import} status=0 QTime=1 
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.SimplePropertiesWriter readIndexerProperties
WARNING: Unable to read: dataimport.properties
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder doDelta
INFO: Starting delta collection.
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
INFO: Running ModifiedRowKey() for Entity: 84430688679548
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
INFO: Completed ModifiedRowKey for Entity: 84430688679548 rows obtained : 0
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
INFO: Completed DeletedRowKey for Entity: 84430688679548 rows obtained : 0
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
INFO: Completed parentDeltaQuery for Entity: 84430688679548
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
INFO: Running ModifiedRowKey() for Entity: document
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
INFO: Completed ModifiedRowKey for Entity: document rows obtained : 0
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
INFO: Completed DeletedRowKey for Entity: document rows obtained : 0
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder collectDelta
INFO: Completed parentDeltaQuery for Entity: document
Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.DocBuilder doDelta
INFO: Delta Import completed successfully

它不起作用,但是我认为这与该错误有关:

It doesnt work, but I think it is to do with this error:

WARNING: Unable to read: dataimport.properties

显然,此文件应该在我的solr/conf目录中,但它不在此目录中.是此错误停止了DIH的工作,我如何创建该文件.关于为什么默认情况下不创建它的任何线索也很有趣.

Apparently this file should be in my solr/conf directory but it isnt in this directory. Is this error stopping the DIH working and how do I go about creating this file. Any clues about why it isnt created by default would be interesting too.

谢谢!

推荐答案

我遇到了这个问题,解决方法是使conf目录可写.或者只是使dataimport.properties对所有用户而言都是可写的.

I came across this issue and the fix is to make the conf directory writable. Or just make the dataimport.properties writable for all.

这篇关于Solr数据导入属性-不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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