首页 > Elasticsearch snapshot backup to S3(aws)

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}

创建仓库一直失败?

【热门文章】
【热门文章】