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/0755547c-ca4e-43dd-a09b-c778a4bb4687%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.