我一直在尝试以下方法来备份&将ElasticSearch集群从一台服务器还原到另一台服务器,但收效甚微。到目前为止,我还没有使用备份过程,我想将整个ElasticSearch集群从一个小的2GB集群移动到15GB集群。我使用了以下方法。
我用了es-散装出口的例子
我相信我遗漏了一些东西,因为执行给了我以下错误。我需要创建/_snapshot/my_backup
吗?如果是的话,怎么做?
{"error":{"root_cause":[
{"type":"repository_exception",
"reason":"[my_backup] location [/home/shawn/backup] doesn't match any of the locations specified by path.repo because this setting is empty"
}],
"type":"repository_exception","reason":"[my_backup] failed to create repository",
"caused_by":
{"type":"creation_exception","reason":"Guice creation errors:\n\n1) Error injecting constructor, RepositoryException[[my_backup] location [/home/shawn/backup] doesn't match any of the locations specified by path.repo because this setting is empty]\n at org.elasticsearch.repositories.fs.FsRepository.<init>(Unknown Source)\n while locating org.elasticsearch.repositories.fs.FsRepository\n while locating org.elasticsearch.repositories.Repository\n\n1 error","caused_by":{"type":"repository_exception","reason":"[my_backup] location [/home/shawn/backup] doesn't match any of the locations specified by path.repo because this setting is empty"}}},"status":500}
发布于 2017-09-26 17:49:03
创建快照/my_backup很好,只需要向/etc/elasticsearch/elasticsearch.yml添加行
path.repo: ["/home/shawn/backup"]
这是快照的实际位置。然后重新启动Elasticsearch。
https://stackoverflow.com/questions/42130222
复制相似问题