Hi,
I am trying to run 2 ec2 instances according to the following article
http://www.elasticsearch.org/guide/reference/modules/discovery/ec2.html.
This is my config/elasticsearch.yml:
cluster:
name: perftests
discovery:
type: ec2
cloud:
aws:
access_key: XXXXXXXXX
secret_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
and this is my log on both ec2 nodes no matter which one I start
first:
[2011-07-04 20:11:34,732][INFO ][node ] [Fusion]
{elasticsearch/0.16.2}[1223]: initializing ...
[2011-07-04 20:11:34,741][INFO ][plugins ] [Fusion]
loaded [cloud-aws]
[2011-07-04 20:11:38,868][INFO ][node ] [Fusion]
{elasticsearch/0.16.2}[1223]: initialized
[2011-07-04 20:11:38,868][INFO ][node ] [Fusion]
{elasticsearch/0.16.2}[1223]: starting ...
[2011-07-04 20:11:38,974][INFO ][transport ] [Fusion]
bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/
10.234.149.155:9300]}
[2011-07-04 20:11:46,324][INFO ][cluster.service ] [Fusion]
new_master [Fusion][1Mq8yU1hQJWmO_7ubqNt5A][inet[/
10.234.149.155:9300]], reason: zen-disco-join (elected_as_master)
[2011-07-04 20:11:46,361][INFO ][discovery ] [Fusion]
perftests/1Mq8yU1hQJWmO_7ubqNt5A
[2011-07-04 20:11:46,391][INFO ][gateway ] [Fusion]
recovered [0] indices into cluster_state
[2011-07-04 20:11:46,395][INFO ][http ] [Fusion]
bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/
10.234.149.155:9200]}
[2011-07-04 20:11:46,396][INFO ][node ] [Fusion]
{elasticsearch/0.16.2}[1223]: started
Why are they not able to find each other and run as a cluster?