In the transport client settings builder, I'm currently using node.name along with hosts. My settings builder looks like,
Settings.builder().put("cluster.name", "abc").put("node.name", "node1").put("client.transport.sniff", true);
here ^, is node.name a mandatory field? I have seen some examples which includes node.name and some examples which doesn't include. Its not very clear from documentation. What happens when we leave node.name in the settings ?