# ElasticSearch : No ElasticSearch node is available Exception

**URL:** <https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248>\
**Category:** Elasticsearch\
**Created:** [August 18, 2013, 7:52pm UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248 "2013-08-18T19:52:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjorn\_Brathen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bjorn_brathen/32/2029_2.png) [@Bjorn\_Brathen](https://discuss.elastic.co/u/Bjorn_Brathen)\
**Post date:** [August 18, 2013, 7:52pm UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/1 "2013-08-18T19:52:31Z")

</div>

I'm trying to deploy _Elasticsearch_ to _Amazon web services EC2_. I have  
got it up and working for normal http REST requests from my own computer  
using curl, but when I try to use the Java Client API  
(w/Play2-elasticsearch) on the same computer it throws me this error:

[error] application - ElasticSearch : No ElasticSearch node is available.  
Please check that your configuration is correct, that you ES server is up  
and reachable from the network. Index has not been created and prepared.  
org.elasticsearch.client.transport.NoNodeAvailableException: No node  
available  
at org.elasticsearch.client.transport.TransportClientNodesService.execute(  
TransportClientNodesService.java:205) ~[elasticsearch-0.90.3.jar:na]  
at org.elasticsearch.client.transport.support.  
InternalTransportIndicesAdminClient.execute(  
InternalTransportIndicesAdminClient.java:85) ~[elasticsearch-0.90.3.jar:na]  
at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(  
AbstractIndicesAdminClient.java:147) ~[elasticsearch-0.90.3.jar:na]  
at org.elasticsearch.action.admin.indices.exists.indices.  
IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)  
~[elasticsearch-0.90.3.jar:na]  
at org.elasticsearch.action.ActionRequestBuilder.execute(  
ActionRequestBuilder.java:85) ~[elasticsearch-0.90.3.jar:na]  
at org.elasticsearch.action.ActionRequestBuilder.execute(  
ActionRequestBuilder.java:59) ~[elasticsearch-0.90.3.jar:na]  
[info] application - Application has started  
[error] application -

I've opened both inbound _9300_ and _9200_ ports on my EC2, and this is my \*  
elasticsearch.yml\*:

cluster.name: portal  
node.name: "Skald"  
node.master: true  
node.data: true  
index.number\_of\_shards: 1

index.number\_of\_replicas: 0  
transport.tcp.port: 9300  
http.port: 9200  
discovery.zen.ping.multicast.enabled: false  
cloud.aws.region: us-west-2

cloud:  
aws:  
access\_key: **my\_access\_key**  
secret\_key: **My\_secret**  
discovery:  
type: ec2

