我刚打酱油去了,不好意思

[求救]snapshot 备份到AWS S3 创建存储库一直失败

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

插件安装了;S3账号与密码配置了;AWS上桶也建了;桶的安全策略也按照官方的添加了,在创建存储库时就一直失败。

curl -XPUT 'xxxxx:9200/_snapshot/my_s3_repository?pretty' -H 'Content-Type: application/json' -d'
{
"type": "s3",
"settings": {
"bucket": "my-bucket-name",
"region": "my-region",
"server_side_encryption": true
}
}'

"error" : {
"root_cause" : [
{
"type" : "repository_verification_exception",
"reason" : "[my_s3_repository] path is not accessible on master node"
}
],

是还要做什么配置吗
已邀请:

JoyPanda

赞同来自:

master节点没有对应bucket目录的权限   path is not accessible on master node

官方文档索引:
Snapshot/Restore Repository Plugins » S3 Repository Plugin » Client Settings
bin/elasticsearch-keystore add s3.client.default.access_key 
bin/elasticsearch-keystore add s3.client.default.secret_key
配置了可以用该命令查询
bin/elasticsearch-keystore list

微信图片_20201230202336.png

 

要回复问题请先登录注册