The EC2 plugin doesn't mess with networking settings, so the behaviour you're describing is weird.
After ES starts, can you connect to it via `curl localhost:9200`? Also, don't use the now deprecated S3 gateway, apart maybe from strictly testing purposes -- it's unsupported and unpredictable. As suggested by Ross, maybe it takes time to ping all the instances in your AWS account -- do you set the `discovery.ec2.groups` settings to filter the list? Karel On Friday, December 20, 2013 10:04:56 PM UTC+1, Steinar Bang wrote: > > I am running ES 0.90.4 on an Ubuntu 12.04 LTS EC2 instance. > > Starting this instance, it starts listening to port 9200: > ubuntu@ip-172-31-31-127:/var/lib/elasticsearch$ sudo lsof -i TCP | grep > 9200 > java 1982 elasticsearch 102u IPv6 12069 0t0 TCP *:9200 > (LISTEN) > ubuntu@ip-172-31-31-127:/var/lib/elasticsearch$ > > If I add the EC2 plugin settings to /etc/elasticsearch/elasticsearch.yml > and restart elasticsearch, it stops listening to port 9200: > ubuntu@ip-172-31-31-127:/var/lib/elasticsearch$ sudo lsof -i TCP | grep > 9200 > ubuntu@ip-172-31-31-127:/var/lib/elasticsearch$ > > If I yank the EC2 settings from /etc/elasticsearch/elasticsearch.yml and > restart elasticsearch, it starts listening to 9200 again. > > Is this expected behaviour? Does it start listening to a different port > instead? > > The settings that are added to /etc/elasticsearch/elasticsearch.yml are > the settings mentioned in > http://www.elasticsearch.org/tutorials/elasticsearch-on-ec2/ > > > The settings are: > > cluster.name: myuniquename-cluster > cloud: > aws: > access_key: <key> > secret_key: <key> > discovery: > type: ec2 > gateway: > type: s3 > s3: > bucket: myuniquename > > > Thanks! > > - Steinar > > > -- 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/f07a9191-8fea-4660-a38c-85825c5237db%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
