Hello!
As you can see there is an error when TransportClient tries to connect to your cluster. Do you use 0.19.10 version of ES library in your application ?
--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
Result of http://localhost:9200/_cluster/health :
{
cluster_name: "elasticsearch",
status: "green",
timed_out: false,
number_of_nodes: 1,
number_of_data_nodes: 1,
active_primary_shards: 2,
active_shards: 2,
relocating_shards: 0,
initializing_shards: 0,
unassigned_shards: 0
}
Here the log from TransportClient :
2012-10-17 16:12:10,355 [elasticsearch[Carolyn Parmenter][generic][T#3]] INFO org.elasticsearch.client.transport - [Carolyn Parmenter] failed to get local cluster state for [#transport#-1][inet[/10.0.2.113:9200]], disconnecting...
org.elasticsearch.transport.ReceiveTimeoutTransportException: [][inet[/10.0.2.113:9200]][cluster/state] request_id [24] timed out after [5001ms]
at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:347)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Here the log from the ES console :
[2012-10-17 16:07:23,401][INFO ][node ] [Charcoal] {0.19.10}[8732]: initializing ...
[2012-10-17 16:07:23,411][INFO ][plugins ] [Charcoal] loaded [], sites []
[2012-10-17 16:07:27,726][INFO ][node ] [Charcoal] {0.19.10}[8732]: initialized
[2012-10-17 16:07:27,727][INFO ][node ] [Charcoal] {0.19.10}[8732]: starting ...
[2012-10-17 16:07:28,006][INFO ][transport ] [Charcoal] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/10.0.2.113:9300]}
[2012-10-17 16:07:31,224][INFO ][cluster.service ] [Charcoal] new_master [Charcoal][U6xpMVUERYmc0s0ZZahXCw][inet[/10.0.2.113:9300]], reason: zen-disco-join
(elected_as_master)
[2012-10-17 16:07:31,272][INFO ][discovery ] [Charcoal] elasticsearch/U6xpMVUERYmc0s0ZZahXCw
[2012-10-17 16:07:31,422][INFO ][http ] [Charcoal] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/10.0.2.113:9200]}
[2012-10-17 16:07:31,423][INFO ][node ] [Charcoal] {0.19.10}[8732]: started
[2012-10-17 16:07:32,590][INFO ][gateway ] [Charcoal] recovered [2] indices into cluster_state
[2012-10-17 16:09:50,263][WARN ][http.netty ] [Charcoal] Caught exception while handling client http traffic, closing connection [id: 0x7e2b5f3a, /10.0
.2.113:53013 => /10.0.2.113:9200]
java.lang.IllegalArgumentException: empty text
at org.elasticsearch.common.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:97)
at org.elasticsearch.common.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62)
at org.elasticsearch.common.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:76)
at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:189)
at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101)
at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:502)
at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:437)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
[2012-10-17 16:09:50,268][WARN ][http.netty ] [Charcoal] Caught exception while handling client http traffic, closing connection [id: 0x7e2b5f3a, /10.0
.2.113:53013 :> /10.0.2.113:9200]
java.lang.IllegalArgumentException: empty text
--