我的Solr系统有两个内核(Solr版本3.6.1).当我在我们的专用Solr服务器上调用以下命令行来添加然后索引文件时:
java -Durl=http://solrprod:8080/solr/original/update -jar /home/solr/solr3/biomina/solr/post.jar /home/solr/tmp/2008/c2m-dump-01.noDEID_clean.xml
Run Code Online (Sandbox Code Playgroud)
我在/usr/share/tomcat7/logs/solr.2013-12-11.log文件中得到一个异常(等待大约6分钟后):
SEVERE: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/home/solr/solr3/biomina/solr/original/data/index/write.lock
Run Code Online (Sandbox Code Playgroud)
(您可以在此消息的末尾看到它的详细输出).
我试图修改锁定的超时(通过设置writeLockTimeout为300000),但这并没有解决问题.我没有使用任何自定义脚本,只是post.jarSolr 3.1.6附带的脚本来添加和索引.
有关需要更改哪些内容以消除此错误并成功将XML文件添加到Solr并将其编入索引的任何想法?
内容/home/solr/solr3/biomina/solr/solr.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not …Run Code Online (Sandbox Code Playgroud)