Brian,

This is no different from what I have. I googled the problem, and I guess 
this may come from the fact that ES js using a different java version. I 
have added the es 0.90.0.jar to java from the es installation folder. I 
have no clue what I am missing.

On Wednesday, January 22, 2014 2:02:57 PM UTC-5, InquiringMind wrote:
>
> ImmutableSettings.Builder settingsBuilder = 
> ImmutableSettings.settingsBuilder();
> settingsBuilder.put("cluster.name", clusterName);
> TransportClient client = new TransportClient(settingsBuilder.build());
>
> for (String host : hostNames)
> {
>   InetSocketTransportAddress server_address = new 
> InetSocketTransportAddress(
>       host, portTransport);
>
>   client.addTransportAddress(server_address);
> }
>
> Brian
>

-- 
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/ebaf9d9d-808a-4fc3-a94f-4f7c5564c1dd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to