# Node Client Protocol

**URL:** <https://discuss.elastic.co/t/node-client-protocol/21013>\
**Category:** Elasticsearch\
**Created:** [December 1, 2014, 7:39pm UTC](https://discuss.elastic.co/t/node-client-protocol/21013 "2014-12-01T19:39:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phillip\_Simon](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@Phillip\_Simon](https://discuss.elastic.co/u/Phillip_Simon)\
**Post date:** [December 1, 2014, 7:39pm UTC](https://discuss.elastic.co/t/node-client-protocol/21013/1 "2014-12-01T19:39:09Z")

</div>

Hi,

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 com.priceline.argus.es.gds.PushGdsToES.main(PushGdsToES.java:38)

at com.priceline.argus.es.gds.GDSTimedTask.run(GDSTimedTask.java:58)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)

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

at org.elasticsearch.transport.netty.NettyTransport.doStart(  
NettyTransport.java:380)

at org.elasticsearch.common.component.AbstractLifecycleComponent.start(  
AbstractLifecycleComponent.java:85)

at org.elasticsearch.transport.TransportService.doStart(  
TransportService.java:92)

at org.elasticsearch.common.component.AbstractLifecycleComponent.start(  
AbstractLifecycleComponent.java:85)

at org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:229)

at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)

at com.priceline.argus.es.gds.ArgusESClientFactory.(  
ArgusESClientFactory.java:40)

... 4 more

Here is a snippet of my code:

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

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

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.

Thanks,

Phil

--  
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/db5de130-11a3-40ef-bd54-8e46cfd2e590%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/db5de130-11a3-40ef-bd54-8e46cfd2e590%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, 12:46am UTC](https://discuss.elastic.co/t/node-client-protocol/21013/2 "2017-07-06T00:46:45Z")

</div>

Closed on July 6, 2017, 12:46am UTC


