尝试创建ElasticSearch快照时引发repository missing异常?

vi4fp9gy  于 2021-07-13  发布在  ElasticSearch
关注(0)|答案(0)|浏览(393)

我正在尝试使用下面的curl命令创建一个ElasticSearch快照。我得到一个“存储库丢失异常”。

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/"
    }
  }
}

我的ElasticSearch版本是7.x。谢谢你能帮忙谢谢

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题