You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@drill.apache.org by Anupam Gupta <an...@testingxperts.com> on 2025/12/16 10:34:42 UTC

Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Hello Apache Drill Support Team,
We are currently working with Apache Drill to fetch millions to billions of records. To support this workload, we have configured multiple Drill nodes and are executing queries in distributed mode.
However, we are observing that only a single fragment appears to be in use at a time, and the query does not execute as expected. During execution, the Drill UI becomes unresponsive and breaks intermittently.
Our setup is running Apache Drill using Docker on a Windows machine. While executing the queries, we encounter the following error in the Drillbit logs:

Exception in thread "I/O dispatcher 6" java.lang.OutOfMemoryError: Java heap space

07:07:32.552 [Curator-ConnectionStateManager-0] ERROR o.apache.curator.utils.ThreadUtils - Unexpected exception in thread: Thread[Curator-ConnectionStateManager-0,5,main]


We would appreciate your guidance on how to properly configure Apache Drill for large-scale distributed queries and resolve the memory and execution issues we are facing.
Thank you for your support.


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Anupam Gupta <an...@testingxperts.com>.
Thank you for your response.
We are using Apache Drill version 1.21.1.
As requested, we are attaching the Docker Compose file and the Drill configuration file that we are currently using to run Drill in Docker.
Please let us know if you need any additional information, such as the query details or logs, to help further investigate the issue.​​​​

________________________________
From: Charles Givre <cg...@apache.org>
Sent: Wednesday, December 17, 2025 1:19 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Hi Anupam,
The obvious cause is that you are running out of memory.  We won’t be able to debug this unless you share your configuration and the query.  Also, what version of Drill are you using?
Best,
— C

> On Dec 16, 2025, at 05:34, Anupam Gupta <an...@testingxperts.com> wrote:
>
> Hello Apache Drill Support Team,
> We are currently working with Apache Drill to fetch millions to billions of records. To support this workload, we have configured multiple Drill nodes and are executing queries in distributed mode.
> However, we are observing that only a single fragment appears to be in use at a time, and the query does not execute as expected. During execution, the Drill UI becomes unresponsive and breaks intermittently.
> Our setup is running Apache Drill using Docker on a Windows machine. While executing the queries, we encounter the following error in the Drillbit logs:
>
> Exception in thread "I/O dispatcher 6" java.lang.OutOfMemoryError: Java heap space
>
> 07:07:32.552 [Curator-ConnectionStateManager-0] ERROR o.apache.curator.utils.ThreadUtils - Unexpected exception in thread: Thread[Curator-ConnectionStateManager-0,5,main]
>
>
> We would appreciate your guidance on how to properly configure Apache Drill for large-scale distributed queries and resolve the memory and execution issues we are facing.
> Thank you for your support.
>


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Charles Givre <cg...@gmail.com>.
HI Anupam, 
I think you’re getting this error because you don’t have the SQLAlchemy-Drill driver installed: https://pypi.org/project/sqlalchemy-drill/

Superset will not work with Drill unless this is installed. 
Best,
— C


