Node Client Protocol


I am trying to use the ES node based client instead of transport and I keep
getting this error (also, I'm coding in JAVA):

Exception in thread "Timer-0" java.lang.ExceptionInInitializerError



at java.util.TimerThread.mainLoop(


Caused by: org.elasticsearch.transport.BindTransportException: Failed to
bind to [9300-9400]

at org.elasticsearch.transport.netty.NettyTransport.doStart(

at org.elasticsearch.common.component.AbstractLifecycleComponent.start(

at org.elasticsearch.transport.TransportService.doStart(

at org.elasticsearch.common.component.AbstractLifecycleComponent.start(

at org.elasticsearch.node.internal.InternalNode.start(

at org.elasticsearch.node.NodeBuilder.node(


... 4 more

Here is a snippet of my code:

static Settings settings = ImmutableSettings.settingsBuilder().put(
"","hostName").put("", "clusterName").build();

private static Node node = nodeBuilder().settings(settings).client(true

private static Client esClient = null;

public static Client getClient() {

if (esClient == null) { esClient = node.client(); }

return esClient;


I am thinking that the only thing I'm missing is the port number when I
create the settings but I could be wrong. When I use the transport
protocol, everything works fine but I am also specifying the port number
when I use that protocol.



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