插件安装了;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"
}
],
是还要做什么配置吗
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"
}
],
是还要做什么配置吗
1 个回复
JoyPanda
赞同来自:
官方文档索引:
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