It sounds like you are mixing elasticsearch versions (client and node) or JVM 
versions.

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 28 mai 2014 à 10:34, Chetana <ambha.car...@gmail.com> a écrit :

ES log shows this warning message, 'transport.netty- Message not fully read 
(request) for [0] and action [], resetting' 
> On Wednesday, May 28, 2014 12:07:39 PM UTC+5:30, Chetana wrote:
> I have ugraded ES from 0.90.2 to ES 1.1.1 recently. I am able to get the 
> Tranpsort client of ES 1.1.1 and create mapping on Windows 2010. But I get a 
> 'No node available' exception on Ubantu 12.x
>  
> Here is the code I use for connecting to ES
>  
> ImmutableSettings.Builder settingsBuilder = 
> ImmutableSettings.settingsBuilder();
>  
> // because default cluster name used
>   //settingsBuilder.put("cluster.name", "elasticsearch");
>  
>   TransportClient client = new TransportClient(settingsBuilder.build());
>   client.addTransportAddress(new InetSocketTransportAddress(
>           "localhost", 
>           9300));
>   
>    client.admin().cluster().prepareHealth()
>          .setWaitForYellowStatus() .setTimeout(TimeValue.timeValueMinutes(1)) 
> .execute() .actionGet();
>  
> CreateIndexRequestBuilder builder = 
> client.admin().indices().prepareCreate("sample").setSettings(settings);
>   client.admin().indices().create(builder.request()).get();
>   PutMappingRequestBuilder putBuilder = 
> client.admin().indices().preparePutMapping("sample");
>   putBuilder.setType("sample");
>   
>   XContentBuilder parentMapping = 
> XContentFactory.jsonBuilder().startObject().startObject("sample").field("include_in_all",false).endObject().endObject();
>   
>   putBuilder.setSource(parentMapping);
>   client.admin().indices().putMapping(putBuilder.request()).get();
>  
> Am I missing any setting? Please suggest how to trobleshoot this issue
>  
> Thanks

-- 
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/228ae7a0-d688-443f-88c2-127b708810dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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/FA4BBE61-B6B5-442A-9D60-1A7FC1DAB80C%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to