# No Node available exception while connection to elasticsearch cluster

**URL:** <https://discuss.elastic.co/t/no-node-available-exception-while-connection-to-elasticsearch-cluster/15719>\
**Category:** Elasticsearch\
**Created:** [February 11, 2014, 6:18am UTC](https://discuss.elastic.co/t/no-node-available-exception-while-connection-to-elasticsearch-cluster/15719 "2014-02-11T06:18:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharvi\_Dixit\_2](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@Bharvi\_Dixit\_2](https://discuss.elastic.co/u/Bharvi_Dixit_2)\
**Post date:** [February 11, 2014, 6:18am UTC](https://discuss.elastic.co/t/no-node-available-exception-while-connection-to-elasticsearch-cluster/15719/1 "2014-02-11T06:18:07Z")

</div>

Hi,

I am using a three node cluster with two ip address on each server. I want  
http and transport addresses to be separated to avoid network congestion.

_http.host:_ 192.168.1.113 (binded on eth0)  
_transport.host:_ 192.168.10.116 (binded on eth1)

and similar for all other nodes.

The nodes are connecting to each other perfectly, and i can create index,  
and ad data to it by using curl command.

But when create connection through java program the i get a no node  
available exception.

I am using following code for creating connection.

Settings s = ImmutableSettings.settingsBuilder().put("cluster.name",  
"orkashcluster\_es").build();  
TransportClient tmp = new TransportClient(s);  
tmp.addTransportAddress(new  
InetSocketTransportAddress("192.168.10.116", 9300)); // have also tried  
with 192.168.1.116  
client = tmp;

Please let me know what i am doing wrong.

Regards,  
Bharvi Dixit

--  
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/ef0970a3-a9b1-4cfd-9895-9dbe05262b13%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ef0970a3-a9b1-4cfd-9895-9dbe05262b13%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:51am UTC](https://discuss.elastic.co/t/no-node-available-exception-while-connection-to-elasticsearch-cluster/15719/2 "2017-07-06T01:51:14Z")

</div>


