Compatibility Issues with Elasticsearch 2.3.5 and Cloud AWS plugin

Trying to install ELK stack on AWS EC2 instance. Latest Elasticsearch (2.3.5) and Cloud-AWS plugin seem to have some problems. I got errors while running sudo bin/plugin install cloud-aws and service elasticsearch start. The error for the second command is below

Exception in thread "main" java.lang.IllegalArg umentException: No automatic endpoint could be derived from region [ap-south-1]
at org.elasticsearch.cloud.aws.AwsEc2ServiceImpl.client(AwsEc2ServiceImp l.java:198)
at org.elasticsearch.discovery.ec2.AwsEc2UnicastHostsProvider.(Aws Ec2UnicastHostsProvider.java:75)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at <<>>
at org.elasticsearch.node.Node.(Node.java:213)
at org.elasticsearch.node.Node.(Node.java:140)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)

Also chrome browser does not display :9200

Any help is much appreciated.

Johan A

Hi @JohanAgonda,

The Cloud-AWS plugin could not derive the endpoint automatically, so you need to specify it explicitly in elasticsearch.yml (see also docs):

cloud.aws.ec2.endpoint: ec2.ap-south-1.amazonaws.com

Elasticsearch 5 will provide support for automatically deriving the endpoint for this region.

Daniel

1 Like

Yeah. That's bad I didn't backport it in 2.4 branch BTW.