# ec2 discovery not working

**URL:** <https://discuss.elastic.co/t/ec2-discovery-not-working/12593>\
**Category:** Elasticsearch\
**Created:** [July 1, 2013, 6:58am UTC](https://discuss.elastic.co/t/ec2-discovery-not-working/12593 "2013-07-01T06:58:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neera\_Vats](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@Neera\_Vats](https://discuss.elastic.co/u/Neera_Vats)\
**Post date:** [July 1, 2013, 6:58am UTC](https://discuss.elastic.co/t/ec2-discovery-not-working/12593/1 "2013-07-01T06:58:30Z")

</div>

Hi All,

I am trying to setup 2 node cluster using ec2 discovery. my  
elasticsearch.yml has the following configurations.

cluster.name: elasticsearch  
node.name: "ES 2"  
discovery.zen.ping.multicast.enabled: false  
discovery.type: ec2  
cloud.aws.access\_key: XXX  
cloud.aws.secret\_key: XXX

network.host: internal-node-ip  
discovery.ec2.host\_type: public\_ip  
discovery.groups: elasticsearchgrp

ec2 discovery is running into the following exception and the nodes are  
unable to discover each other. Are there some simple tests I can run from  
each node to make sure the my configs and network port are setup correctly  
.  
I tried running "telnet 9300", but it fails. I would  
any appreciate any help on this.

[2013-07-01 06:12:34,866][TRACE][discovery.zen.ping.unicast] [ES 1] [1]  
failed to connect to  
[#cloud-IIIII][inet[[ec2-XXXX.compute-1.amazonaws.com/10.XX.XX.XX:9300](http://ec2-XXXX.compute-1.amazonaws.com/10.XX.XX.XX:9300)]]  
org.elasticsearch.transport.ConnectTransportException:  
[][inet[ec2-XX\_XX\_XXX.compute-1.amazonaws.com/XX-XX-XX-XX:9300]]  
connect\_timeout[30s]  
at  
org.elasticsearch.transport.netty.NettyTransport.connectToChannelsLight(NettyTransport.java:644)  
at  
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:606)  
at  
org.elasticsearch.transport.netty.NettyTransport.connectToNodeLight(NettyTransport.java:575)  
at  
org.elasticsearch.transport.TransportService.connectToNodeLight(TransportService.java:131)  
at  
org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing$3.run(UnicastZenPing.java:273)'

Thanks and Regards,  
Neera

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:28am UTC](https://discuss.elastic.co/t/ec2-discovery-not-working/12593/2 "2017-07-06T02:28:50Z")

</div>