I additionally get this info-snippet in the elasticsearch console:  
[2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
Exception while retrieving instance list from AWS API: Unable to load AWS  
credentials from any provider in the chain

In the play2-elasticsearch module I've set:  
elasticsearch.local=false  
elasticsearch.client="[ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300](http://ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300)"  
elasticsearch.cluster.name="portal"  
elasticsearch.index.name="index1,index2"  
elasticsearch.index.clazzs="indexing.\*"  
elasticsearch.index.show\_request=false

Anybody got an idea, why this isn't working?

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Bjorn\_Brathen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bjorn_brathen/32/2029_2.png) [@Bjorn\_Brathen](https://discuss.elastic.co/u/Bjorn_Brathen)\
**Post date:** [August 18, 2013, 8:39pm UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/2 "2013-08-18T20:39:14Z")

</div>

Sorry, i'm using: elasticsearch-cloud-aws plugin 1.14.0, elasticsearch  
0.90.3 and play2-elasticsearch 0.7-snapshot

On Sunday, August 18, 2013 9:52:31 PM UTC+2, Bjørn Bråthen wrote:

> I'm trying to deploy _Elasticsearch_ to _Amazon web services EC2_. I have  
> got it up and working for normal http REST requests from my own computer  
> using curl, but when I try to use the Java Client API  
> (w/Play2-elasticsearch) on the same computer it throws me this error:
> 
> [error] application - Elasticsearch : No Elasticsearch node is available.  
> Please check that your configuration is correct, that you ES server is up  
> and reachable from the network. Index has not been created and prepared.  
> org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> available  
> at org.elasticsearch.client.transport.TransportClientNodesService.execute  
> (TransportClientNodesService.java:205) ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.client.transport.support.  
> InternalTransportIndicesAdminClient.execute(  
> InternalTransportIndicesAdminClient.java:85) ~[elasticsearch-0.90.3.jar:na  
> ]  
> at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(  
> AbstractIndicesAdminClient.java:147) ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.action.admin.indices.exists.indices.  
> IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)  
> ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:85) ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:59) ~[elasticsearch-0.90.3.jar:na]  
> [info] application - Application has started  
> [error] application -
> 
> I've opened both inbound _9300_ and _9200_ ports on my EC2, and this is  
> my _elasticsearch.yml_:
> 
> cluster.name: portal  
> node.name: "Skald"  
> node.master: true  
> node.data: true  
> index.number\_of\_shards: 1
> 
> index.number\_of\_replicas: 0  
> transport.tcp.port: 9300  
> http.port: 9200  
> discovery.zen.ping.multicast.enabled: false  
> cloud.aws.region: us-west-2
> 
> cloud:  
> aws:  
> access\_key: **my\_access\_key**  
> secret\_key: **My\_secret**  
> discovery:  
> type: ec2
> 
> I additionally get this info-snippet in the elasticsearch console:  
> [2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
> Exception while retrieving instance list from AWS API: Unable to load AWS  
> credentials from any provider in the chain
> 
> In the play2-elasticsearch module I've set:  
> elasticsearch.local=false  
> elasticsearch.client="[ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300](http://ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300)"  
> elasticsearch.cluster.name="portal"  
> elasticsearch.index.name="index1,index2"  
> elasticsearch.index.clazzs="indexing.\*"  
> elasticsearch.index.show\_request=false
> 
> Anybody got an idea, why this isn't working?

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Bjorn\_Brathen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bjorn_brathen/32/2029_2.png) [@Bjorn\_Brathen](https://discuss.elastic.co/u/Bjorn_Brathen)\
**Post date:** [August 18, 2013, 11:04pm UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/3 "2013-08-18T23:04:09Z")

</div>

I did a telnet against my node at port 9300, and a connection was  
established. Is this maybe a play2-elasticsearch 0.7-snapshot issue?

On Sunday, August 18, 2013 9:52:31 PM UTC+2, Bjørn Bråthen wrote:

> I'm trying to deploy _Elasticsearch_ to _Amazon web services EC2_. I have  
> got it up and working for normal http REST requests from my own computer  
> using curl, but when I try to use the Java Client API  
> (w/Play2-elasticsearch) on the same computer it throws me this error:
> 
> [error] application - Elasticsearch : No Elasticsearch node is available.  
> Please check that your configuration is correct, that you ES server is up  
> and reachable from the network. Index has not been created and prepared.  
> org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> available  
> at org.elasticsearch.client.transport.TransportClientNodesService.execute  
> (TransportClientNodesService.java:205) ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.client.transport.support.  
> InternalTransportIndicesAdminClient.execute(  
> InternalTransportIndicesAdminClient.java:85) ~[elasticsearch-0.90.3.jar:na  
> ]  
> at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(  
> AbstractIndicesAdminClient.java:147) ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.action.admin.indices.exists.indices.  
> IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)  
> ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:85) ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:59) ~[elasticsearch-0.90.3.jar:na]  
> [info] application - Application has started  
> [error] application -
> 
> I've opened both inbound _9300_ and _9200_ ports on my EC2, and this is  
> my _elasticsearch.yml_:
> 
> cluster.name: portal  
> node.name: "Skald"  
> node.master: true  
> node.data: true  
> index.number\_of\_shards: 1
> 
> index.number\_of\_replicas: 0  
> transport.tcp.port: 9300  
> http.port: 9200  
> discovery.zen.ping.multicast.enabled: false  
> cloud.aws.region: us-west-2
> 
> cloud:  
> aws:  
> access\_key: **my\_access\_key**  
> secret\_key: **My\_secret**  
> discovery:  
> type: ec2
> 
> I additionally get this info-snippet in the elasticsearch console:  
> [2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
> Exception while retrieving instance list from AWS API: Unable to load AWS  
> credentials from any provider in the chain
> 
> In the play2-elasticsearch module I've set:  
> elasticsearch.local=false  
> elasticsearch.client="[ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300](http://ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300)"  
> elasticsearch.cluster.name="portal"  
> elasticsearch.index.name="index1,index2"  
> elasticsearch.index.clazzs="indexing.\*"  
> elasticsearch.index.show\_request=false
> 
> Anybody got an idea, why this isn't working?

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Bjorn\_Brathen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bjorn_brathen/32/2029_2.png) [@Bjorn\_Brathen](https://discuss.elastic.co/u/Bjorn_Brathen)\
**Post date:** [August 20, 2013, 2:04pm UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/4 "2013-08-20T14:04:44Z")

</div>

It was a Play2-elasticsearch issue, client.transport.sniff was set to true  
on default, turned client.transport.sniff to false and it worked.

On Sunday, August 18, 2013 9:52:31 PM UTC+2, Bjørn Bråthen wrote:

> I'm trying to deploy _Elasticsearch_ to _Amazon web services EC2_. I have  
> got it up and working for normal http REST requests from my own computer  
> using curl, but when I try to use the Java Client API  
> (w/Play2-elasticsearch) on the same computer it throws me this error:
> 
> [error] application - Elasticsearch : No Elasticsearch node is available.  
> Please check that your configuration is correct, that you ES server is up  
> and reachable from the network. Index has not been created and prepared.  
> org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> available  
> at org.elasticsearch.client.transport.TransportClientNodesService.execute  
> (TransportClientNodesService.java:205) ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.client.transport.support.  
> InternalTransportIndicesAdminClient.execute(  
> InternalTransportIndicesAdminClient.java:85) ~[elasticsearch-0.90.3.jar:na  
> ]  
> at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(  
> AbstractIndicesAdminClient.java:147) ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.action.admin.indices.exists.indices.  
> IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)  
> ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:85) ~[elasticsearch-0.90.3.jar:na]  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:59) ~[elasticsearch-0.90.3.jar:na]  
> [info] application - Application has started  
> [error] application -
> 
> I've opened both inbound _9300_ and _9200_ ports on my EC2, and this is  
> my _elasticsearch.yml_:
> 
> cluster.name: portal  
> node.name: "Skald"  
> node.master: true  
> node.data: true  
> index.number\_of\_shards: 1
> 
> index.number\_of\_replicas: 0  
> transport.tcp.port: 9300  
> http.port: 9200  
> discovery.zen.ping.multicast.enabled: false  
> cloud.aws.region: us-west-2
> 
> cloud:  
> aws:  
> access\_key: **my\_access\_key**  
> secret\_key: **My\_secret**  
> discovery:  
> type: ec2
> 
> I additionally get this info-snippet in the elasticsearch console:  
> [2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
> Exception while retrieving instance list from AWS API: Unable to load AWS  
> credentials from any provider in the chain
> 
> In the play2-elasticsearch module I've set:  
> elasticsearch.local=false  
> elasticsearch.client="[ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300](http://ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300)"  
> elasticsearch.cluster.name="portal"  
> elasticsearch.index.name="index1,index2"  
> elasticsearch.index.clazzs="indexing.\*"  
> elasticsearch.index.show\_request=false
> 
> Anybody got an idea, why this isn't working?

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ali\_Emami](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Ali\_Emami](https://discuss.elastic.co/u/Ali_Emami)\
**Post date:** [October 4, 2013, 6:27am UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/5 "2013-10-04T06:27:57Z")

</div>

hey Bjorn, how did you turn client.transport.sniff off? from configuration  
or from the code?? thanks

On Tuesday, August 20, 2013 10:04:44 AM UTC-4, Bjørn Bråthen wrote:

> It was a Play2-elasticsearch issue, client.transport.sniff was set to true  
> on default, turned client.transport.sniff to false and it worked.
> 
> On Sunday, August 18, 2013 9:52:31 PM UTC+2, Bjørn Bråthen wrote:
> 
> > I'm trying to deploy _Elasticsearch_ to _Amazon web services EC2_. I  
> > have got it up and working for normal http REST requests from my own  
> > computer using curl, but when I try to use the Java Client API  
> > (w/Play2-elasticsearch) on the same computer it throws me this error:
> > 
> > [error] application - Elasticsearch : No Elasticsearch node is available.  
> > Please check that your configuration is correct, that you ES server isup  
> > and reachable from the network. Index has not been created and prepared.  
> > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > available  
> > at org.elasticsearch.client.transport.TransportClientNodesService.  
> > execute(TransportClientNodesService.java:205) ~[elasticsearch-0.90.3.jar:  
> > na]  
> > at org.elasticsearch.client.transport.support.  
> > InternalTransportIndicesAdminClient.execute(  
> > InternalTransportIndicesAdminClient.java:85) ~[elasticsearch-0.90.3.jar:  
> > na]  
> > at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(  
> > AbstractIndicesAdminClient.java:147) ~[elasticsearch-0.90.3.jar:na]  
> > at org.elasticsearch.action.admin.indices.exists.indices.  
> > IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43  
> > ) ~[elasticsearch-0.90.3.jar:na]  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > ActionRequestBuilder.java:85) ~[elasticsearch-0.90.3.jar:na]  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > ActionRequestBuilder.java:59) ~[elasticsearch-0.90.3.jar:na]  
> > [info] application - Application has started  
> > [error] application -
> > 
> > I've opened both inbound _9300_ and _9200_ ports on my EC2, and this is  
> > my _elasticsearch.yml_:
> > 
> > cluster.name: portal  
> > node.name: "Skald"  
> > node.master: true  
> > node.data: true  
> > index.number\_of\_shards: 1
> > 
> > index.number\_of\_replicas: 0  
> > transport.tcp.port: 9300  
> > http.port: 9200  
> > discovery.zen.ping.multicast.enabled: false  
> > cloud.aws.region: us-west-2
> > 
> > cloud:  
> > aws:  
> > access\_key: **my\_access\_key**  
> > secret\_key: **My\_secret**  
> > discovery:  
> > type: ec2
> > 
> > I additionally get this info-snippet in the elasticsearch console:  
> > [2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
> > Exception while retrieving instance list from AWS API: Unable to load AWS  
> > credentials from any provider in the chain
> > 
> > In the play2-elasticsearch module I've set:  
> > elasticsearch.local=false  
> > elasticsearch.client="[ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300](http://ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300)  
> > "  
> > elasticsearch.cluster.name="portal"  
> > elasticsearch.index.name="index1,index2"  
> > elasticsearch.index.clazzs="indexing.\*"  
> > elasticsearch.index.show\_request=false
> > 
> > Anybody got an idea, why this isn't working?

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Bjorn\_Brathen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bjorn_brathen/32/2029_2.png) [@Bjorn\_Brathen](https://discuss.elastic.co/u/Bjorn_Brathen)\
**Post date:** [October 4, 2013, 9:07am UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/6 "2013-10-04T09:07:05Z")

</div>

I created a sniff option for the module and pushed it to git. In the  
application.conf, do:

elasticsearch.sniff=false

to turn sniffing for nodes off.

On Friday, October 4, 2013 8:27:57 AM UTC+2, Ali Emami wrote:

> hey Bjorn, how did you turn client.transport.sniff off? from configuration  
> or from the code?? thanks
> 
> On Tuesday, August 20, 2013 10:04:44 AM UTC-4, Bjørn Bråthen wrote:
> 
> > It was a Play2-elasticsearch issue, client.transport.sniff was set to  
> > true on default, turned client.transport.sniff to false and it worked.
> > 
> > On Sunday, August 18, 2013 9:52:31 PM UTC+2, Bjørn Bråthen wrote:
> > 
> > > I'm trying to deploy _Elasticsearch_ to _Amazon web services EC2_. I  
> > > have got it up and working for normal http REST requests from my own  
> > > computer using curl, but when I try to use the Java Client API  
> > > (w/Play2-elasticsearch) on the same computer it throws me this error:
> > > 
> > > [error] application - Elasticsearch : No Elasticsearch node is available  
> > > . Please check that your configuration is correct, that you ES server isup  
> > > and reachable from the network. Index has not been created and prepared.  
> > > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > > available  
> > > at org.elasticsearch.client.transport.TransportClientNodesService.  
> > > execute(TransportClientNodesService.java:205) ~[elasticsearch-0.90.3.jar  
> > > :na]  
> > > at org.elasticsearch.client.transport.support.  
> > > InternalTransportIndicesAdminClient.execute(  
> > > InternalTransportIndicesAdminClient.java:85) ~[elasticsearch-0.90.3.jar:  
> > > na]  
> > > at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(  
> > > AbstractIndicesAdminClient.java:147) ~[elasticsearch-0.90.3.jar:na]  
> > > at org.elasticsearch.action.admin.indices.exists.indices.  
> > > IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:  
> > > 43) ~[elasticsearch-0.90.3.jar:na]  
> > > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > > ActionRequestBuilder.java:85) ~[elasticsearch-0.90.3.jar:na]  
> > > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > > ActionRequestBuilder.java:59) ~[elasticsearch-0.90.3.jar:na]  
> > > [info] application - Application has started  
> > > [error] application -
> > > 
> > > I've opened both inbound _9300_ and _9200_ ports on my EC2, and this is  
> > > my _elasticsearch.yml_:
> > > 
> > > cluster.name: portal  
> > > node.name: "Skald"  
> > > node.master: true  
> > > node.data: true  
> > > index.number\_of\_shards: 1
> > > 
> > > index.number\_of\_replicas: 0  
> > > transport.tcp.port: 9300  
> > > http.port: 9200  
> > > discovery.zen.ping.multicast.enabled: false  
> > > cloud.aws.region: us-west-2
> > > 
> > > cloud:  
> > > aws:  
> > > access\_key: **my\_access\_key**  
> > > secret\_key: **My\_secret**  
> > > discovery:  
> > > type: ec2
> > > 
> > > I additionally get this info-snippet in the elasticsearch console:  
> > > [2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
> > > Exception while retrieving instance list from AWS API: Unable to load AWS  
> > > credentials from any provider in the chain
> > > 
> > > In the play2-elasticsearch module I've set:  
> > > elasticsearch.local=false  
> > > elasticsearch.client="  
> > > [ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300](http://ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300)"  
> > > elasticsearch.cluster.name="portal"  
> > > elasticsearch.index.name="index1,index2"  
> > > elasticsearch.index.clazzs="indexing.\*"  
> > > elasticsearch.index.show\_request=false
> > > 
> > > Anybody got an idea, why this isn't working?

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Bjorn\_Brathen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bjorn_brathen/32/2029_2.png) [@Bjorn\_Brathen](https://discuss.elastic.co/u/Bjorn_Brathen)\
**Post date:** [October 4, 2013, 9:18am UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/7 "2013-10-04T09:18:32Z")

</div>

And, i'm using Play2-elasticsearch 0.7-SNAPSHOT by the way.

On Friday, October 4, 2013 8:27:57 AM UTC+2, Ali Emami wrote:

> hey Bjorn, how did you turn client.transport.sniff off? from configuration  
> or from the code?? thanks
> 
> On Tuesday, August 20, 2013 10:04:44 AM UTC-4, Bjørn Bråthen wrote:
> 
> > It was a Play2-elasticsearch issue, client.transport.sniff was set to  
> > true on default, turned client.transport.sniff to false and it worked.
> > 
> > On Sunday, August 18, 2013 9:52:31 PM UTC+2, Bjørn Bråthen wrote:
> > 
> > > I'm trying to deploy _Elasticsearch_ to _Amazon web services EC2_. I  
> > > have got it up and working for normal http REST requests from my own  
> > > computer using curl, but when I try to use the Java Client API  
> > > (w/Play2-elasticsearch) on the same computer it throws me this error:
> > > 
> > > [error] application - Elasticsearch : No Elasticsearch node is available  
> > > . Please check that your configuration is correct, that you ES server isup  
> > > and reachable from the network. Index has not been created and prepared.  
> > > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > > available  
> > > at org.elasticsearch.client.transport.TransportClientNodesService.  
> > > execute(TransportClientNodesService.java:205) ~[elasticsearch-0.90.3.jar  
> > > :na]  
> > > at org.elasticsearch.client.transport.support.  
> > > InternalTransportIndicesAdminClient.execute(  
> > > InternalTransportIndicesAdminClient.java:85) ~[elasticsearch-0.90.3.jar:  
> > > na]  
> > > at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(  
> > > AbstractIndicesAdminClient.java:147) ~[elasticsearch-0.90.3.jar:na]  
> > > at org.elasticsearch.action.admin.indices.exists.indices.  
> > > IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:  
> > > 43) ~[elasticsearch-0.90.3.jar:na]  
> > > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > > ActionRequestBuilder.java:85) ~[elasticsearch-0.90.3.jar:na]  
> > > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > > ActionRequestBuilder.java:59) ~[elasticsearch-0.90.3.jar:na]  
> > > [info] application - Application has started  
> > > [error] application -
> > > 
> > > I've opened both inbound _9300_ and _9200_ ports on my EC2, and this is  
> > > my _elasticsearch.yml_:
> > > 
> > > cluster.name: portal  
> > > node.name: "Skald"  
> > > node.master: true  
> > > node.data: true  
> > > index.number\_of\_shards: 1
> > > 
> > > index.number\_of\_replicas: 0  
> > > transport.tcp.port: 9300  
> > > http.port: 9200  
> > > discovery.zen.ping.multicast.enabled: false  
> > > cloud.aws.region: us-west-2
> > > 
> > > cloud:  
> > > aws:  
> > > access\_key: **my\_access\_key**  
> > > secret\_key: **My\_secret**  
> > > discovery:  
> > > type: ec2
> > > 
> > > I additionally get this info-snippet in the elasticsearch console:  
> > > [2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
> > > Exception while retrieving instance list from AWS API: Unable to load AWS  
> > > credentials from any provider in the chain
> > > 
> > > In the play2-elasticsearch module I've set:  
> > > elasticsearch.local=false  
> > > elasticsearch.client="  
> > > [ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300](http://ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300)"  
> > > elasticsearch.cluster.name="portal"  
> > > elasticsearch.index.name="index1,index2"  
> > > elasticsearch.index.clazzs="indexing.\*"  
> > > elasticsearch.index.show\_request=false
> > > 
> > > Anybody got an idea, why this isn't working?

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [October 4, 2013, 7:33pm UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/8 "2013-10-04T19:33:36Z")

</div>

Was the spaces after ":" removed as a result of your key obfuscation or  
they are indeed missing in your real config?

```
            access_key: **my_access_key**
            secret_key: **My_secret**

```

Because if they are missing, it would explain the error message that you  
are getting:

[2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
Exception while retrieving instance list from AWS API: Unable to load AWS  
credentials from any provider in the chain

On Friday, October 4, 2013 5:18:32 AM UTC-4, Bjørn Bråthen wrote:

> And, i'm using Play2-elasticsearch 0.7-SNAPSHOT by the way.
> 
> On Friday, October 4, 2013 8:27:57 AM UTC+2, Ali Emami wrote:
> 
> > hey Bjorn, how did you turn client.transport.sniff off? from  
> > configuration or from the code?? thanks
> > 
> > On Tuesday, August 20, 2013 10:04:44 AM UTC-4, Bjørn Bråthen wrote:
> > 
> > > It was a Play2-elasticsearch issue, client.transport.sniff was set to  
> > > true on default, turned client.transport.sniff to false and it worked.
> > > 
> > > On Sunday, August 18, 2013 9:52:31 PM UTC+2, Bjørn Bråthen wrote:
> > > 
> > > > I'm trying to deploy _Elasticsearch_ to _Amazon web services EC2_. I  
> > > > have got it up and working for normal http REST requests from my own  
> > > > computer using curl, but when I try to use the Java Client API  
> > > > (w/Play2-elasticsearch) on the same computer it throws me this error:
> > > > 
> > > > [error] application - Elasticsearch : No Elasticsearch node isavailable  
> > > > . Please check that your configuration is correct, that you ES server  
> > > > is up and reachable from the network. Index has not been created andprepared  
> > > > .  
> > > > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > > > available  
> > > > at org.elasticsearch.client.transport.TransportClientNodesService.  
> > > > execute(TransportClientNodesService.java:205) ~[elasticsearch-0.90.  
> > > > 3.jar:na]  
> > > > at org.elasticsearch.client.transport.support.  
> > > > InternalTransportIndicesAdminClient.execute(  
> > > > InternalTransportIndicesAdminClient.java:85) ~[elasticsearch-0.90.3.jar  
> > > > :na]  
> > > > at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(  
> > > > AbstractIndicesAdminClient.java:147) ~[elasticsearch-0.90.3.jar:na]  
> > > > at org.elasticsearch.action.admin.indices.exists.indices.  
> > > > IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:  
> > > > 43) ~[elasticsearch-0.90.3.jar:na]  
> > > > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > > > ActionRequestBuilder.java:85) ~[elasticsearch-0.90.3.jar:na]  
> > > > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > > > ActionRequestBuilder.java:59) ~[elasticsearch-0.90.3.jar:na]  
> > > > [info] application - Application has started  
> > > > [error] application -
> > > > 
> > > > I've opened both inbound _9300_ and _9200_ ports on my EC2, and this  
> > > > is my _elasticsearch.yml_:
> > > > 
> > > > cluster.name: portal  
> > > > node.name: "Skald"  
> > > > node.master: true  
> > > > node.data: true  
> > > > index.number\_of\_shards: 1
> > > > 
> > > > index.number\_of\_replicas: 0  
> > > > transport.tcp.port: 9300  
> > > > http.port: 9200  
> > > > discovery.zen.ping.multicast.enabled: false  
> > > > cloud.aws.region: us-west-2
> > > > 
> > > > cloud:  
> > > > aws:  
> > > > access\_key: **my\_access\_key**  
> > > > secret\_key: **My\_secret**  
> > > > discovery:  
> > > > type: ec2
> > > > 
> > > > I additionally get this info-snippet in the elasticsearch console:  
> > > > [2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
> > > > Exception while retrieving instance list from AWS API: Unable to load AWS  
> > > > credentials from any provider in the chain
> > > > 
> > > > In the play2-elasticsearch module I've set:  
> > > > elasticsearch.local=false  
> > > > elasticsearch.client="  
> > > > [ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300](http://ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300)"  
> > > > elasticsearch.cluster.name="portal"  
> > > > elasticsearch.index.name="index1,index2"  
> > > > elasticsearch.index.clazzs="indexing.\*"  
> > > > elasticsearch.index.show\_request=false
> > > > 
> > > > Anybody got an idea, why this isn't working?

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Mark\_Betz](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@Mark\_Betz](https://discuss.elastic.co/u/Mark_Betz)\
**Post date:** [March 14, 2014, 8:09pm UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/9 "2014-03-14T20:09:56Z")

</div>

Just wanted to say thanks for posting this, Igor. Solved a problem for me  
this afternoon, and it would have taken a long time to stumble on this by  
myself :).

On Friday, October 4, 2013 3:33:36 PM UTC-4, Igor Motov wrote:

> Was the spaces after ":" removed as a result of your key obfuscation or  
> they are indeed missing in your real config?
> 
> ```
> access_key: **my_access_key**
> secret_key: **My_secret**
> 
> ```
> 
> Because if they are missing, it would explain the error message that you  
> are getting:
> 
> [2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
> Exception while retrieving instance list from AWS API: Unable to load AWS  
> credentials from any provider in the chain
> 
> On Friday, October 4, 2013 5:18:32 AM UTC-4, Bjørn Bråthen wrote:
> 
> > And, i'm using Play2-elasticsearch 0.7-SNAPSHOT by the way.
> > 
> > On Friday, October 4, 2013 8:27:57 AM UTC+2, Ali Emami wrote:
> > 
> > > hey Bjorn, how did you turn client.transport.sniff off? from  
> > > configuration or from the code?? thanks
> > > 
> > > On Tuesday, August 20, 2013 10:04:44 AM UTC-4, Bjørn Bråthen wrote:
> > > 
> > > > It was a Play2-elasticsearch issue, client.transport.sniff was set to  
> > > > true on default, turned client.transport.sniff to false and it worked.
> > > > 
> > > > On Sunday, August 18, 2013 9:52:31 PM UTC+2, Bjørn Bråthen wrote:
> > > > 
> > > > > I'm trying to deploy _Elasticsearch_ to _Amazon web services EC2_. I  
> > > > > have got it up and working for normal http REST requests from my own  
> > > > > computer using curl, but when I try to use the Java Client API  
> > > > > (w/Play2-elasticsearch) on the same computer it throws me this error:
> > > > > 
> > > > > [error] application - Elasticsearch : No Elasticsearch node isavailable  
> > > > > . Please check that your configuration is correct, that you ES server  
> > > > > is up and reachable from the network. Index has not been created andprepared  
> > > > > .  
> > > > > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > > > > available  
> > > > > at org.elasticsearch.client.transport.TransportClientNodesService.  
> > > > > execute(TransportClientNodesService.java:205) ~[elasticsearch-0.90.  
> > > > > 3.jar:na]  
> > > > > at org.elasticsearch.client.transport.support.  
> > > > > InternalTransportIndicesAdminClient.execute(  
> > > > > InternalTransportIndicesAdminClient.java:85) ~[elasticsearch-0.90.  
> > > > > 3.jar:na]  
> > > > > at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists  
> > > > > (AbstractIndicesAdminClient.java:147) ~[elasticsearch-0.90.3.jar:na]  
> > > > > at org.elasticsearch.action.admin.indices.exists.indices.  
> > > > > IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java  
> > > > > :43) ~[elasticsearch-0.90.3.jar:na]  
> > > > > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > > > > ActionRequestBuilder.java:85) ~[elasticsearch-0.90.3.jar:na]  
> > > > > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > > > > ActionRequestBuilder.java:59) ~[elasticsearch-0.90.3.jar:na]  
> > > > > [info] application - Application has started  
> > > > > [error] application -
> > > > > 
> > > > > I've opened both inbound _9300_ and _9200_ ports on my EC2, and this  
> > > > > is my _elasticsearch.yml_:
> > > > > 
> > > > > cluster.name: portal  
> > > > > node.name: "Skald"  
> > > > > node.master: true  
> > > > > node.data: true  
> > > > > index.number\_of\_shards: 1
> > > > > 
> > > > > index.number\_of\_replicas: 0  
> > > > > transport.tcp.port: 9300  
> > > > > http.port: 9200  
> > > > > discovery.zen.ping.multicast.enabled: false  
> > > > > cloud.aws.region: us-west-2
> > > > > 
> > > > > cloud:  
> > > > > aws:  
> > > > > access\_key: **my\_access\_key**  
> > > > > secret\_key: **My\_secret**  
> > > > > discovery:  
> > > > > type: ec2
> > > > > 
> > > > > I additionally get this info-snippet in the elasticsearch console:  
> > > > > [2013-08-18 19:24:11,710][INFO][discovery.ec2] [Skald]  
> > > > > Exception while retrieving instance list from AWS API: Unable to load AWS  
> > > > > credentials from any provider in the chain
> > > > > 
> > > > > In the play2-elasticsearch module I've set:  
> > > > > elasticsearch.local=false  
> > > > > elasticsearch.client="  
> > > > > [ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300](http://ec2-63-32-3-23.us-west-2.compute.amazonaws.com:9300)"  
> > > > > elasticsearch.cluster.name="portal"  
> > > > > elasticsearch.index.name="index1,index2"  
> > > > > elasticsearch.index.clazzs="indexing.\*"  
> > > > > elasticsearch.index.show\_request=false
> > > > > 
> > > > > Anybody got an idea, why this isn't working?

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/13c718b5-7922-4f97-bfa1-c2ff299179e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13c718b5-7922-4f97-bfa1-c2ff299179e8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:43am UTC](https://discuss.elastic.co/t/elasticsearch-no-elasticsearch-node-is-available-exception/13248/10 "2017-07-06T01:43:05Z")

</div>


