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

HI,

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

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

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
Balaji

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