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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/db5de130-11a3-40ef-bd54-8e46cfd2e590%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.