# Java API - how to get the Cluster Settings on ES 6.0

**URL:** <https://discuss.elastic.co/t/java-api-how-to-get-the-cluster-settings-on-es-6-0/180877>\
**Category:** Elasticsearch\
**Created:** [May 13, 2019, 8:15pm UTC](https://discuss.elastic.co/t/java-api-how-to-get-the-cluster-settings-on-es-6-0/180877 "2019-05-13T20:15:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thales\_Valias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thales_valias/32/40630_2.png) [@Thales\_Valias](https://discuss.elastic.co/u/Thales_Valias)\
**Post date:** [May 13, 2019, 8:15pm UTC](https://discuss.elastic.co/t/java-api-how-to-get-the-cluster-settings-on-es-6-0/180877/1 "2019-05-13T20:15:54Z")

</div>

Hi there.

I'm implementing on my Java application a feature where it will be possible the admin to check and update cluster settings like [cluster.routing.allocation.disk.watermark.flood\_stage](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/disk-allocator.html#disk-allocator) dynamically.

The Update part was easy through the [ClusterUpdateSettingsRequest](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.3/java-rest-high-cluster-put-settings.html). But I'm struggling to get the current cluster settings in order to display them.

I'd like a [GET /\_cluster/settings](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/cluster-update-settings.html) equivalent. I know there's the fancy [ClusterGetSettingsRequest](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.4/java-rest-high-cluster-get-settings.html), but it's available from ES 6.4 version. I can't upgrade my ES right now, currently using 6.0.

So the question is: is there any way to get the cluster settings on my Java API through ES 6.0 TransportClient?

I've been trying and search different approaches without success.  
Thanks in advance.

---

<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:** [June 10, 2019, 8:15pm UTC](https://discuss.elastic.co/t/java-api-how-to-get-the-cluster-settings-on-es-6-0/180877/2 "2019-06-10T20:15:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
