如何在SOLR DIH HTTP API中强制中止数据导入

时间:2014-06-30 08:57:25

标签: solr indexing solrj solrnet

按照步骤生成错误:

1. Configure the large amount of data (around 4 GB or more than 50 millions of records)
2. Give proper data-config.xml file for indexing the data from remote database server.
3. During indexing the data into solr from SQL SERVER 2010, at the half way unplug the     
   network cable and see the status in solr. e.g.
   localhost:8083/solr/core1/dataimport?command=status
   or
   localhost:8083/solr/core1/dataimport
4. Pass few seconds then again plug back the cable.
5. You can clearly see that there is just only "Time Elapsed" parameter increase.      
   "Total Rows Fetched" & "Total Documents Processed" remains same for infinite time.
6. You can regenerate this for small data also.
7. Work around is you need to restart the solr. (But this is not good solution) 

注意:这是非常重要的问题因为,很多组织没有使用这个有价值的       产品只是因为这个数据库无限连接问题。解决方案可以是:       强制中止数据索引或强制提供机制       中止索引。希望你们知道中止命令也不是       工作

1 个答案:

答案 0 :(得分:1)

来自Solr文档(http://wiki.apache.org/solr/DataImportHandler

  

点击网址中止正在进行的操作   http://:/ solr / dataimport?command = abort。

我刚检查了DIH的源代码并实现了中止命令