elasticsearch - 尝试创建弹性搜索快照时抛出存储库丢失异常。?
问题描述
我正在尝试使用以下 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。如果你能帮忙谢谢谢谢
解决方案
推荐阅读
- github - 发布到 GitHub 页面后网站无法正常显示
- python - 当列表长度改变Python时执行代码行
- google-apps-script - 每次单元格发生变化时运行脚本
- vue.js - 如何在 Vue 3 的 Composition API 中引用 Setup 函数中的图像?
- node.js - Stripe - 如何同时列出活动订阅和试用订阅
- google-chrome-devtools - Chrome DevTools:Network.loadingFinished 和 Network.dataReceived 事件有什么区别?
- .net - 序列不包含任何元素。下面是我的代码片段。我不知道怎么了
- agda - 为什么 Agda 拒绝 Set₁ → Set₁?
- html - Jstree 2级以上的树
- glsl - 如何在 glsl 中索引描述符数组?