> On Feb 2, 2026, at 01:51, Anupam Gupta <an...@testingxperts.com> wrote:
> 
> Hi Charles,
> I hope you’re doing well. I wanted to follow up again on my previous messages regarding the Superset and Apache Drill integration issue.
> As mentioned earlier, I have successfully added Superset to the Docker Compose file, and the Superset UI is functioning as expected. However, I am still encountering the following error when attempting to connect Superset to Apache Drill:
> ERROR: Could not load database driver: DrillEngineSpec
> At this point, I wanted to check if there are any additional configurations, drivers, or dependencies required on the Superset side to enable the Drill database connection. Any guidance or documentation you could point me to would be greatly appreciated.
> Thank you for your time, and I look forward to your response.
> Best regards,
> 
> ________________________________
> From: Anupam Gupta <an...@testingxperts.com>
> Sent: Monday, January 19, 2026 11:17 AM
> To: user@drill.apache.org <us...@drill.apache.org>
> Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill
> 
> CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.
> 
> 
> Hi Charles,
> Following up on my previous email regarding the Superset and Apache Drill integration.
> I have added Superset to the Docker Compose file and the Superset UI is working as expected. However, when I try to connect Superset to Drill, I am still encountering the following error:
> ERROR: Could not load database driver: DrillEngineSpec
> Please let me know if there are any additional configurations, drivers, or dependencies that need to be added to resolve this issue.
> Any guidance on this would be greatly appreciated.
> Best regards,
> 
> ________________________________
> From: Anupam Gupta <an...@testingxperts.com>
> Sent: Monday, January 12, 2026 2:54 PM
> To: user@drill.apache.org <us...@drill.apache.org>
> Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill
> 
> CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.
> 
> 
> Hi charles,
> 
> i am facing one more issue while connecting superset ui with drill i have added superset to compose file and the ui is also working but when i am connecting it to drill  i am getting
> ERROR: Could not load database driver: DrillEngineSpec It would be a great help if you could assist me with this too
> ________________________________
> From: Anupam Gupta <an...@testingxperts.com>
> Sent: Monday, January 12, 2026 11:20 AM
> To: user@drill.apache.org <us...@drill.apache.org>
> Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill
> 
> CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.
> 
> 
> Hi Charles,
> Thanks for the suggestions — that definitely helps.
> To answer your questions:
> 
>  *
> I’ve increased the Java heap, with the initial heap set to 8 GB and the max heap set to 32 GB.
>  *
> The Drill cluster currently consists of 3 Drill nodes.
>  *
> The data is stored in Parquet format.
> 
> Despite these settings, I’m still running into the immediate query issues, which is why I wanted to confirm whether there are additional tuning recommendations you’d suggest around fragments or parallelization. Based on your feedback, I’ll also look into further breaking up the Parquet files to improve parallel execution, depending on the use case.
> Regarding the UI, that makes sense. I’ll avoid using the Drill UI for large result sets and instead plan to connect Drill to a proper UI like Apache Superset or pull results via JDBC when working with queries returning 1M+ records.
> Thanks again for the guidance — really appreciate it.
> Best regards,
> Anupam
> 
> ________________________________
> From: Charles Givre <cg...@gmail.com>
> Sent: Friday, January 9, 2026 2:06 AM
> To: user@drill.apache.org <us...@drill.apache.org>
> Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill
> 
> CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.
> 


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Anupam Gupta <an...@testingxperts.com>.
Hi Charles,
I hope you’re doing well. I wanted to follow up again on my previous messages regarding the Superset and Apache Drill integration issue.
As mentioned earlier, I have successfully added Superset to the Docker Compose file, and the Superset UI is functioning as expected. However, I am still encountering the following error when attempting to connect Superset to Apache Drill:
ERROR: Could not load database driver: DrillEngineSpec
At this point, I wanted to check if there are any additional configurations, drivers, or dependencies required on the Superset side to enable the Drill database connection. Any guidance or documentation you could point me to would be greatly appreciated.
Thank you for your time, and I look forward to your response.
Best regards,

________________________________
From: Anupam Gupta <an...@testingxperts.com>
Sent: Monday, January 19, 2026 11:17 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Hi Charles,
Following up on my previous email regarding the Superset and Apache Drill integration.
I have added Superset to the Docker Compose file and the Superset UI is working as expected. However, when I try to connect Superset to Drill, I am still encountering the following error:
ERROR: Could not load database driver: DrillEngineSpec
Please let me know if there are any additional configurations, drivers, or dependencies that need to be added to resolve this issue.
Any guidance on this would be greatly appreciated.
Best regards,

________________________________
From: Anupam Gupta <an...@testingxperts.com>
Sent: Monday, January 12, 2026 2:54 PM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Hi charles,

i am facing one more issue while connecting superset ui with drill i have added superset to compose file and the ui is also working but when i am connecting it to drill  i am getting
ERROR: Could not load database driver: DrillEngineSpec It would be a great help if you could assist me with this too
________________________________
From: Anupam Gupta <an...@testingxperts.com>
Sent: Monday, January 12, 2026 11:20 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Hi Charles,
Thanks for the suggestions — that definitely helps.
To answer your questions:

  *
