我使用curl 从 1 个集群创建了一个快照。当我尝试在另一个集群上使用curl 恢复快照时,第二个集群无法分配所有索引。集群 1 有 2 个节点,集群 2 有 1 个节点。我在快照文件夹中有一个文件“snap-hb19TYAWQ1SFZvTzd-2AkA.dat”。使用 cmd“_cluster/allocation/explain”我可以看到一个问题。怎么解决?
nested: IndexShardRestoreFailedException[failed to restore snapshot [05_01_24/hb19TYAWQ1SFZvTzd-2AkA]];
nested: SnapshotMissingException[[my_repo:05_01_24/hb19TYAWQ1SFZvTzd-2AkA] is missing];
nested: NoSuchFileException[blob object [snap-hb19TYAWQ1SFZvTzd-2AkA.dat] not found];
- manually close or delete the index [tasklist-task-8.2.3_2023-11-30] in order to retry to restore the snapshot again or use the reroute API to force the allocation of an empty primary shard
read-only
。您要恢复快照的集群。# s3 的示例
PUT _cluster/settings
{
"transient": {
"logger.org.elasticsearch.snapshots" : "DEBUG",
"logger.org.elasticsearch.repositories.s3": "DEBUG",
"logger.com.amazonaws" : "DEBUG"
}
}