solr - 从 Apache Solr 4.7.2 直接升级到 Apache Solr 7.6 的问题?
问题描述
我有一个基于 Apache Solr 的项目,我想将版本从 4.7.2 升级到 7.6,我参考文档https://github.com/cominvent/solr-tools/tree/master/upgradeindex升级索引从 4.7.2 到 5 并得到以下输出。
我不知道如何处理输出。您能否请有人向我建议一个指导方针,以进一步将整个 Solr 索引升级到更高版本。
./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
解决方案
推荐阅读
- c++ - 输入面组件包含退化三角形
- javascript - 如何在 if 语句中包装 useState 变量,但在 if reactjs 之外仍然可以使用它的值
- django - 使用 S3 更新 FilesField() django
- three.js - three.js 3d 模态模糊
- c++ - 链接器不喜欢我的函数定义(LNK2019 Unresolved External Symbol)
- typeclass - Ord:未找到 Data.Eq.Eq(扩展 a0)的类型类实例。PureScript by Example 一书,第 6 章
- python - 在 Python 中绘制测试值和预测值的折线图
- ruby-on-rails - 缺少用于解密文件的加密密钥:Rails 开发环境
- c - 如何获得单词中出现频率最高的字母?
- r - 使用 R 和 jsonlite 遍历 JSON 元素以修复缺失值