WARN netty:620 - [node-1] exception caught on transport layer


#1

Hello. I wonder if someone could help me with this error.
I am trying to get cassanda + elasticsearch + usergrid up and running.

My cassandra is healthy and when I do a "curl -v localhost:9200" I get a nice reply:

{
"name" : "node-1",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.2.0",
"build_hash" : "8ff36d139e16f8720f2947ef62c8167a888992fe",
"build_timestamp" : "2016-01-27T13:32:39Z",
"build_snapshot" : false,
"lucene_version" : "5.4.1"
},
"tagline" : "You Know, for Search"
}

  • Connection #0 to host localhost left intact

However, when I start tomcat7 I see this same error recurring all the time, and I cant seem to be able to fix it:

11:26:30,935 WARN netty:620 - [node-1] exception caught on transport layer [[id: 0xca4c6d3d]], closing connection
java.net.UnknownHostException: localhost:9200
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.elasticsearch.common.netty.channel.socket.oio.OioClientSocketPipelineSink.connect(OioClientSocketPipelineSink.java:109)
at org.elasticsearch.common.netty.channel.socket.oio.OioClientSocketPipelineSink.eventSunk(OioClientSocketPipelineSink.java:69)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:574)
at org.elasticsearch.common.netty.channel.Channels.connect(Channels.java:634)
at org.elasticsearch.common.netty.channel.AbstractChannel.connect(AbstractChannel.java:207)
at org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229)
at org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)
at org.elasticsearch.transport.netty.NettyTransport.connectToChannelsLight(NettyTransport.java:769)
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:737)
at org.elasticsearch.transport.netty.NettyTransport.connectToNodeLight(NettyTransport.java:709)
at org.elasticsearch.transport.TransportService.connectToNodeLight(TransportService.java:154)
at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing$3.run(UnicastZenPing.java:376)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Tomcat wont start up, and I wonder if it is because of this error.


(Mark Walkom) #2

You're running ES in Tomcat? That's not a good idea.

Also do you have localhost:9200 somewhere in your config?


#3

Hey!

On tomcat I am running the usergrid .WAR.
UserGrid has a deploymen configuration file where reference is made to ES like this:

elasticsearch.cluster_name=elasticsearch
elasticsearch.hosts=localhost:9200


(Magnus Bäck) #4

Judging by the error message elasticsearch.hosts should contain hostnames, not hostname:port tuples.


(system) #5