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.