[URGENT] - ES 1.7 testing with local transport client
I am trying to create local transport client using Scala 2.9.1 and ElasticSearch 1.7 for testing , getting error
org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available:
val settings = ImmutableSettings.settingsBuilder().put("node.local",true).put("client.transport.sniff", false) .put("cluster.name", "test-cluster").build();
val transportClient = new TransportClient(settings);
transportClient.addTransportAddress(new LocalTransportAddress("1")) return transportClient;
This is working fine with Node client however i would like to use transport client for testing. Any help???