Bonjour,
je vous contacte car j'essaie désespérément de créer un cluster avec deux
nodes depuis hier, et je me retrouve toujours face à la même erreur:
Connection refused
J'ai donc deux nodes, que l'on nommera NODE1 et NODE2, avec respectivement
IP1 et IP2
Hello,
I'm contating you regarding a cluster i'm trying to create woth two nodes
inside. And i'm facinfg again and again the same error: connection refused
I have two nodes, that I'll name NODE1 and NODE2 for this email, with
associated IP1 and IP2
here's the conf of NODE1:
cluster:
name: _cluster
network:
host: IP1
path:
logs: /home/logs/elasticsearch
data: /home/elasticsearch
discovery:
zen:
ping:
multicast:
enabled: false
unicast:
hosts: ["IP2"]
And here's the conf of node2:
cluster:
name: _1001
network:
host: IP2
path:
logs: /home/logs/elasticsearch
data: /home/elasticsearch
I've activated the trace DEBUG on the discovery, here's what I get in the
logs (I replaced the correct IPs by IP1 and IP2):
[2012-06-07 10:28:54,230][TRACE][discovery.zen.ping.unicast] [Jigsaw] [9]
connecting (light) to [#zen_unicast_1#][inet[/IP2:9300]]
[2012-06-07 10:28:54,230][TRACE][discovery.zen.ping.unicast] [Jigsaw] [9]
connected to [#zen_unicast_1#][inet[/IP2:9300]]
[2012-06-07 10:28:54,231][TRACE][discovery.zen.ping.unicast] [Jigsaw] [9]
sending to [#zen_unicast_1#][inet[/IP2:9300]]
[2012-06-07 10:28:54,232][TRACE][discovery.zen.ping.unicast] [Jigsaw] [9]
received response from [#zen_unicast_1#][inet[/IP2:9300]]:
[ping_response{target [[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]],
master [null], cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Ectokid][QUI40ERbQEGaxlmphN8sdA][inet[/IP2:9300]]], master
[[Ectokid][QUI40ERbQEGaxlmphN8sdA][inet[/IP2:9300]]], cluster_name[_1001]}]
[2012-06-07 10:28:55,730][TRACE][discovery.zen.ping.unicast] [Jigsaw] [9]
sending to [#zen_unicast_1#][inet[/IP2:9300]]
[2012-06-07 10:28:55,732][TRACE][discovery.zen.ping.unicast] [Jigsaw] [9]
received response from [#zen_unicast_1#][inet[/IP2:9300]]:
[ping_response{target [[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]],
master [null], cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Ectokid][QUI40ERbQEGaxlmphN8sdA][inet[/IP2:9300]]], master
[[Ectokid][QUI40ERbQEGaxlmphN8sdA][inet[/IP2:9300]]], cluster_name[_1001]}]
[2012-06-07 10:28:57,231][TRACE][discovery.zen.ping.unicast] [Jigsaw] [9]
sending to [#zen_unicast_1#][inet[/IP2:9300]]
[2012-06-07 10:28:57,232][TRACE][discovery.zen.ping.unicast] [Jigsaw] [9]
received response from [#zen_unicast_1#][inet[/IP2:9300]]:
[ping_response{target [[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]],
master [null], cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Jigsaw][42HKs-CeR5GVoS981PWttA][inet[/IP1:9300]]], master [null],
cluster_name[_1001]}, ping_response{target
[[Ectokid][QUI40ERbQEGaxlmphN8sdA][inet[/IP2:9300]]], master
[[Ectokid][QUI40ERbQEGaxlmphN8sdA][inet[/IP2:9300]]], cluster_name[_1001]}]
[2012-06-07 10:28:57,232][TRACE][discovery.zen.ping.unicast] [Jigsaw] [9]
disconnecting from [#zen_unicast_1#][inet[/IP2:9300]]
[2012-06-07 10:28:57,232][DEBUG][discovery.zen ] [Jigsaw] ping
responses:
--> target [[Ectokid][QUI40ERbQEGaxlmphN8sdA][inet[/IP2:9300]]], master
[[Ectokid][QUI40ERbQEGaxlmphN8sdA][inet[/IP2:9300]]]
[2012-06-07 10:28:57,239][INFO ][discovery.zen ] [Jigsaw] failed
to send join request to master
[[Ectokid][QUI40ERbQEGaxlmphN8sdA][inet[/IP2:9300]]], reason
[org.elasticsearch.transport.RemoteTransportException:
[Ectokid][inet[/IP2:9300]][discovery/zen/join];
org.elasticsearch.transport.ConnectTransportException:
[Jigsaw][inet[/IP1:9300]] connect_timeout[30s]; java.net.ConnectException:
Connection refused]
[2012-06-07 10:28:57,240][TRACE][discovery.zen ] [Jigsaw]
detailed failed reason
org.elasticsearch.transport.RemoteTransportException:
[Ectokid][inet[/IP2:9300]][discovery/zen/join]
Caused by: org.elasticsearch.transport.ConnectTransportException:
[Jigsaw][inet[/IP1:9300]] connect_timeout[30s]
at
org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:569)
at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:511)
at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:489)
at
org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:128)
at
org.elasticsearch.discovery.zen.ZenDiscovery.handleJoinRequest(ZenDiscovery.java:533)
at
org.elasticsearch.discovery.zen.ZenDiscovery.access$1500(ZenDiscovery.java:69)
at
org.elasticsearch.discovery.zen.ZenDiscovery$MembershipListener.onJoin(ZenDiscovery.java:648)
at
org.elasticsearch.discovery.zen.membership.MembershipAction$JoinRequestRequestHandler.messageReceived(MembershipAction.java:152)
at
org.elasticsearch.discovery.zen.membership.MembershipAction$JoinRequestRequestHandler.messageReceived(MembershipAction.java:141)
at
org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:373)
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:404)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:366)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:282)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
at
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
... 3 more
I'm totally stuck, tried many things and don't know what to do
Please help