Elasticsearch snapshot backup to S3(aws)
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.<init>(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}
创建仓库一直失败?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论