我正在尝试使用以下 curl 命令创建弹性搜索快照。我收到了“repository_missing_exception”。
curl -v -X PUT "localhost:9200/_snapshot/mep_backup/snapshot_1?wait_for_completion=true&pretty"
* About to connect() to localhost port 9200 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 9200 (#0)
> PUT /_snapshot/mep_backup/snapshot_1?wait_for_completion=true&pretty HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:9200
> Accept: */*
>
< HTTP/1.1 404 Not Found
< content-type: application/json; charset=UTF-8
< content-length: 258
<
{
"error" : {
"root_cause" : [
{
"type" : "repository_missing_exception",
"reason" : "[mep_backup] missing"
}
],
"type" : "repository_missing_exception",
"reason" : "[mep_backup] missing"
},
"status" : 404
}
* Connection #0 to host localhost left intact
但是,当我检查存储库是否存在时,它已经存在。
curl -X GET "localhost:9200/_snapshot/*?pretty"
{
"mep_backup" : {
"type" : "fs",
"settings" : {
"location" : "/apps/omn/elastic/repo/"
}
}
}
我的弹性搜索版本是 7.x。 如果你能帮忙,不胜感激 谢谢