Apache Solr index upgrade from 4.7 to 5.2

痞子三分冷 提交于 2019-12-20 06:19:49

问题


We are looking to upgrade from Apache Solr 4.7 to ApacheSolr 5.2. upgraded server and run script to upgrade the data index. it is showing below errors.

./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

来源:https://stackoverflow.com/questions/55300930/apache-solr-index-upgrade-from-4-7-to-5-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!