【问题标题】:Restore for SOLR standalone server is failing with IndexNotFoundExceptionSOLR 独立服务器的还原失败并出现 IndexNotFoundException
【发布时间】:2017-05-03 06:19:48
【问题描述】:

我在独立服务器上运行 SOLR,我正在测试备份和恢复以获取我在命令下使用的备份

curl 'http://localhost:8983/solr/coreName/replication?command=backup'

以上命令可以成功备份。但是我使用下面的命令来恢复以前的备份。

curl 'http://localhost:8983/solr/coreName/replication?command=restore'

其中使用了最新的可用备份并成功还原。但我想在命令中传递备份名称,所以我尝试了以下命令

curl 'http://localhost:8983/solr/coreName/replication?command=restore&name=snapshot.2017xxxxxx'` 

当我运行此备份时,备份不顺利,检查恢复状态时出现如下错误

<str name="status">failed</str><str name="exception">org.apache.lucene.index.IndexNotFoundException: no segments* file found in MMapDirectory@/database/solr/data/UMB/data/snapshot.snapshot.20170503060914378 lockFactory=org.apache.lucene.store.NativeFSLockFactory@9ee14c9: files: []</str></lst>

谁能告诉我出了什么问题。 SOLR 托管在 Cent OS 上。

谢谢

【问题讨论】:

    标签: solr solr4 sunspot-solr


    【解决方案1】:

    我发现了导致问题的原因。对于托管在 linux 上的 SOLR,当我们传递备份名称而不是像 snapshot.2017xxxxx 这样的完整名称时,我们只需要排除快照并仅传递时间戳详细信息。该命令将如下所示

    curl 'http://localhost:8983/solr/UMB/replication?command=restore&name=2017xxxxxxxxx'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-20
      • 1970-01-01
      • 1970-01-01
      • 2016-09-06
      • 1970-01-01
      相关资源
      最近更新 更多