Q:非洲食人族的酋长吃什么?

求救 ES snapshot 备份到AWS S3,创建存储库失败

Elasticsearch | 作者 hide | 发布于2020年09月21日 | 阅读数:2535

curl -XPUT 'xxxxx:9200/_snapshot/my_s3_repository?pretty' -H 'Content-Type: application/json' -d'
 {
  "type": "s3",
   "settings": {
     "bucket": "xxxxxxxxxx",
     "region": "xxxxxxxxxxxx",
     "server_side_encryption": true
   }
 }'
 
返回:
"error" : {
    "root_cause" : [
      {
        "type" : "repository_verification_exception",
        "reason" : "[my_s3_repository] path  is not accessible on master node"
      }
    ],
 
已在AWS上创建了存储桶,并添加了官方推荐的策略,一直失败,是哪里错了吗?
已邀请:

FFFrp

赞同来自:

  所有节点都安装重启了吗

xuliang482

赞同来自:

建议,从aws 策略入手,权限问题。

laohan - 会的越多,不会的越多

赞同来自:

首先保证在配置文件中将AK/SK配置进去了,如果你要连接的是自己的S3存储的话记得修改endpoint,这是我的配置。

2.jpg.png

在发送请求的时候,需要指定桶名称

3.jpg.png

 

要回复问题请先登录注册