No node available

I've just tried the first example with java, following
http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/client.html
and
http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/index_.html.
When I ran this sample, got an NoNodeAvailableException.

The code and the exception are in the following:

https://lh6.googleusercontent.com/-8N7TcjYn8T4/U6ggVcQI4PI/AAAAAAAAAG8/dyarDdKo2hQ/s1600/1.PNG

https://lh6.googleusercontent.com/-8E0mGaN2Jh4/U6ggmlTfEYI/AAAAAAAAAHE/X0ZsVP1xYHg/s1600/2.PNG

I've searched some posted questions which are also like mine and followed
the suggestions to rectify my codes. But it didn't work.

Does anybody have an idea? Any pointer would be appreciated!

Thanks in advance!

--
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/bb5ac8e6-2684-4ac5-9253-554e3a5f4a8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

The log file has this content:

[2014-06-23 16:07:32,313][WARN ][transport.netty ] [Boost]
exception caught on transport layer [[id: 0x0d18c137, /127.0.0.1:55654 :>
/127.0.0.1:9300]], closing connection
java.io.StreamCorruptedException: invalid internal transport message format
at
org.elasticsearch.transport.netty.SizeHeaderFrameDecoder.decode(SizeHeaderFrameDecoder.java:27)
at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425)
at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at
org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
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:88)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

在 2014年6月23日星期一UTC+2下午2时47分52秒,Aaliyah写道:

I've just tried the first example with java, following
Elasticsearch Platform — Find real-time answers at scale | Elastic
and
Elasticsearch Platform — Find real-time answers at scale | Elastic.
When I ran this sample, got an NoNodeAvailableException.

The code and the exception are in the following:

https://lh6.googleusercontent.com/-8N7TcjYn8T4/U6ggVcQI4PI/AAAAAAAAAG8/dyarDdKo2hQ/s1600/1.PNG

https://lh6.googleusercontent.com/-8E0mGaN2Jh4/U6ggmlTfEYI/AAAAAAAAAHE/X0ZsVP1xYHg/s1600/2.PNG

I've searched some posted questions which are also like mine and followed
the suggestions to rectify my codes. But it didn't work.

Does anybody have an idea? Any pointer would be appreciated!

Thanks in advance!

--
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/e5abfc69-3849-462e-aac2-500b4a8b29d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Are you using the same version of the Elasticsearch jar with respect to the
server? Which version are you using? Do you have any added jar dependencies
to your project such as netty or Lucene?

--
Ivan

On Mon, Jun 23, 2014 at 7:13 AM, Aaliyah zhangqi1221@gmail.com wrote:

The log file has this content:

[2014-06-23 16:07:32,313][WARN ][transport.netty ] [Boost]
exception caught on transport layer [[id: 0x0d18c137, /127.0.0.1:55654 :>
/127.0.0.1:9300]], closing connection
java.io.StreamCorruptedException: invalid internal transport message format
at
org.elasticsearch.transport.netty.SizeHeaderFrameDecoder.decode(SizeHeaderFrameDecoder.java:27)
at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425)
at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at
org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
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:88)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

在 2014年6月23日星期一UTC+2下午2时47分52秒,Aaliyah写道:

I've just tried the first example with java, following http://www.
Elasticsearch Platform — Find real-time answers at scale | Elastic
current/client.html and Elasticsearch Platform — Find real-time answers at scale | Elastic
en/elasticsearch/client/java-api/current/index_.html. When I ran this
sample, got an NoNodeAvailableException.

The code and the exception are in the following:

https://lh6.googleusercontent.com/-8N7TcjYn8T4/U6ggVcQI4PI/AAAAAAAAAG8/dyarDdKo2hQ/s1600/1.PNG

https://lh6.googleusercontent.com/-8E0mGaN2Jh4/U6ggmlTfEYI/AAAAAAAAAHE/X0ZsVP1xYHg/s1600/2.PNG

I've searched some posted questions which are also like mine and followed
the suggestions to rectify my codes. But it didn't work.

Does anybody have an idea? Any pointer would be appreciated!

Thanks in advance!

--
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/e5abfc69-3849-462e-aac2-500b4a8b29d4%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e5abfc69-3849-462e-aac2-500b4a8b29d4%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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/CALY%3DcQDji_RhphTBT2QGAbgmZ974utCTHKscaszJAdibxbEdpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

I'm using:
Titan 0.4.2
Tinkerpop 0.2.4
Cassandra 2.0.7
Elasticsearch 1.2.1

I did not add netty and lucene dependencies to my project indeed. But after
I've done that, still got the same problem.

https://lh6.googleusercontent.com/-BkWBCDrK89k/U6ifRxgOBZI/AAAAAAAAAHU/Yw-A2mDZM0A/s1600/4.PNG

In fact, I added lucene-core of version 4.4.0 which is included in the lib
folder of titan 0.4.2. But the problem was still there and there's another
version 4.8.1 in the lib folder of elasticsearch 1.2.1. Then I tried the
latter again. As you see, the same problem.

Earlier I also tried elasticsearch 0.90.3 which is said to be a compitable
version with titan 0.4.2. It didn't work.

Am Montag, 23. Juni 2014 16:51:37 UTC+2 schrieb Ivan Brusic:

Are you using the same version of the Elasticsearch jar with respect to
the server? Which version are you using? Do you have any added jar
dependencies to your project such as netty or Lucene?

--
Ivan

On Mon, Jun 23, 2014 at 7:13 AM, Aaliyah <zhang...@gmail.com <javascript:>

wrote:

The log file has this content:

[2014-06-23 16:07:32,313][WARN ][transport.netty ] [Boost]
exception caught on transport layer [[id: 0x0d18c137, /127.0.0.1:55654
:> /127.0.0.1:9300]], closing connection
java.io.StreamCorruptedException: invalid internal transport message
format
at
org.elasticsearch.transport.netty.SizeHeaderFrameDecoder.decode(SizeHeaderFrameDecoder.java:27)
at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425)
at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at
org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
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:88)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

在 2014年6月23日星期一UTC+2下午2时47分52秒,Aaliyah写道:

I've just tried the first example with java, following http://www.
Elasticsearch Platform — Find real-time answers at scale | Elastic
current/client.html and Elasticsearch Platform — Find real-time answers at scale | Elastic
en/elasticsearch/client/java-api/current/index_.html. When I ran this
sample, got an NoNodeAvailableException.

The code and the exception are in the following:

https://lh6.googleusercontent.com/-8N7TcjYn8T4/U6ggVcQI4PI/AAAAAAAAAG8/dyarDdKo2hQ/s1600/1.PNG

https://lh6.googleusercontent.com/-8E0mGaN2Jh4/U6ggmlTfEYI/AAAAAAAAAHE/X0ZsVP1xYHg/s1600/2.PNG

I've searched some posted questions which are also like mine and
followed the suggestions to rectify my codes. But it didn't work.

Does anybody have an idea? Any pointer would be appreciated!

Thanks in advance!

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e5abfc69-3849-462e-aac2-500b4a8b29d4%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e5abfc69-3849-462e-aac2-500b4a8b29d4%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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/2826e906-74bc-4105-9455-94172e722fe0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.