Hi All,
I am struggling to put data node's data to S3 Bucket and getting empty response from server. can u please suggest what could be the reason ?
--elasticsearch.yml has
path.repo: $s3_Bucket/$s3_Prefix/docroot
-- keystore has
echo "$access_key" | /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin s3.client.default.access_key
echo "$secret_key" | /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin s3.client.default.secret_key
bucket=$(echo s3_B)
referenceStackName=(echo $s3_P)/docroot
access_key="{KEY}"
secret_key="{SECRET_KEY}"
--REQUEST
curl -v -XPUT -u "USERNAME":"PASSWORD" "localhost:9200/_snapshot/s3_backup?pretty" -H 'Content-Type: application/json' -d'
{
"type": "s3",
"settings": {
"bucket": "$bucket",
"base_path": "$referenceStackName",
"proxy.host": "{PROXY_HOST}",
"access_key":"$access_key",
"secret_key":"$secret_key",
"proxy.port": "{PROXY_PORT}",
"compress": "true"
}
}'
--Response
- Trying 127.0.0.1...
- TCP_NODELAY set
- Connected to localhost (127.0.0.1) port 9200 (#0)
- Server auth using Basic with user 'XXXXXXX'
PUT /_snapshot/s3_backup HTTP/1.1
Host: localhost:9200
Authorization: Basic XXXXXXXXXXXX
User-Agent: curl/7.61.1
Accept: /
Content-Type: application/json
Content-Length: 90
- upload completely sent off: 90 out of 90 bytes
- Empty reply from server
- Connection #0 to host localhost left intact
curl: (52) Empty reply from server