It looks like you are using something other than S3 which expects the (now-deprecated) path-style access pattern. If so, you should set path_style_access to true in your client settings.
I suppose this settings is not applicable for ES version 5.6.3.
I am getting below error after setting it in elasticsearch.yml file .
java.lang.IllegalArgumentException: unknown setting [s3.client.default.path_style_access] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
Ah, ok, that's quite an old version that's well past the end of its supported life. I suggest upgrading. I don't know off the top of my head whether you can force path-style access in such an old version.
On reflection, a better fix might be to adjust your ECS storage device to support vhost-style access instead of path-style access. I've no idea if this is even possible, you will need to work with their support to figure that out.
An Elasticsearch upgrade should resolve this error, if you set path_style_access to true. Some other adjustments may also be required, check the docs for details. To be clear we do not run any tests against ECS storage devices so there's actually no guarantee it'll work at all. It all depends how faithfully "S3-compatible" your storage device really is.
Yes, that's correct, this is the so-called "vhost-style access" and is how the real S3 works today. This is explained in the link I shared above which also tells you that path-style access is deprecated. This means Amazon may remove support for it from a future SDK version, which would cause your repository to stop working. Unfortunately we don't have a lot of control over when that might happen.
java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
As earlier you have mentioned its using "vhost-style access" and that the method it should be using it.
I am trying to understand what it the reason its not able to resolve as only "ecs01s3.mywork.com" being our endpoint is resolvable from our ES Node successfully. But when bucket name is attached to it for processing by ES , it fails.
Do I need to make this es-cmn-bkp-bkt.ecs01s3.mywork.com entry in /etc/hosts or some settings in elasticsearch.yml file.
I don't think we can offer much advice on how to configure your storage device to behave like S3 here. A brief google for "ECS S3 virtual-host access" throws up some links that may be helpful. If that doesn't help, I think you will need to ask for support from the supplier of your storage device.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.