I’ve increased the Java heap, with the initial heap set to 8 GB and the max heap set to 32 GB.
  *
The Drill cluster currently consists of 3 Drill nodes.
  *
The data is stored in Parquet format.

Despite these settings, I’m still running into the immediate query issues, which is why I wanted to confirm whether there are additional tuning recommendations you’d suggest around fragments or parallelization. Based on your feedback, I’ll also look into further breaking up the Parquet files to improve parallel execution, depending on the use case.
Regarding the UI, that makes sense. I’ll avoid using the Drill UI for large result sets and instead plan to connect Drill to a proper UI like Apache Superset or pull results via JDBC when working with queries returning 1M+ records.
Thanks again for the guidance — really appreciate it.
Best regards,
Anupam

________________________________
From: Charles Givre <cg...@gmail.com>
Sent: Friday, January 9, 2026 2:06 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Anupam Gupta <an...@testingxperts.com>.
Hi Charles,
Following up on my previous email regarding the Superset and Apache Drill integration.
I have added Superset to the Docker Compose file and the Superset UI is working as expected. However, when I try to connect Superset to Drill, I am still encountering the following error:
ERROR: Could not load database driver: DrillEngineSpec
Please let me know if there are any additional configurations, drivers, or dependencies that need to be added to resolve this issue.
Any guidance on this would be greatly appreciated.
Best regards,

________________________________
From: Anupam Gupta <an...@testingxperts.com>
Sent: Monday, January 12, 2026 2:54 PM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Hi charles,

i am facing one more issue while connecting superset ui with drill i have added superset to compose file and the ui is also working but when i am connecting it to drill  i am getting
ERROR: Could not load database driver: DrillEngineSpec It would be a great help if you could assist me with this too
________________________________
From: Anupam Gupta <an...@testingxperts.com>
Sent: Monday, January 12, 2026 11:20 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Hi Charles,
Thanks for the suggestions — that definitely helps.
To answer your questions:

  *
I’ve increased the Java heap, with the initial heap set to 8 GB and the max heap set to 32 GB.
  *
The Drill cluster currently consists of 3 Drill nodes.
  *
The data is stored in Parquet format.

Despite these settings, I’m still running into the immediate query issues, which is why I wanted to confirm whether there are additional tuning recommendations you’d suggest around fragments or parallelization. Based on your feedback, I’ll also look into further breaking up the Parquet files to improve parallel execution, depending on the use case.
Regarding the UI, that makes sense. I’ll avoid using the Drill UI for large result sets and instead plan to connect Drill to a proper UI like Apache Superset or pull results via JDBC when working with queries returning 1M+ records.
Thanks again for the guidance — really appreciate it.
Best regards,
Anupam

________________________________
From: Charles Givre <cg...@gmail.com>
Sent: Friday, January 9, 2026 2:06 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Anupam Gupta <an...@testingxperts.com>.
Hi charles,

i am facing one more issue while connecting superset ui with drill i have added superset to compose file and the ui is also working but when i am connecting it to drill  i am getting
ERROR: Could not load database driver: DrillEngineSpec It would be a great help if you could assist me with this too
________________________________
From: Anupam Gupta <an...@testingxperts.com>
Sent: Monday, January 12, 2026 11:20 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Hi Charles,
Thanks for the suggestions — that definitely helps.
To answer your questions:

  *
I’ve increased the Java heap, with the initial heap set to 8 GB and the max heap set to 32 GB.
  *
The Drill cluster currently consists of 3 Drill nodes.
  *
The data is stored in Parquet format.

Despite these settings, I’m still running into the immediate query issues, which is why I wanted to confirm whether there are additional tuning recommendations you’d suggest around fragments or parallelization. Based on your feedback, I’ll also look into further breaking up the Parquet files to improve parallel execution, depending on the use case.
Regarding the UI, that makes sense. I’ll avoid using the Drill UI for large result sets and instead plan to connect Drill to a proper UI like Apache Superset or pull results via JDBC when working with queries returning 1M+ records.
Thanks again for the guidance — really appreciate it.
Best regards,
Anupam

