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

**URL:** <https://discuss.elastic.co/t/prevent-to-perform-operations-in-the-data-nodes-when-configured-the-client-nodei-e-load-balancer/57921>\
**Category:** Elasticsearch\
**Created:** [August 12, 2016, 12:40pm UTC](https://discuss.elastic.co/t/prevent-to-perform-operations-in-the-data-nodes-when-configured-the-client-nodei-e-load-balancer/57921 "2016-08-12T12:40:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balubollam](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@balubollam](https://discuss.elastic.co/u/balubollam)\
**Post date:** [August 12, 2016, 12:40pm UTC](https://discuss.elastic.co/t/prevent-to-perform-operations-in-the-data-nodes-when-configured-the-client-nodei-e-load-balancer/57921/1 "2016-08-12T12:40:01Z")

</div>

HI,

We have a Client Node i.e LoadBalancer,we are pushing data using java TransportClient or Client to the loadbalancer client [node.in](http://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

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [August 12, 2016, 4:11pm UTC](https://discuss.elastic.co/t/prevent-to-perform-operations-in-the-data-nodes-when-configured-the-client-nodei-e-load-balancer/57921/2 "2016-08-12T16:11:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:28pm UTC](https://discuss.elastic.co/t/prevent-to-perform-operations-in-the-data-nodes-when-configured-the-client-nodei-e-load-balancer/57921/3 "2017-07-05T22:28:01Z")

</div>

Closed on July 5, 2017, 10:28pm UTC


