Обновление индекса Apache Solr с 4,7 до 5,2 - PullRequest
0 голосов
/ 22 марта 2019

Мы ищем обновление с Apache Solr 4.7 до ApacheSolr 5.2. обновите сервер и запустите script , чтобы обновить индекс данных. это показывает ниже ошибки.

./upgradeindex.sh -t 5 /home/solr
Target version is 5
Downloading http://central.maven.org/maven2/org/apache/lucene/lucene-backward-codecs/4.10.4/lucene-backward-codecs-4.10.4.jar
curl: (7) couldn't connect to host
Downloading http://central.maven.org/maven2/org/apache/lucene/lucene-backward-codecs/5.5.4/lucene-backward-codecs-5.5.4.jar
curl: (7) couldn't connect to host
Downloading http://central.maven.org/maven2/org/apache/lucene/lucene-backward-codecs/6.6.0/lucene-backward-codecs-6.6.0.jar
######################################################################## 100.0%
Downloading http://central.maven.org/maven2/org/apache/lucene/lucene-core/4.10.4/lucene-core-4.10.4.jar
######################################################################## 100.0%
Downloading http://central.maven.org/maven2/org/apache/lucene/lucene-core/5.5.4/lucene-core-5.5.4.jar
######################################################################## 100.0%
Downloading http://central.maven.org/maven2/org/apache/lucene/lucene-core/6.6.0/lucene-core-6.6.0.jar
######################################################################## 100.0%
Core collection1 - /home/solr/collection1
Exception in thread "main" org.apache.lucene.store.LockObtainFailedException: Lock held by another program: /home/solr/collection1/data/index/write.lock
    at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:118)
    at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)
    at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45)
    at org.apache.lucene.index.CheckIndex.<init>(CheckIndex.java:401)
    at org.apache.lucene.index.CheckIndex.doMain(CheckIndex.java:2671)
    at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2599)
Exception in thread "main" org.apache.lucene.store.LockObtainFailedException: Lock held by another program: /home/solr/collection1/data/index/write.lock
    at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:118)
    at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)
    at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45)
    at org.apache.lucene.index.CheckIndex.<init>(CheckIndex.java:362)
    at org.apache.lucene.index.CheckIndex.doMain(CheckIndex.java:2307)
    at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2235)
- Backing up index to /home/solr/collection1/data/index_backup_4.7.0.tgz
- Index version is 4.7.0, checking integrity
Exception in thread "main" org.apache.lucene.store.LockObtainFailedException: Lock held by another program: /home/solr/collection1/data/index/write.lock
    at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:118)
    at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)
    at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45)
    at org.apache.lucene.index.CheckIndex.<init>(CheckIndex.java:362)
    at org.apache.lucene.index.CheckIndex.doMain(CheckIndex.java:2307)
    at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2235)
- Upgrading 4.x -> 5.x
Exception in thread "main" org.apache.lucene.store.LockObtainFailedException: Lock held by another program: /home/solr/collection1/data/index/write.lock
    at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:118)
    at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)
    at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45)
    at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:776)
    at org.apache.lucene.index.IndexUpgrader.upgrade(IndexUpgrader.java:167)
    at org.apache.lucene.index.IndexUpgrader.main(IndexUpgrader.java:78)
DONE
...