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.chil...@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+unsubscr...@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+unsubscr...@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.

Reply via email to