Curl Problems with ElasticSearch on Ubuntu 10.04 Server

I've got an Ubuntu 10.04 Server instance running on Amazon EC2 and I'm
having some problems.

I followed this tutorial to the letter to install ElasticSearch:
http://www.elasticsearch.org/tutorials/2010/07/02/setting-up-elasticsearch-on-debian.html

Whenever I attempt to interact with ElasticSearch via curl I get this
error:
curl: (7) couldn't connect to host

The service is running, but I can't even index any data at this point.
Does anyone have any idea what might be going on? Has anyone
encountered any this problem?

I believe the elasticsearch logs will tell you when the HTTP listener starts
up and what port it is using. That should be a good starting point.

Curtis

On Mon, Oct 3, 2011 at 12:13 PM, Josh JRG pac78275@gmail.com wrote:

I've got an Ubuntu 10.04 Server instance running on Amazon EC2 and I'm
having some problems.

I followed this tutorial to the letter to install Elasticsearch:

Elasticsearch Platform — Find real-time answers at scale | Elastic

Whenever I attempt to interact with Elasticsearch via curl I get this
error:
curl: (7) couldn't connect to host

The service is running, but I can't even index any data at this point.
Does anyone have any idea what might be going on? Has anyone
encountered any this problem?

Yea, check the logs, it should tell you which address it bound to (which you
can explicitly control by setting the network.host setting).

On Mon, Oct 3, 2011 at 9:23 PM, Curtis Caravone caravone@gmail.com wrote:

I believe the elasticsearch logs will tell you when the HTTP listener
starts up and what port it is using. That should be a good starting point.

Curtis

On Mon, Oct 3, 2011 at 12:13 PM, Josh JRG pac78275@gmail.com wrote:

I've got an Ubuntu 10.04 Server instance running on Amazon EC2 and I'm
having some problems.

I followed this tutorial to the letter to install Elasticsearch:

Elasticsearch Platform — Find real-time answers at scale | Elastic

Whenever I attempt to interact with Elasticsearch via curl I get this
error:
curl: (7) couldn't connect to host

The service is running, but I can't even index any data at this point.
Does anyone have any idea what might be going on? Has anyone
encountered any this problem?

I believe, you need to open the port under associated Security Group with your node. You can do that from terminal commands or you can local amazon web console go to "Ec2" and there you will find "Security Group".

I have a trouble with Elastic search:
After installing and running elastic search 0.17.6 by command
bin/elasticsearch -f -Des.network.host=myIPAdress

Elastic search function very well

When I type this command on the machine of installed Elastic Search, called machine A (Fedora 13):
curl - XGET http://localhost:9200/myquery
or curl - XGET http://myIPAdress:9200/myquery

it is OK, I always receive correct answer

But When I type this command
curl - XGET http://myIPAdress:9200/myquery
on another machine B (Fedora 13 too), I always receive the response:
couldn't connect to the host although this machine B can always "ping" to the machine A

Elastic search log also let me know that, bound address is myIPAdress:9200, publish addresse is also myIPAdress:9200 (for http, and 9300 for transport).

Please help me solve this problem
Thanks a lot