Zen errror in ec2

Hi,
I am trying to set up ES on EC2. I have set up discovery mode as ec2 in the
configuration file:

discovery:
type: ec2

ES seems to be responding fine. However, when I check the console output, I
see success message from ec2 discovery and then a failure message from zen:

[TRACE][discovery.zen.ping.unicast] [Amanda Sefton] [1]
failed to connect to [#domain][inet[/XX.XXX.XXX.XXX:9300]]
org.elasticsearch.transport.ConnectTransportException:
[][inet[/XX.XXX.XXX.XXX:9300]] connect_timeout[30s]
at
org.elasticsearch.transport.netty.NettyTransport.connectToChannelsLight(NettyTransport.java:535)
at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:501)
at
org.elasticsearch.transport.netty.NettyTransport.connectToNodeLight(NettyTransport.java:480)
at
org.elasticsearch.transport.TransportService.connectToNodeLight(TransportService.java:128)
at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing
$3.run(UnicastZenPing.java:273)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:384)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:354)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:276)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)

Please let me know what I am doing wrong.

Thanks!!

There might be connection failure from one node to the other, if the other
node has not started yet. If the other node that fails to connect to is up,
check things like security groups and the like, make sure they can connect
to each other (the host and port 9300).

On Thu, Nov 17, 2011 at 4:40 PM, achaayan felixmd@gmail.com wrote:

Hi,
I am trying to set up ES on EC2. I have set up discovery mode as ec2 in
the configuration file:

discovery:
type: ec2

ES seems to be responding fine. However, when I check the console output,
I see success message from ec2 discovery and then a failure message from
zen:

[TRACE][discovery.zen.ping.unicast] [Amanda Sefton] [1]
failed to connect to [#domain][inet[/XX.XXX.XXX.XXX:9300]]
org.elasticsearch.transport.ConnectTransportException:
[inet[/XX.XXX.XXX.XXX:9300]] connect_timeout[30s]
at
org.elasticsearch.transport.netty.NettyTransport.connectToChannelsLight(NettyTransport.java:535)
at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:501)
at
org.elasticsearch.transport.netty.NettyTransport.connectToNodeLight(NettyTransport.java:480)
at
org.elasticsearch.transport.TransportService.connectToNodeLight(TransportService.java:128)
at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing
$3.run(UnicastZenPing.java:273)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:384)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:354)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:276)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)


Please let me know what I am doing wrong.

Thanks!!