java - Elasticsearch snapshot backup to S3(aws)

 mobiledu2502875007 发布于 2022-10-29 17:54

curl -XPUT 'http://localhost:9200/_snapshot/es_s3_repository' -d '{

 "type": "s3",
 "settings": {
     "bucket": "es_bucket",
     "region": "cn-north-1",
     "access_key":"xxxx" ,
     "secret_key":"xxxxxxxxxx"
 }

}

{"error":"RepositoryException[[es_s3_repository] failed to create repository]; nested: CreationException[Guice creation errors:nn1) Error injecting constructor, org.elasticsearch.ElasticsearchIllegalArgumentException: No automatic endpoint could be derived from region [s3-cn-north-1.amazonaws.com]n at org.elasticsearch.repositories.s3.S3Repository.(Unknown Source)n while locating org.elasticsearch.repositories.s3.S3Repositoryn while locating org.elasticsearch.repositories.Repositorynn1 error]; nested: ElasticsearchIllegalArgumentException[No automatic endpoint could be derived from region [cn-north-1]]; ","status":500}

创建仓库一直失败?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有