Elasticsearch repository-s3 plugin in China

I want to use repository-s3 plugin to make snapshot to China s3,
1、bin/elasticsearch-plugin install repository-s3
2、bin/elasticsearch-keystore add s3.client.default.access_key
bin/elasticsearch-keystore add s3.client.default.secret_key
3、curl -XPUT "http://10.11.3.30:9200/_snapshot/s3-backup" -H 'Content-Type: application/json' -d '{"type":"s3", "settings": {"bucket":"es-hot-cn","max_retries": "3","readonly": "false","compress": "true","endpoint": "s3.cn-northwest-1.amazonaws.com.cn","protocol": "https" }}'

I got this error:
{"error":{"root_cause":[{"type":"sdk_client_exception","reason":"sdk_client_exception: Unable to execute HTTP request: Connect to es-hot-cn.s3.amazonaws.com:443 [es-hot-cn.s3.amazonaws.com/52.216.16.112] failed: connect timed out"}],"type":"repository_exception","reason":"[s3-hot-backup] failed to create repository","caused_by":{"type":"sdk_client_exception","reason":"sdk_client_exception: Unable to execute HTTP request: Connect to es-hot-cn.s3.amazonaws.com:443 [es-hot-cn.s3.amazonaws.com/52.216.16.112] failed: connect timed out","caused_by":{"type":"i_o_exception","reason":"Connect to es-hot-cn.s3.amazonaws.com:443 [es-hot-cn.s3.amazonaws.com/52.216.16.112] failed: connect timed out","caused_by":{"type":"i_o_exception","reason":"connect timed out"}}}},"status":500}

sometime I got this error:

{"error":{"root_cause":[{"type":"amazon_s3_exception","reason":"amazon_s3_exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 8FD08A80F28FA5A7; S3 Extended Request ID: WFRLdG0vm8pYqgVnVjE9GXa1g5GMWhCyBcc5SqXk9Oext2+SxkI46ZJJWco1fm4nC0Xm4nytvVo=)"}],"type":"blob_store_exception","reason":"Failed to check if blob [master.dat-temp] exists","caused_by":{"type":"amazon_s3_exception","reason":"amazon_s3_exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 8FD08A80F28FA5A7; S3 Extended Request ID: WFRLdG0vm8pYqgVnVjE9GXa1g5GMWhCyBcc5SqXk9Oext2+SxkI46ZJJWco1fm4nC0Xm4nytvVo=)"}},"status":500}

I think it does not connect to the China(Ningxia) s3...How can I change it ?
someone can help me ? thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.