How long did you wait after starting with AWS settings before checking the 
lsof output?  I've found that startup time on AWS can be quite slow, due to 
the fact that ES is describing all your instances and looking for other ES 
instances to cluster with.  If you have a lot of instances, this could take 
quite a while.

I'd suggest enabling the logging as described here:  
http://www.elasticsearch.org/tutorials/elasticsearch-on-ec2/
Then watch the logs as the node comes up.  There may be some clues there as 
to what's going on.

Ross



On Friday, 20 December 2013 14:04:56 UTC-7, 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/123a7260-c8cd-4203-bd95-f796a5b3ea69%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to