No Node available exception while connection to elasticsearch cluster

(Bharvi Dixit-2) #1


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. (binded on eth0) (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("",
TransportClient tmp = new TransportClient(s);
InetSocketTransportAddress("", 9300)); // have also tried
client = tmp;

Please let me know what i am doing wrong.

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
To view this discussion on the web visit
For more options, visit

(system) #2