Closed
Description
Hi,
I am using the latest stable version of minio with elasticsearch 6.1.2. I have created a bucket named: elasticsearch , to which I can upload files using the browser interface.
I want to use the same bucket to stor elasticsearch snapshots. Elastic repo config:
PUT _snapshot/backups
{
"type": "s3",
"settings": {
"bucket": "elasticsearch",
"endpoint": "minio.mydomain:9000",
"protocol": "http"
}
}
Error:
{
"error": {
"root_cause": [
{
"type": "sdk_client_exception",
"reason": "sdk_client_exception: Unable to execute HTTP request: elasticsearch.minio.mydomain:9000"
}
],
"type": "repository_exception",
"reason": "[backups] failed to create repository",
"caused_by": {
"type": "sdk_client_exception",
"reason": "sdk_client_exception: Unable to execute HTTP request: elasticsearch.minio.mydomain:9000",
"caused_by": {
"type": "i_o_exception",
"reason": "elasticsearch.minio.mydomain:9000"
}
}
},
"status": 500
}
Does it related to the fact that elasticsearch s3 plugin expects s3 kind of url:
elasticsearch.minio.mydomain:9000
while the url in minio is:
minio.mydomain:9000/minio/elasticsearch
thanks