Howdy - I cannot get two ec2 servers to connect to one another as a 
cluster.  The servers are successfully discovering themselves via the 
supplied AWS credentials with proper permissions, however I the non-master 
server continually connects to and fails when joining the master.  I have 
verified the ports are open for both TCP and UDP on both servers in the 
9200-9400 port range.  

The specific error, found in the log below is: 

[2015-01-06 22:52:25,954][TRACE][discovery.ec2 ] [es0] failed to send join 
request to master 
[[es1][VNcvo8b3TSqObDo7nEwkAg][ip-172-31-23-251][inet[/172.31.23.251:9300]]] 
org.elasticsearch.transport.RemoteTransportException: 
[es1][inet[/172.31.23.251:9300]][internal:discovery/zen/join]  Caused by: 
org.elasticsearch.transport.NotSerializableTransportException: 
[org.elasticsearch.transport.ConnectTransportException] 
[es0][inet[/172.31.29.66:9300]] connect_timeout[30s]; connection timed out: 
/172.31.29.66:9300;

I'm stuck after several hours, hoping someone can point me in the correct 
direction.

Thanks!

Shane


*Log excerpt:*
[2015-01-06 22:51:52,618][TRACE][discovery.ec2 ] [es0] starting to ping 

[2015-01-06 22:51:52,758][TRACE][discovery.ec2 ] [es0] building dynamic 
unicast discovery nodes... 

[2015-01-06 22:51:52,758][TRACE][discovery.ec2 ] [es0] adding i-dd78fdd1, 
address 172.31.29.66, transport_address inet[/172.31.29.66:9300] 

[2015-01-06 22:51:52,758][TRACE][discovery.ec2 ] [es0] adding i-a220ea54, 
address 172.31.23.251, transport_address inet[/172.31.23.251:9300] 

[2015-01-06 22:51:52,758][DEBUG][discovery.ec2 ] [es0] using dynamic 
discovery nodes 
[[#cloud-i-dd78fdd1-0][ip-172-31-29-66][inet[/172.31.29.66:9300]], 
[#cloud-i-a220ea54-0][ip-172-31-29-66][inet[/172.31.23.251:9300]]] 

[2015-01-06 22:51:54,348][TRACE][discovery.ec2 ] [es0] building dynamic 
unicast discovery nodes... 

[2015-01-06 22:51:54,348][TRACE][discovery.ec2 ] [es0] adding i-dd78fdd1, 
address 172.31.29.66, transport_address inet[/172.31.29.66:9300] 

[2015-01-06 22:51:54,349][TRACE][discovery.ec2 ] [es0] adding i-a220ea54, 
address 172.31.23.251, transport_address inet[/172.31.23.251:9300] 

[2015-01-06 22:51:54,349][DEBUG][discovery.ec2 ] [es0] using dynamic 
discovery nodes 
[[#cloud-i-dd78fdd1-0][ip-172-31-29-66][inet[/172.31.29.66:9300]], 
[#cloud-i-a220ea54-0][ip-172-31-29-66][inet[/172.31.23.251:9300]]] 

[2015-01-06 22:51:55,913][TRACE][discovery.ec2 ] [es0] building dynamic 
unicast discovery nodes... 

[2015-01-06 22:51:55,913][TRACE][discovery.ec2 ] [es0] adding i-dd78fdd1, 
address 172.31.29.66, transport_address inet[/172.31.29.66:9300] 

[2015-01-06 22:51:55,914][TRACE][discovery.ec2 ] [es0] adding i-a220ea54, 
address 172.31.23.251, transport_address inet[/172.31.23.251:9300] 

[2015-01-06 22:51:55,914][DEBUG][discovery.ec2 ] [es0] using dynamic 
discovery nodes 
[[#cloud-i-dd78fdd1-0][ip-172-31-29-66][inet[/172.31.29.66:9300]], 
[#cloud-i-a220ea54-0][ip-172-31-29-66][inet[/172.31.23.251:9300]]] 

[2015-01-06 22:51:55,922][TRACE][discovery.ec2 ] [es0] full ping responses: 

--> ping_response{node 
[[es1][VNcvo8b3TSqObDo7nEwkAg][ip-172-31-23-251][inet[/172.31.23.251:9300]]], 
id[51], master 
[[es1][VNcvo8b3TSqObDo7nEwkAg][ip-172-31-23-251][inet[/172.31.23.251:9300]]], 
hasJoinedOnce [true], cluster_name[elasticsearch]} 

[2015-01-06 22:51:55,922][DEBUG][discovery.ec2 ] [es0] filtered ping 
responses: (filter_client[true], filter_data[false]) 

--> ping_response{node 
[[es1][VNcvo8b3TSqObDo7nEwkAg][ip-172-31-23-251][inet[/172.31.23.251:9300]]], 
id[51], master 
[[es1][VNcvo8b3TSqObDo7nEwkAg][ip-172-31-23-251][inet[/172.31.23.251:9300]]], 
hasJoinedOnce [true], cluster_name[elasticsearch]} 

[2015-01-06 22:51:55,922][TRACE][discovery.ec2 ] [es0] joining master 
[es1][VNcvo8b3TSqObDo7nEwkAg][ip-172-31-23-251][inet[/172.31.23.251:9300]] 

[2015-01-06 22:52:25,954][TRACE][discovery.ec2 ] [es0] failed to send join 
request to master 
[[es1][VNcvo8b3TSqObDo7nEwkAg][ip-172-31-23-251][inet[/172.31.23.251:9300]]] 


org.elasticsearch.transport.RemoteTransportException: 
[es1][inet[/172.31.23.251:9300]][internal:discovery/zen/join] 

Caused by: org.elasticsearch.transport.NotSerializableTransportException: 
[org.elasticsearch.transport.ConnectTransportException] 
[es0][inet[/172.31.29.66:9300]] connect_timeout[30s]; connection timed out: 
/172.31.29.66:9300; 


*And here is the config file I am using on both servers:*
cluster.name: elasticsearch 
plugin: 
  mandatory: cloud-aws 

cloud.aws.region: us-west-2 
cloud: 
  aws: 
    access_key: AAA 
    secret_key: BBB 
discovery: 
  type: ec2 
discovery.ec2.tag.stack: staging

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/ee6d6225-f383-4e6b-b4d7-464ae82414e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to