Is there some change happended in elastic java api in 2.* version ?
I was trying the below code in 1.7 and was working fine
Settings settings = ImmutableSettings.settingsBuilder().put("cluster.name","navneet").build();
TransportClient client = new TransportClient(settings).addTransportAddress(new InetSocketTransportAddress("localhost", 9300));
But in elastic 2.1 it is throwing an error saying that :-
I think issue with the latest jars, any suggestion ?