________________________________
From: Charles Givre <cg...@gmail.com>
Sent: Friday, January 9, 2026 2:06 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Anupam Gupta <an...@testingxperts.com>.
Hi Charles,
Thanks for the suggestions — that definitely helps.
To answer your questions:

  *
I’ve increased the Java heap, with the initial heap set to 8 GB and the max heap set to 32 GB.
  *
The Drill cluster currently consists of 3 Drill nodes.
  *
The data is stored in Parquet format.

Despite these settings, I’m still running into the immediate query issues, which is why I wanted to confirm whether there are additional tuning recommendations you’d suggest around fragments or parallelization. Based on your feedback, I’ll also look into further breaking up the Parquet files to improve parallel execution, depending on the use case.
Regarding the UI, that makes sense. I’ll avoid using the Drill UI for large result sets and instead plan to connect Drill to a proper UI like Apache Superset or pull results via JDBC when working with queries returning 1M+ records.
Thanks again for the guidance — really appreciate it.
Best regards,
Anupam

________________________________
From: Charles Givre <cg...@gmail.com>
Sent: Friday, January 9, 2026 2:06 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Charles Givre <cg...@gmail.com>.
Hi Anupam, 
Are you able to increase the Java heap?  It seems like that would solve your immediate query problem.  Your other question regarding the fragments.  Can you remind me how many nodes you have in your cluster?  Also, if your data is in parquet files, the overall goal should be to break that file up into multiple smaller files so you can get the biggest benefit from parallelization.  This really does depend on your use case.

Lastly, Drill’s UI really isn’t meant for larger datasets.  I would recommend connecting Drill to a proper UI such as Apache Superset or use JDBC to pull your results if you are pulling results with 1M+ records.  You can easily overload the browser if you execute a query that brings back a large number of records.   

I hope this helps.
Best,
— C


> On Jan 5, 2026, at 00:17, Anupam Gupta <an...@testingxperts.com> wrote:
> 
> Hello Support Team,
> Following up on the Apache Drill issue raised earlier.
> As requested, we have already shared details regarding our Apache Drill version and the type of files being queried. We would also like to clarify that this issue was observed even when we were using the latest Apache Drill version previously.
> Could you please check this from your end and let us know the current status or any findings? Please let us know if any additional details are required from our side.
> 
> 
> ________________________________
> From: Anupam Gupta <an...@testingxperts.com>
> Sent: Monday, December 22, 2025 10:11 AM
> To: user@drill.apache.org <us...@drill.apache.org>
> Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill
> 
> CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.
> 
> 
>  1.
> We can try upgrading the version.
>  2.
> The file which we are querying is a parquet file around 500 mb with a 1 lakh records.
> 
> ________________________________
> From: Charles Givre <cg...@gmail.com>
> Sent: Friday, December 19, 2025 7:21 PM
> To: user@drill.apache.org <us...@drill.apache.org>
> Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill
> 
> CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.
> 


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Anupam Gupta <an...@testingxperts.com>.
Hello Support Team,
Following up on the Apache Drill issue raised earlier.
As requested, we have already shared details regarding our Apache Drill version and the type of files being queried. We would also like to clarify that this issue was observed even when we were using the latest Apache Drill version previously.
Could you please check this from your end and let us know the current status or any findings? Please let us know if any additional details are required from our side.


________________________________
From: Anupam Gupta <an...@testingxperts.com>
Sent: Monday, December 22, 2025 10:11 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


  1.
We can try upgrading the version.
  2.
The file which we are querying is a parquet file around 500 mb with a 1 lakh records.

________________________________
From: Charles Givre <cg...@gmail.com>
Sent: Friday, December 19, 2025 7:21 PM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Anupam Gupta <an...@testingxperts.com>.
  1.
We can try upgrading the version.
  2.
The file which we are querying is a parquet file around 500 mb with a 1 lakh records.

________________________________
From: Charles Givre <cg...@gmail.com>
Sent: Friday, December 19, 2025 7:21 PM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Charles Givre <cg...@gmail.com>.
I have two questions.  
1.  Can you upgrade to the latest version of Drill?  There have been many updates since 1.21.1 and it is quite possible that the issue you are encountering has been fixed.
2.  What kind of files are you querying?  

Best,
— C


> On Dec 19, 2025, at 04:14, Anupam Gupta <an...@testingxperts.com> wrote:
> 
> Hello,
> I’m following up on the details we shared earlier regarding our Apache Drill 1.21.1 setup running in Docker.
> As mentioned, we provided:
> 
>  *
> The Docker Compose file
>  *
> The Drill configuration file
>  *
> The DFS storage plugin configuration
>  *
> The query being executed:
> 
> SELECT *
> FROM dfs.shared.`<filename>`
> 
> Could you please let us know if you’ve had a chance to review these details, or if there are any additional logs or configuration settings (e.g., memory settings, full query profiles, or Drillbit logs) that would help with further analysis?
> We’re happy to provide any additional information needed to move this forward.
> 
> ________________________________
> From: Anupam Gupta <an...@testingxperts.com>
> Sent: Wednesday, December 17, 2025 12:03 PM
> To: user@drill.apache.org <us...@drill.apache.org>
> Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill
> 
> 
> CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.
> 
> 
> We are using Apache Drill version 1.21.1.
> As requested, we are attaching the Docker Compose file and the Drill configuration file that we are currently using to run Drill in Docker.
> Additionally, below is the DFS storage plugin configuration we are using:
> 
> {
>  "type": "file",
>  "connection": "file:///shared",
>  "workspaces": {
>    "shared": {
>      "location": "/shared",
>      "writable": true,
>      "defaultInputFormat": null,
>      "allowAccessOutsideWorkspace": true
>    },
>    "root": {
>      "location": "/",
>      "writable": false,
>      "defaultInputFormat": null,
>      "allowAccessOutsideWorkspace": true
>    }
>  },
>  "formats": {
>    "parquet": {
>      "type": "parquet"
>    },
>    "json": {
>      "type": "json",
>      "extensions": [
>        "json"
>      ]
>    },
>    "csv": {
>      "type": "text",
>      "extensions": [
>        "csv"
>      ],
>      "lineDelimiter": "\n",
>      "fieldDelimiter": ",",
>      "quote": "\"",
>      "escape": "\"",
>      "comment": "#",
>      "extractHeader": true
>    }
>  },
>  "authMode": "SHARED_USER",
>  "enabled": true
> }
> 
> 
> The query we are executing is:
> 
> SELECT *
> FROM dfs.shared.`<filename>`
> 
> 
> Please let us know if you need any additional details, such as memory settings or complete query logs, to further analyze the issue.
> 
> ________________________________
> From: Charles Givre <cg...@apache.org>
> Sent: Wednesday, December 17, 2025 1:19 AM
> To: user@drill.apache.org <us...@drill.apache.org>
> Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill
> 
> CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.
> 
> 
> Hi Anupam,
> The obvious cause is that you are running out of memory.  We won’t be able to debug this unless you share your configuration and the query.  Also, what version of Drill are you using?
> Best,
> — C
> 
>> On Dec 16, 2025, at 05:34, Anupam Gupta <an...@testingxperts.com> wrote:
>> 
>> Hello Apache Drill Support Team,
>> We are currently working with Apache Drill to fetch millions to billions of records. To support this workload, we have configured multiple Drill nodes and are executing queries in distributed mode.
>> However, we are observing that only a single fragment appears to be in use at a time, and the query does not execute as expected. During execution, the Drill UI becomes unresponsive and breaks intermittently.
>> Our setup is running Apache Drill using Docker on a Windows machine. While executing the queries, we encounter the following error in the Drillbit logs:
>> 
>> Exception in thread "I/O dispatcher 6" java.lang.OutOfMemoryError: Java heap space
>> 
>> 07:07:32.552 [Curator-ConnectionStateManager-0] ERROR o.apache.curator.utils.ThreadUtils - Unexpected exception in thread: Thread[Curator-ConnectionStateManager-0,5,main]
>> 
>> 
>> We would appreciate your guidance on how to properly configure Apache Drill for large-scale distributed queries and resolve the memory and execution issues we are facing.
>> Thank you for your support.
>> 
> 


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Anupam Gupta <an...@testingxperts.com>.
Hello,
I’m following up on the details we shared earlier regarding our Apache Drill 1.21.1 setup running in Docker.
As mentioned, we provided:

  *
The Docker Compose file
  *
The Drill configuration file
  *
The DFS storage plugin configuration
  *
The query being executed:

SELECT *
FROM dfs.shared.`<filename>`

Could you please let us know if you’ve had a chance to review these details, or if there are any additional logs or configuration settings (e.g., memory settings, full query profiles, or Drillbit logs) that would help with further analysis?
We’re happy to provide any additional information needed to move this forward.

________________________________
From: Anupam Gupta <an...@testingxperts.com>
Sent: Wednesday, December 17, 2025 12:03 PM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill


CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


We are using Apache Drill version 1.21.1.
As requested, we are attaching the Docker Compose file and the Drill configuration file that we are currently using to run Drill in Docker.
Additionally, below is the DFS storage plugin configuration we are using:

{
  "type": "file",
  "connection": "file:///shared",
  "workspaces": {
    "shared": {
      "location": "/shared",
      "writable": true,
      "defaultInputFormat": null,
      "allowAccessOutsideWorkspace": true
    },
    "root": {
      "location": "/",
      "writable": false,
      "defaultInputFormat": null,
      "allowAccessOutsideWorkspace": true
    }
  },
  "formats": {
    "parquet": {
      "type": "parquet"
    },
    "json": {
      "type": "json",
      "extensions": [
        "json"
      ]
    },
    "csv": {
      "type": "text",
      "extensions": [
        "csv"
      ],
      "lineDelimiter": "\n",
      "fieldDelimiter": ",",
      "quote": "\"",
      "escape": "\"",
      "comment": "#",
      "extractHeader": true
    }
  },
  "authMode": "SHARED_USER",
  "enabled": true
}


The query we are executing is:

SELECT *
FROM dfs.shared.`<filename>`


Please let us know if you need any additional details, such as memory settings or complete query logs, to further analyze the issue.

________________________________
From: Charles Givre <cg...@apache.org>
Sent: Wednesday, December 17, 2025 1:19 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Hi Anupam,
The obvious cause is that you are running out of memory.  We won’t be able to debug this unless you share your configuration and the query.  Also, what version of Drill are you using?
Best,
— C

> On Dec 16, 2025, at 05:34, Anupam Gupta <an...@testingxperts.com> wrote:
>
> Hello Apache Drill Support Team,
> We are currently working with Apache Drill to fetch millions to billions of records. To support this workload, we have configured multiple Drill nodes and are executing queries in distributed mode.
> However, we are observing that only a single fragment appears to be in use at a time, and the query does not execute as expected. During execution, the Drill UI becomes unresponsive and breaks intermittently.
> Our setup is running Apache Drill using Docker on a Windows machine. While executing the queries, we encounter the following error in the Drillbit logs:
>
> Exception in thread "I/O dispatcher 6" java.lang.OutOfMemoryError: Java heap space
>
> 07:07:32.552 [Curator-ConnectionStateManager-0] ERROR o.apache.curator.utils.ThreadUtils - Unexpected exception in thread: Thread[Curator-ConnectionStateManager-0,5,main]
>
>
> We would appreciate your guidance on how to properly configure Apache Drill for large-scale distributed queries and resolve the memory and execution issues we are facing.
> Thank you for your support.
>


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Anupam Gupta <an...@testingxperts.com>.
We are using Apache Drill version 1.21.1.
As requested, we are attaching the Docker Compose file and the Drill configuration file that we are currently using to run Drill in Docker.
Additionally, below is the DFS storage plugin configuration we are using:

