# Getting org.elasticsearch.hadoop.rest.EsHadoopRemoteException: too\_many\_clauses: too\_many\_clauses: maxClauseCount is set to 1024\\n

**URL:** https://discuss.elastic.co/t/getting-org-elasticsearch-hadoop-rest-eshadoopremoteexception-too-many-clauses-too-many-clauses-maxclausecount-is-set-to-1024-n/275580
**Category:** Elasticsearch
**Tags:** es-hadoop
**Created:** [June 10, 2021, 1:37pm UTC](https://discuss.elastic.co/t/getting-org-elasticsearch-hadoop-rest-eshadoopremoteexception-too-many-clauses-too-many-clauses-maxclausecount-is-set-to-1024-n/275580 "2021-06-10T13:37:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chilaka\_Ramakrishna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chilaka_ramakrishna/32/89477_2.png) [@Chilaka\_Ramakrishna](https://discuss.elastic.co/u/Chilaka_Ramakrishna)
#### Post date: [June 10, 2021, 1:37pm UTC](https://discuss.elastic.co/t/getting-org-elasticsearch-hadoop-rest-eshadoopremoteexception-too-many-clauses-too-many-clauses-maxclausecount-is-set-to-1024-n/275580/1 "2021-06-10T13:37:43Z")

</div>

Getting the following error while running spark-sql for a simple in query

```auto
org.elasticsearch.hadoop.rest.EsHadoopRemoteException: too_many_clauses: too_many_clauses: maxClauseCount is set to 1024\n

```

---

<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 8, 2021, 1:38pm UTC](https://discuss.elastic.co/t/getting-org-elasticsearch-hadoop-rest-eshadoopremoteexception-too-many-clauses-too-many-clauses-maxclausecount-is-set-to-1024-n/275580/2 "2021-07-08T13:38:44Z")

</div>

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