try {
Settings settings = Settings.builder()
.put("cluster.name", "diagnoa1")
.build();
client = new PreBuiltTransportClient(settings)
.addTransportAddress(new TransportAddress(InetAddress.getByName("10.0.0.41"), 9300));
} catch (UnknownHostException e) {
e.printStackTrace();
}
Settings settings = Settings.builder()
.put("cluster.name", "diagnoa1")
.build();
client = new PreBuiltTransportClient(settings)
.addTransportAddress(new TransportAddress(InetAddress.getByName("10.0.0.41"), 9300));
} catch (UnknownHostException e) {
e.printStackTrace();
}
1 个回复
这个冬天不太Cool - 90后
赞同来自: