【问题标题】:elasticsearch azure repository verification exceptionelasticsearch 天蓝色存储库验证异常
【发布时间】:2020-07-10 21:50:22
【问题描述】:

我已经安装了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
}

【问题讨论】:

    标签: azure elasticsearch elasticsearch-plugin


    【解决方案1】:

    在拍摄快照之前,您需要向 Elasticsearch 注册 Azure 存储库。

    在 Azure 中创建一个存储帐户,并在该帐户下创建一个容器 BLOB,然后将其注册到存储库 es_snapshot,如下所示:

    PUT _snapshot/es_snapshot
    {
        "type": "azure",
        "settings": {
          "container": "es_snapshot",
          "compress" : true
        }
    }
    

    一旦注册了存储库es_snapshot,您就可以拍摄快照

    【讨论】:

      【解决方案2】:

      “指定的容器不存在”

      错误很明显 - 创建一个名为“es_snapshot”的容器并尝试

      【讨论】:

        猜你喜欢
        • 2022-01-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-06-14
        • 2018-12-27
        • 2012-11-17
        • 2014-08-21
        • 1970-01-01
        相关资源
        最近更新 更多