我已安装repository-azure
并使用以下设置配置了elasticsearch
:
path.data: /datadrive/elasticsearch/data
path.logs: /datadrive/elasticsearch/log
cloud:
azure:
storage:
my_account:
account: teststorage
key: NtZQddasdasdasdsadsadfdsdsfsafsadasdyyP==
当我尝试拍摄快照时,出现错误。
请求:
PUT _snapshot/es_snapshot
{
"type": "azure"
}
响应:
{
"error": {
"root_cause": [
{
"type": "repository_verification_exception",
"reason": "[es_snapshot] path is not accessible on master node"
}
],
"type": "repository_verification_exception",
"reason": "[es_snapshot] path is not accessible on master node",
"caused_by": {
"type": "i_o_exception",
"reason": "Can not write blob master.dat",
"caused_by": {
"type": "storage_exception",
"reason": "The specified container does not exist."
}
}
},
"status": 500
}
答案 0 :(得分:0)
拍摄快照之前,您需要向Elasticsearch 注册。
在Azure中创建一个存储帐户,然后在其下创建一个Container BLOB,然后将其注册到存储库es_snapshot
,如下所示:
PUT _snapshot/es_snapshot
{
"type": "azure",
"settings": {
"container": "es_snapshot",
"compress" : true
}
}
注册存储库es_snapshot
之后,您便可以拍摄快照
答案 1 :(得分:-3)
“指定的容器不存在”
错误已清除-创建名称为“ es_snapshot”的容器,然后尝试