我正在尝试将Solr索引数据从一个服务器迁移到另一个服务器。
我执行了以下步骤:
在还原复制时,我得到了如下错误:
{
"responseHeader":{
"status":0,
"QTime":0},
"restorestatus":{
"snapshotName":"snapshot.redcurrant_2020_data",
"status":"failed",
"exception":"org.apache.solr.common.SolrException: Exception while restoring the backup index"},
"status":"ERROR",
"message":"Unable to read restorestatus",
"exception":"java.util.concurrent.ExecutionException:java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Exception while restoring the backup index"}创建复制备份时使用的API:
http://localhost:8983/solr/test_2020_replica_1/replication?command=backup&name=test_2020_data&location=/bk/test2020backup还原复制备份时使用的API:
http://localhost:8983/solr/test_2020_replica_n59/replication?command=restore&name=test_2020_data&location=/bk/test2020backup注意:在另一台服务器中还原集合时,核心名称是不同的。
发布于 2021-05-10 18:15:57
我一直在尝试相同的事情,并收到相同的错误,除非我使版本匹配。似乎通常不支持在不同版本的solr实例之间复制索引。您可能需要从源或使用类似于SolrEntityProcessor的内容重新索引新实例中的数据。
https://stackoverflow.com/questions/63559301
复制相似问题