Re: issue with elastic search TransportClient of java API

2014-09-26 Thread David Pilato
Yeah. Still that's super strange it works for a single call. -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 26 sept. 2014 à 22:49, Ivan Brusic a écrit : In general, newer client libraries should not be used with older clusters. Most of the version checking happens on th

Re: issue with elastic search TransportClient of java API

2014-09-26 Thread Ivan Brusic
In general, newer client libraries should not be used with older clusters. Most of the version checking happens on the server side and the older code does not know about the newer client. -- Ivan On Fri, Sep 26, 2014 at 9:54 AM, David Pilato wrote: > I have no idea. Could be an issue. > > Any

Re: issue with elastic search TransportClient of java API

2014-09-26 Thread David Pilato
I have no idea. Could be an issue. Any chance you could create a small test project which reproduce it and share it on github? --  David Pilato | Technical Advocate | elasticsearch.com david.pil...@elasticsearch.com @dadoonet | @elasticsearchfr | @scrutmydocs Le 26 septembre 2014 à 09:40:15,

Re: issue with elastic search TransportClient of java API

2014-09-26 Thread Vijay Tiwary
Hi David, I have identified the problem. Actually the transport client that i was creating was like this: Settings settings = ImmutableSettings.settingsBuilder().put("client.transport.sniff", true).build(); client = new TransportClient(settings).addTransportAddress(new InetSocketTransportAdd

Re: issue with elastic search TransportClient of java API

2014-09-26 Thread Vijay Tiwary
I am using elastic search 1.2.1 and java client for the same is 1.3.2 On Friday, September 26, 2014 12:24:24 PM UTC+5:30, David Pilato wrote: > > Just checking. Which version you elasticsearch cluster is? > > > -- > David ;-) > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs > > > Le 26 sept

Re: issue with elastic search TransportClient of java API

2014-09-25 Thread David Pilato
Just checking. Which version you elasticsearch cluster is? -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 26 sept. 2014 à 08:28, Vijay Tiwary a écrit : Blow is the junit test class: public class BenchMarkES { private static final Logger LOG = LoggerFa

Re: issue with elastic search TransportClient of java API

2014-09-25 Thread Vijay Tiwary
Blow is the junit test class: public class BenchMarkES { private static final Logger LOG = LoggerFactory.getLogger(BenchMarkES.class); private static TransportClient client = null; @Before public void setUp() { Settings settings = ImmutableSettings.settingsBuilder().build(); client = new Tr

Re: issue with elastic search TransportClient of java API

2014-09-25 Thread David Pilato
How your Java code looks like? What was your curl query? -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 26 sept. 2014 à 07:34, Vijay Tiwary a écrit : I am having a instance of "TransportClient" which is singleton in my web application. In one of the flow I have to qu

issue with elastic search TransportClient of java API

2014-09-25 Thread Vijay Tiwary
I am having a instance of "TransportClient" which is singleton in my web application. In one of the flow I have to query elastic search twice one after the other. However, first call to elastic search cluster is working and the other one is failing with the following exception: No valid miss