Issue with Elasticsearch java version and Transport Client

I just wondered how do you find out the exact version of Java your
Elasticsearch is using. I have checked my IDE running on

1.7.0_21 and my JAVA_HOME is also 1.7.0_21. I've been told Java versions,
must match exactly!

The issue is occurring when I am trying to use a transport client. I build
as below:
val settings = ImmutableSettings.builder().put("cluster.name",
"elasticsearch").build()

val client = new TransportClient(settings).addTransportAddress(new
InetSocketTransportAddress("localhost", 9300) )

Then I attempt to retrieve suggestions as follows:
val INDEX_NAME = "companies-1391214959789"

val count = 10

val builder = client.prepareSuggest("companies-1391214959789").addSuggestion
(new CompletionSuggestionBuilder(INDEX_NAME).field("name_suggest").text(
"zynga").size(count) )

val suggestResponse = builder.execute().actionGet()

Unfortunately I get the following error, where a collegue said it was due
to ES using the wrong java version

0 [ScalaTest-run] INFO org.elasticsearch.plugins - [Fetter, Philip]
loaded [], sites []
560 [elasticsearch[Fetter, Philip][transport_client_worker][T#4]{New I/O
worker #4}] WARN org.elasticsearch.transport.netty - [Fetter, Philip]
Message not fully read (response) for [1] handler
org.elasticsearch.action.TransportActionNodeProxy$1@5ebf6b15, error
[false], resetting

Also on another note, surely there is default settings with regards to
building a transport client, such that you shouldn't have to set:

val settings = ImmutableSettings.builder().put("cluster.name",
"elasticsearch").build()

Thanks for your help!

--
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/540e0f44-4c9c-4abc-b5dc-4a3182045a91%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Are elasticsearch nodes and client on the same version?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 10 février 2014 at 18:13:24, redrubia (ruby.childs1@gmail.com) a écrit:

I just wondered how do you find out the exact version of Java your Elasticsearch is using. I have checked my IDE running on
1.7.0_21 and my JAVA_HOME is also 1.7.0_21. I've been told Java versions, must match exactly!

The issue is occurring when I am trying to use a transport client. I build as below:

val settings = ImmutableSettings.builder().put("cluster.name", "elasticsearch").build()

val client = new TransportClient(settings).addTransportAddress(new InetSocketTransportAddress("localhost", 9300) )

Then I attempt to retrieve suggestions as follows:

val INDEX_NAME = "companies-1391214959789"

val count = 10

val builder = client.prepareSuggest("companies-1391214959789").addSuggestion(new CompletionSuggestionBuilder(INDEX_NAME).field("name_suggest").text("zynga").size(count) )

val suggestResponse = builder.execute().actionGet()

Unfortunately I get the following error, where a collegue said it was due to ES using the wrong java version

0 [ScalaTest-run] INFO org.elasticsearch.plugins - [Fetter, Philip] loaded [], sites []
560 [elasticsearch[Fetter, Philip][transport_client_worker][T#4]{New I/O worker #4}] WARN org.elasticsearch.transport.netty - [Fetter, Philip] Message not fully read (response) for [1] handler org.elasticsearch.action.TransportActionNodeProxy$1@5ebf6b15, error [false], resetting

Also on another note, surely there is default settings with regards to building a transport client, such that you shouldn't have to set:

val settings = ImmutableSettings.builder().put("cluster.name", "elasticsearch").build()

Thanks for your help!

--
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/540e0f44-4c9c-4abc-b5dc-4a3182045a91%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/etPan.52f909e3.b03e0c6.17289%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/groups/opt_out.

How'd you find out the versions? I've looked in status and no luck

On Monday, 10 February 2014 12:18:27 UTC-5, David Pilato wrote:

Are elasticsearch nodes and client on the same version?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr

Le 10 février 2014 at 18:13:24, redrubia (ruby.c...@gmail.com<javascript:>)
a écrit:

I just wondered how do you find out the exact version of Java your
Elasticsearch is using. I have checked my IDE running on

1.7.0_21 and my JAVA_HOME is also 1.7.0_21. I've been told Java versions,
must match exactly!

The issue is occurring when I am trying to use a transport client. I build
as below:
val settings = ImmutableSettings.builder().put("cluster.name",
"elasticsearch").build()

val client = new TransportClient(settings).addTransportAddress(new
InetSocketTransportAddress("localhost", 9300) )

Then I attempt to retrieve suggestions as follows:
val INDEX_NAME = "companies-1391214959789"

val count = 10

val builder = client.prepareSuggest("companies-1391214959789").
addSuggestion(new CompletionSuggestionBuilder(INDEX_NAME).field(
"name_suggest").text("zynga").size(count) )

val suggestResponse = builder.execute().actionGet()

Unfortunately I get the following error, where a collegue said it was due
to ES using the wrong java version

0 [ScalaTest-run] INFO org.elasticsearch.plugins - [Fetter, Philip]
loaded , sites
560 [elasticsearch[Fetter, Philip][transport_client_worker][T#4]{New
I/O worker #4}] WARN org.elasticsearch.transport.netty - [Fetter, Philip]
Message not fully read (response) for [1] handler
org.elasticsearch.action.TransportActionNodeProxy$1@5ebf6b15, error
[false], resetting

Also on another note, surely there is default settings with regards to
building a transport client, such that you shouldn't have to set:

val settings = ImmutableSettings.builder().put("cluster.name",
"elasticsearch").build()

Thanks for your help!

--
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/540e0f44-4c9c-4abc-b5dc-4a3182045a91%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/43166318-c09b-430d-a676-acc4bada0370%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

How'd you find this out? I looked at node status with no luck!

--
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/ccf6343e-4921-48b3-82d6-2c98b2e09b83%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

To find out Java versions, do the following.

On server, execute curl '0:9200/_cat/nodes?h=j' or curl '0:9200/_nodes?info'

On client, add System.getProperty("java.version") to your code and print it
out.

Jörg

--
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/CAKdsXoHfzJNcFbzLk0%3DcGdMcr1q_C_GuuA%2BLSrOuFk1aJx%3Dg_A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

curl localhost:9200

Will give you elasticsearch node version

About the transport client, I guess you know which JAR you have imported in your project, right?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 10 février 2014 at 18:22:17, redrubia (ruby.childs1@gmail.com) a écrit:

How'd you find out the versions? I've looked in status and no luck

On Monday, 10 February 2014 12:18:27 UTC-5, David Pilato wrote:
Are elasticsearch nodes and client on the same version?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 10 février 2014 at 18:13:24, redrubia (ruby.c...@gmail.com) a écrit:

I just wondered how do you find out the exact version of Java your Elasticsearch is using. I have checked my IDE running on
1.7.0_21 and my JAVA_HOME is also 1.7.0_21. I've been told Java versions, must match exactly!

The issue is occurring when I am trying to use a transport client. I build as below:

val settings = ImmutableSettings.builder().put("cluster.name", "elasticsearch").build()

val client = new TransportClient(settings).addTransportAddress(new InetSocketTransportAddress("localhost", 9300) )

Then I attempt to retrieve suggestions as follows:

val INDEX_NAME = "companies-1391214959789"

val count = 10

val builder = client.prepareSuggest("companies-1391214959789").addSuggestion(new CompletionSuggestionBuilder(INDEX_NAME).field("name_suggest").text("zynga").size(count) )

val suggestResponse = builder.execute().actionGet()

Unfortunately I get the following error, where a collegue said it was due to ES using the wrong java version

0 [ScalaTest-run] INFO org.elasticsearch.plugins - [Fetter, Philip] loaded [], sites []
560 [elasticsearch[Fetter, Philip][transport_client_worker][T#4]{New I/O worker #4}] WARN org.elasticsearch.transport.netty - [Fetter, Philip] Message not fully read (response) for [1] handler org.elasticsearch.action.TransportActionNodeProxy$1@5ebf6b15, error [false], resetting

Also on another note, surely there is default settings with regards to building a transport client, such that you shouldn't have to set:

val settings = ImmutableSettings.builder().put("cluster.name", "elasticsearch").build()

Thanks for your help!

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/540e0f44-4c9c-4abc-b5dc-4a3182045a91%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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/43166318-c09b-430d-a676-acc4bada0370%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/etPan.52f91664.2ca88611.17289%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/groups/opt_out.

Jörg,

Thanks for the tip! I just updated my client code and it works great! Will
be a help during future problem determination!

Brian

On Monday, February 10, 2014 1:07:24 PM UTC-5, Jörg Prante wrote:

To find out Java versions, do the following.

On server, execute curl '0:9200/_cat/nodes?h=j' or curl
'0:9200/_nodes?info'

On client, add System.getProperty("java.version") to your code and print
it out.

Jörg

--
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/806f1ac7-f3b8-4430-9d1a-d5535d6d3fe8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thank you! This helped a lot. Seems my ES install via Boxen was 0.90.3, but
I was importing 0.90.5 into the project

--
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/c2988ab1-746f-4c45-a0db-720ad9ee4acc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

In recent versions, it should be compatible but those two versions are too old!
You should update both to 0.90.11

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 10 février 2014 at 21:05:54, redrubia (ruby.childs1@gmail.com) a écrit:

Thank you! This helped a lot. Seems my ES install via Boxen was 0.90.3, but I was importing 0.90.5 into the project

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/c2988ab1-746f-4c45-a0db-720ad9ee4acc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/etPan.52f934c2.7c3dbd3d.17289%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/groups/opt_out.

Yeah, unfortunately work constraints mean versioning must be the same. We
are upgrading soon though :slight_smile:

On Monday, 10 February 2014 15:21:22 UTC-5, David Pilato wrote:

In recent versions, it should be compatible but those two versions are too
old!
You should update both to 0.90.11

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr

Le 10 février 2014 at 21:05:54, redrubia (ruby.c...@gmail.com<javascript:>)
a écrit:

Thank you! This helped a lot. Seems my ES install via Boxen was 0.90.3,
but I was importing 0.90.5 into the project

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/c2988ab1-746f-4c45-a0db-720ad9ee4acc%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/667f5a89-f062-4f35-ba6f-b5f14d59234e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.