# None of the configured nodes are available - elastic 2.3.4

**URL:** https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available-elastic-2-3-4/62399
**Category:** Elasticsearch
**Created:** [October 6, 2016, 3:10pm UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available-elastic-2-3-4/62399 "2016-10-06T15:10:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Moshe\_Sucaz](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@Moshe\_Sucaz](https://discuss.elastic.co/u/Moshe_Sucaz)
#### Post date: [October 6, 2016, 3:10pm UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available-elastic-2-3-4/62399/1 "2016-10-06T15:10:02Z")

</div>

Hi, I created a new 2.3.4 elastic cluster with 3 nodes, each on different machine.  
All 3 see each other when I boot the elastic. But when trying to execute actionGet (from other machine that running web application with playframework 1.4.3) , I get:

> play.exceptions.JavaExecutionException: None of the configured nodes are available: [{#transport#-1}{127.0.0.11}{127.0.0.11:9300}]  
> at play.jobs.Job.call(Job.java:225)  
> at helpers.ExceptionalJob$1.call(ExceptionalJob.java:15)  
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)  
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
> at java.lang.Thread.run(Thread.java:745)

I set the client in this way:

> client = TransportClient.builder().build()  
> .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(host), port));

my elasticsearch.yml is:

> cluster.name:my\_cluster  
> node.name: node\_${HOSTNAME}  
> node.tag: gen1

> transport.tcp.port: 9300  
> http.port: 9200  
> network.host: 0.0.0.0

> http.cors.allow-origin:  
> bootstrap.mlockall: true

> discovery.zen.ping.unicast.hosts: ["host1", "host2"]  
> discovery.zen.ping.multicast.enabled: false

> discovery.zen.minimum\_master\_nodes: 2  
> gateway.recover\_after\_nodes: 1  
> gateway.recover\_after\_time: 1m  
> gateway.expected\_nodes: 2

netstat -nltp command on all nodes machines give me:

> tcp6 0 0 :::9200 :::\* LISTEN 4753/java  
> tcp6 0 0 :::9300 :::\* LISTEN 4753/java

running curl command from the playframework machine does work:

> curl -XGET 127.0.0.11:9200/\_count?pretty -d '{ "query": {"match": {"topic.english": "hello"}}}'  
> {  
> "count" : 94,  
> "\_shards" : {  
> "total" : 107,  
> "successful" : 107,  
> "failed" : 0  
> }  
> }

I tried to replace 9300 with 9200, but it is also not working...

Any idea?

---

<div class="post-metadata">

### Author: ![AdaYang](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AdaYang](https://discuss.elastic.co/u/AdaYang)
#### Post date: [October 9, 2016, 5:03pm UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available-elastic-2-3-4/62399/2 "2016-10-09T17:03:27Z")

</div>

feel like it is not forming cluster. what's your cluster health status? :9200/\_cluster/health is green?

Did you set the clustername when you build the client? something like this:

Settings settings = Settings.settingsBuilder().put("[cluster.name](http://cluster.name)", clusterName).build();  
TransportClient transportClient = TransportClient.builder().settings(settings).build();  
for (String server : servers) {  
transportClient = transportClient.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(server), 9300));  
}

---

<div class="post-metadata">

### Author: ![Moshe\_Sucaz](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@Moshe\_Sucaz](https://discuss.elastic.co/u/Moshe_Sucaz)
#### Post date: [October 10, 2016, 5:20am UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available-elastic-2-3-4/62399/3 "2016-10-10T05:20:32Z")

</div>

> [@AdaYang](#):
>
> TransportClient

Thanks Ada  
Yes, that's exactly what I did and status is green.  
Still not working...

---

<div class="post-metadata">

### Author: ![Moshe\_Sucaz](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@Moshe\_Sucaz](https://discuss.elastic.co/u/Moshe_Sucaz)
#### Post date: [October 10, 2016, 6:52am UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available-elastic-2-3-4/62399/4 "2016-10-10T06:52:58Z")

</div>

Ada, when looking at it again I had a mistake where in the for loop I recreated TransportClient transportClient without the settings (which had the [cluster.name](http://cluster.name) in it). After copying your code problem solved! Thank you very much!!!

---

<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 5, 2017, 10:13pm UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available-elastic-2-3-4/62399/5 "2017-07-05T22:13:42Z")

</div>