{
  "type": "file",
  "connection": "file:///shared",
  "workspaces": {
    "shared": {
      "location": "/shared",
      "writable": true,
      "defaultInputFormat": null,
      "allowAccessOutsideWorkspace": true
    },
    "root": {
      "location": "/",
      "writable": false,
      "defaultInputFormat": null,
      "allowAccessOutsideWorkspace": true
    }
  },
  "formats": {
    "parquet": {
      "type": "parquet"
    },
    "json": {
      "type": "json",
      "extensions": [
        "json"
      ]
    },
    "csv": {
      "type": "text",
      "extensions": [
        "csv"
      ],
      "lineDelimiter": "\n",
      "fieldDelimiter": ",",
      "quote": "\"",
      "escape": "\"",
      "comment": "#",
      "extractHeader": true
    }
  },
  "authMode": "SHARED_USER",
  "enabled": true
}


The query we are executing is:

SELECT *
FROM dfs.shared.`<filename>`


Please let us know if you need any additional details, such as memory settings or complete query logs, to further analyze the issue.

________________________________
From: Charles Givre <cg...@apache.org>
Sent: Wednesday, December 17, 2025 1:19 AM
To: user@drill.apache.org <us...@drill.apache.org>
Subject: Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

CAUTION: External Sender. Please do not click on links or open attachments from senders you do not trust.


Hi Anupam,
The obvious cause is that you are running out of memory.  We won’t be able to debug this unless you share your configuration and the query.  Also, what version of Drill are you using?
Best,
— C

> On Dec 16, 2025, at 05:34, Anupam Gupta <an...@testingxperts.com> wrote:
>
> Hello Apache Drill Support Team,
> We are currently working with Apache Drill to fetch millions to billions of records. To support this workload, we have configured multiple Drill nodes and are executing queries in distributed mode.
> However, we are observing that only a single fragment appears to be in use at a time, and the query does not execute as expected. During execution, the Drill UI becomes unresponsive and breaks intermittently.
> Our setup is running Apache Drill using Docker on a Windows machine. While executing the queries, we encounter the following error in the Drillbit logs:
>
> Exception in thread "I/O dispatcher 6" java.lang.OutOfMemoryError: Java heap space
>
> 07:07:32.552 [Curator-ConnectionStateManager-0] ERROR o.apache.curator.utils.ThreadUtils - Unexpected exception in thread: Thread[Curator-ConnectionStateManager-0,5,main]
>
>
> We would appreciate your guidance on how to properly configure Apache Drill for large-scale distributed queries and resolve the memory and execution issues we are facing.
> Thank you for your support.
>


Re: Issue with Distributed Query Execution and OutOfMemoryError in Apache Drill

Posted by Charles Givre <cg...@apache.org>.
Hi Anupam, 
The obvious cause is that you are running out of memory.  We won’t be able to debug this unless you share your configuration and the query.  Also, what version of Drill are you using?
Best,
— C

> On Dec 16, 2025, at 05:34, Anupam Gupta <an...@testingxperts.com> wrote:
> 
> Hello Apache Drill Support Team,
> We are currently working with Apache Drill to fetch millions to billions of records. To support this workload, we have configured multiple Drill nodes and are executing queries in distributed mode.
> However, we are observing that only a single fragment appears to be in use at a time, and the query does not execute as expected. During execution, the Drill UI becomes unresponsive and breaks intermittently.
> Our setup is running Apache Drill using Docker on a Windows machine. While executing the queries, we encounter the following error in the Drillbit logs:
> 
> Exception in thread "I/O dispatcher 6" java.lang.OutOfMemoryError: Java heap space
> 
> 07:07:32.552 [Curator-ConnectionStateManager-0] ERROR o.apache.curator.utils.ThreadUtils - Unexpected exception in thread: Thread[Curator-ConnectionStateManager-0,5,main]
> 
> 
> We would appreciate your guidance on how to properly configure Apache Drill for large-scale distributed queries and resolve the memory and execution issues we are facing.
> Thank you for your support.
>