Prevent to perform operations in the data nodes,when configured the client nodei.e Load balancer


We have a Client Node i.e LoadBalancer,we are pushing data using java TransportClient or Client to the loadbalancer client the following way

Client client = TransportClient.builder().build()
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("ClientHost"), 9300))

But pushing data to the data nodes using java TransportClient Or client also working. SO anyone please help me out how to prevent pushing data to the data node using Java API when the client node is added to that cluster

Thanks and regards

I'm not sure I understand? Are you trying to limit which hosts can write to the cluster?