You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@drill.apache.org by Francis McGregor-Macdonald <fr...@mc-mac.com> on 2018/01/25 21:58:22 UTC
Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a
Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set
by planner.memory.max_query_memory_per_node.
The extract query consumes all memory and then crashes drill.
Running the same query as a create table memory behaves as expected.
The query complexity is trivial:
select * from view only a single parquet with no calculated fields.
Has anyone else observed this behavior?
Re: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Posted by Hao Zhu <hz...@mapr.com>.
Hi Team,
Could you collect SQL profile for the problematic query and also drillbit.out + /var/log/messages from OS level?
One finding is:
open files (-n) 1024
It should be increased when you setup the cluster. It should be at least:
open files (-n) 65535
Thanks,
Hao
From: Francis McGregor-Macdonald <fr...@mc-mac.com>>
Reply-To: "user@drill.apache.org<ma...@drill.apache.org>" <us...@drill.apache.org>>
Date: Thursday, January 25, 2018 at 10:19 PM
To: "user@drill.apache.org<ma...@drill.apache.org>" <us...@drill.apache.org>>
Subject: Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Hi all,
I am guessing that each of your EMR nodes are quite large? EMR nodes are: r4.2xlarge ('vcpu': 8, 'memory': 61)
Property "planner.width.max_per_node" is set to = 6
What is the system memory and what are the allocations for heap and direct?
System Memory: 61GB (EMR nodes above)
drill_mem_heap: 12G
drill_mem_max: 48G
The view is simple: SELECT * FROM s3://myparquet.parquet (14GB)
planner.memory.max_query_memory_per_node = 10479720202
Drillbit.log attached (I think I have the correct selection included).
Thanks
On Fri, Jan 26, 2018 at 2:41 PM, Kunal Khatua <kk...@mapr.com>> wrote:
What is the system memory and what are the allocations for heap and direct? The memory crash might be occurring due to insufficient heap. The limits parameter applies to the direct memory and not Heap.
Can you share details in the logs from the crash?
-----Original Message-----
From: Timothy Farkas [mailto:tfarkas@mapr.com<ma...@mapr.com>]
Sent: Thursday, January 25, 2018 2:58 PM
To: user@drill.apache.org<ma...@drill.apache.org>
Subject: Re: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Hi Francis,
I am guessing that each of your EMR nodes are quite large (32 or 64 vcpus). On large machines Drill's planner over parallelizes and over allocates memory. There is a property "planner.width.max_per_node" which limits the number of operators that can simultaneously execute on a Drillbit for a query. If you configure the width per node to something like 5 or 10 (you may have to play around with it) things should start working.
Thanks,
Tim
________________________________
From: Francis McGregor-Macdonald <fr...@mc-mac.com>>
Sent: Thursday, January 25, 2018 1:58:22 PM
To: user@drill.apache.org<ma...@drill.apache.org>
Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set by planner.memory.max_query_memory_per_node.
The extract query consumes all memory and then crashes drill.
Running the same query as a create table memory behaves as expected.
The query complexity is trivial:
select * from view only a single parquet with no calculated fields.
Has anyone else observed this behavior?
RE: Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited
memory
Posted by Kunal Khatua <kk...@mapr.com>.
Hi Francis
Looks like the logs didn’t get attached.
As for the physical plan, ignore the “memory = 0.0” ; because it is a physical plan and not the actual executed query’s profile.
What you want to do to debug the possible area where the memory is being consumed is in the query’s profile page.
This will tell you which is the longest running major fragment:
http://<hostname>:8047/profiles/<queryId>#fragment-overview<http://%3chostname%3e:8047/profiles/%3cqueryId%3e#fragment-overview>
You’re looking for the Max Peak Memory column to see which ones are holding the most memory.
http://<hostname>:8047/profiles/<queryId>#operator-overview<http://%3chostname%3e:8047/profiles/%3cqueryId%3e#operator-overview>
And this will tell you the statistics for the various operators’ consumption of memory.
For running such a query through the WebUI is generally not recommended, because (by design), the WebUI creates a ResultSetListener in the Drillbit where it holds all the records before sending anything back. (https://issues.apache.org/jira/browse/DRILL-6050)
However, for Tableau, the DrillClient should have been consuming the records, so I’m wondering why Drillbit should run out of memory .
Could you share the following for both scenarios (the Web UI and when running via Tableau)?
1. The profiles
2. The Drillbit logs (drillbit.out, drillbit.log, etc)
Thanks
Kunal
From: Francis McGregor-Macdonald [mailto:francis@mc-mac.com]
Sent: Sunday, January 28, 2018 2:49 PM
To: user@drill.apache.org
Subject: Re: Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Hi all,
A physical plan attached ... all memory appears to be 0.0 which seems odd?
Thanks
On Sun, Jan 28, 2018 at 10:37 PM, Francis McGregor-Macdonald <fr...@mc-mac.com>> wrote:
And with logs as attachments.
On Sun, Jan 28, 2018 at 9:40 PM, Francis McGregor-Macdonald <fr...@mc-mac.com>> wrote:
Thanks Paul and Kunal,
I think I have the right information now. With Paul's changes (and fixing up a zoo.cfg error) it isn't crashing, rather failing. Logs attached, still blowing past memory limits. It does the same thing when re-running the query from the web console so presumably its not actually Tableau related despite me first generating it that way.
Thanks.
On Sat, Jan 27, 2018 at 1:15 PM, Francis McGregor-Macdonald <fr...@mc-mac.com>> wrote:
Thanks Paul,
I will update with your suggested memory allocations also and retry.
Zookeeper crashed too which might explain more? I have attached the logs from Zookeeper too.
Thanks
On Sat, Jan 27, 2018 at 6:45 AM, Paul Rogers <pa...@yahoo.com>> wrote:
Hi Francis,
Thanks much for the log. The log shows running a query, then immediately shows entries that occur when starting Drill. I'm guessing that Drill literally crashed at this point? This is more severe than the usual error in which a query exhausts memory.
Some general observations. The Drill memory is 60 GB, but system memory is 61 GB. Perhaps try dropping total Drill memory some to give the OS and other tasks more headroom. For a SELECT * memory, Drill needs far less than what you have, so maybe try giving Drill 48 GB total.
Then, Drill needs direct memory much more than heap. So, maybe give Drill 39 GB direct, 8 GB heap and 1 GB (the default) for code cache. These settings are in drill-env.sh.
Kunal, you have more experience with these issues. Can you make additional suggestions by looking at the log?
Thanks,
- Paul
On Thursday, January 25, 2018, 10:20:29 PM PST, Francis McGregor-Macdonald <fr...@mc-mac.com>> wrote:
Hi all,
I am guessing that each of your EMR nodes are quite large? EMR nodes are: r4.2xlarge ('vcpu': 8, 'memory': 61)
Property "planner.width.max_per_node" is set to = 6
What is the system memory and what are the allocations for heap and direct?
System Memory: 61GB (EMR nodes above)
drill_mem_heap: 12G
drill_mem_max: 48G
The view is simple: SELECT * FROM s3://myparquet.parquet (14GB)
planner.memory.max_query_memor y_per_node = 10479720202
Drillbit.log attached (I think I have the correct selection included).
Thanks
On Fri, Jan 26, 2018 at 2:41 PM, Kunal Khatua <kk...@mapr.com>> wrote:
What is the system memory and what are the allocations for heap and direct? The memory crash might be occurring due to insufficient heap. The limits parameter applies to the direct memory and not Heap.
Can you share details in the logs from the crash?
-----Original Message-----
From: Timothy Farkas [mailto:tfarkas@mapr.com<ma...@mapr.com>]
Sent: Thursday, January 25, 2018 2:58 PM
To: user@drill.apache.org<ma...@drill.apache.org>
Subject: Re: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Hi Francis,
I am guessing that each of your EMR nodes are quite large (32 or 64 vcpus). On large machines Drill's planner over parallelizes and over allocates memory. There is a property "planner.width.max_per_node" which limits the number of operators that can simultaneously execute on a Drillbit for a query. If you configure the width per node to something like 5 or 10 (you may have to play around with it) things should start working.
Thanks,
Tim
______________________________ __
From: Francis McGregor-Macdonald <fr...@mc-mac.com>>
Sent: Thursday, January 25, 2018 1:58:22 PM
To: user@drill.apache.org<ma...@drill.apache.org>
Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set by planner.memory.max_query_memor y_per_node.
The extract query consumes all memory and then crashes drill.
Running the same query as a create table memory behaves as expected.
The query complexity is trivial:
select * from view only a single parquet with no calculated fields.
Has anyone else observed this behavior?
Re: Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Posted by Francis McGregor-Macdonald <fr...@mc-mac.com>.
Hi all,
A physical plan attached ... all memory appears to be 0.0 which seems odd?
Thanks
On Sun, Jan 28, 2018 at 10:37 PM, Francis McGregor-Macdonald <
francis@mc-mac.com> wrote:
> And with logs as attachments.
>
> On Sun, Jan 28, 2018 at 9:40 PM, Francis McGregor-Macdonald <
> francis@mc-mac.com> wrote:
>
>> Thanks Paul and Kunal,
>> I think I have the right information now. With Paul's changes (and fixing
>> up a zoo.cfg error) it isn't crashing, rather failing. Logs attached, still
>> blowing past memory limits. It does the same thing when re-running the
>> query from the web console so presumably its not actually Tableau related
>> despite me first generating it that way.
>>
>> Thanks.
>>
>> On Sat, Jan 27, 2018 at 1:15 PM, Francis McGregor-Macdonald <
>> francis@mc-mac.com> wrote:
>>
>>> Thanks Paul,
>>>
>>> I will update with your suggested memory allocations also and retry.
>>>
>>> Zookeeper crashed too which might explain more? I have attached the logs
>>> from Zookeeper too.
>>>
>>> Thanks
>>>
>>> On Sat, Jan 27, 2018 at 6:45 AM, Paul Rogers <pa...@yahoo.com> wrote:
>>>
>>>> Hi Francis,
>>>>
>>>> Thanks much for the log. The log shows running a query, then
>>>> immediately shows entries that occur when starting Drill. I'm guessing that
>>>> Drill literally crashed at this point? This is more severe than the usual
>>>> error in which a query exhausts memory.
>>>>
>>>> Some general observations. The Drill memory is 60 GB, but system memory
>>>> is 61 GB. Perhaps try dropping total Drill memory some to give the OS and
>>>> other tasks more headroom. For a SELECT * memory, Drill needs far less than
>>>> what you have, so maybe try giving Drill 48 GB total.
>>>>
>>>> Then, Drill needs direct memory much more than heap. So, maybe give
>>>> Drill 39 GB direct, 8 GB heap and 1 GB (the default) for code cache. These
>>>> settings are in drill-env.sh.
>>>>
>>>> Kunal, you have more experience with these issues. Can you make
>>>> additional suggestions by looking at the log?
>>>>
>>>> Thanks,
>>>>
>>>> - Paul
>>>>
>>>>
>>>>
>>>> On Thursday, January 25, 2018, 10:20:29 PM PST, Francis
>>>> McGregor-Macdonald <fr...@mc-mac.com> wrote:
>>>>
>>>>
>>>> Hi all,
>>>>
>>>> I am guessing that each of your EMR nodes are quite large? EMR nodes
>>>> are: r4.2xlarge ('vcpu': 8, 'memory': 61)
>>>>
>>>> Property "planner.width.max_per_node" is set to = 6
>>>>
>>>> What is the system memory and what are the allocations for heap and
>>>> direct?
>>>> System Memory: 61GB (EMR nodes above)
>>>> drill_mem_heap: 12G
>>>> drill_mem_max: 48G
>>>>
>>>> The view is simple: SELECT * FROM s3://myparquet.parquet (14GB)
>>>>
>>>> planner.memory.max_query_memor y_per_node = 10479720202
>>>>
>>>> Drillbit.log attached (I think I have the correct selection included).
>>>>
>>>> Thanks
>>>>
>>>> On Fri, Jan 26, 2018 at 2:41 PM, Kunal Khatua <kk...@mapr.com> wrote:
>>>>
>>>> What is the system memory and what are the allocations for heap and
>>>> direct? The memory crash might be occurring due to insufficient heap. The
>>>> limits parameter applies to the direct memory and not Heap.
>>>>
>>>> Can you share details in the logs from the crash?
>>>>
>>>> -----Original Message-----
>>>> From: Timothy Farkas [mailto:tfarkas@mapr.com]
>>>> Sent: Thursday, January 25, 2018 2:58 PM
>>>> To: user@drill.apache.org
>>>> Subject: Re: Creating a Tableau extracts with Drill 1.12 uses unlimited
>>>> memory
>>>>
>>>> Hi Francis,
>>>>
>>>> I am guessing that each of your EMR nodes are quite large (32 or 64
>>>> vcpus). On large machines Drill's planner over parallelizes and over
>>>> allocates memory. There is a property "planner.width.max_per_node" which
>>>> limits the number of operators that can simultaneously execute on a
>>>> Drillbit for a query. If you configure the width per node to something like
>>>> 5 or 10 (you may have to play around with it) things should start working.
>>>>
>>>> Thanks,
>>>> Tim
>>>>
>>>> ______________________________ __
>>>> From: Francis McGregor-Macdonald <fr...@mc-mac.com>
>>>> Sent: Thursday, January 25, 2018 1:58:22 PM
>>>> To: user@drill.apache.org
>>>> Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited
>>>> memory
>>>>
>>>> Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a
>>>> Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set
>>>> by planner.memory.max_query_memor y_per_node.
>>>>
>>>> The extract query consumes all memory and then crashes drill.
>>>>
>>>> Running the same query as a create table memory behaves as expected.
>>>>
>>>> The query complexity is trivial:
>>>> select * from view only a single parquet with no calculated fields.
>>>>
>>>> Has anyone else observed this behavior?
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
>
Fwd: Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Posted by Francis McGregor-Macdonald <fr...@mc-mac.com>.
And with logs as attachments.
On Sun, Jan 28, 2018 at 9:40 PM, Francis McGregor-Macdonald <
francis@mc-mac.com> wrote:
> Thanks Paul and Kunal,
> I think I have the right information now. With Paul's changes (and fixing
> up a zoo.cfg error) it isn't crashing, rather failing. Logs attached, still
> blowing past memory limits. It does the same thing when re-running the
> query from the web console so presumably its not actually Tableau related
> despite me first generating it that way.
>
> Thanks.
>
> On Sat, Jan 27, 2018 at 1:15 PM, Francis McGregor-Macdonald <
> francis@mc-mac.com> wrote:
>
>> Thanks Paul,
>>
>> I will update with your suggested memory allocations also and retry.
>>
>> Zookeeper crashed too which might explain more? I have attached the logs
>> from Zookeeper too.
>>
>> Thanks
>>
>> On Sat, Jan 27, 2018 at 6:45 AM, Paul Rogers <pa...@yahoo.com> wrote:
>>
>>> Hi Francis,
>>>
>>> Thanks much for the log. The log shows running a query, then immediately
>>> shows entries that occur when starting Drill. I'm guessing that Drill
>>> literally crashed at this point? This is more severe than the usual error
>>> in which a query exhausts memory.
>>>
>>> Some general observations. The Drill memory is 60 GB, but system memory
>>> is 61 GB. Perhaps try dropping total Drill memory some to give the OS and
>>> other tasks more headroom. For a SELECT * memory, Drill needs far less than
>>> what you have, so maybe try giving Drill 48 GB total.
>>>
>>> Then, Drill needs direct memory much more than heap. So, maybe give
>>> Drill 39 GB direct, 8 GB heap and 1 GB (the default) for code cache. These
>>> settings are in drill-env.sh.
>>>
>>> Kunal, you have more experience with these issues. Can you make
>>> additional suggestions by looking at the log?
>>>
>>> Thanks,
>>>
>>> - Paul
>>>
>>>
>>>
>>> On Thursday, January 25, 2018, 10:20:29 PM PST, Francis
>>> McGregor-Macdonald <fr...@mc-mac.com> wrote:
>>>
>>>
>>> Hi all,
>>>
>>> I am guessing that each of your EMR nodes are quite large? EMR nodes
>>> are: r4.2xlarge ('vcpu': 8, 'memory': 61)
>>>
>>> Property "planner.width.max_per_node" is set to = 6
>>>
>>> What is the system memory and what are the allocations for heap and
>>> direct?
>>> System Memory: 61GB (EMR nodes above)
>>> drill_mem_heap: 12G
>>> drill_mem_max: 48G
>>>
>>> The view is simple: SELECT * FROM s3://myparquet.parquet (14GB)
>>>
>>> planner.memory.max_query_memor y_per_node = 10479720202
>>>
>>> Drillbit.log attached (I think I have the correct selection included).
>>>
>>> Thanks
>>>
>>> On Fri, Jan 26, 2018 at 2:41 PM, Kunal Khatua <kk...@mapr.com> wrote:
>>>
>>> What is the system memory and what are the allocations for heap and
>>> direct? The memory crash might be occurring due to insufficient heap. The
>>> limits parameter applies to the direct memory and not Heap.
>>>
>>> Can you share details in the logs from the crash?
>>>
>>> -----Original Message-----
>>> From: Timothy Farkas [mailto:tfarkas@mapr.com]
>>> Sent: Thursday, January 25, 2018 2:58 PM
>>> To: user@drill.apache.org
>>> Subject: Re: Creating a Tableau extracts with Drill 1.12 uses unlimited
>>> memory
>>>
>>> Hi Francis,
>>>
>>> I am guessing that each of your EMR nodes are quite large (32 or 64
>>> vcpus). On large machines Drill's planner over parallelizes and over
>>> allocates memory. There is a property "planner.width.max_per_node" which
>>> limits the number of operators that can simultaneously execute on a
>>> Drillbit for a query. If you configure the width per node to something like
>>> 5 or 10 (you may have to play around with it) things should start working.
>>>
>>> Thanks,
>>> Tim
>>>
>>> ______________________________ __
>>> From: Francis McGregor-Macdonald <fr...@mc-mac.com>
>>> Sent: Thursday, January 25, 2018 1:58:22 PM
>>> To: user@drill.apache.org
>>> Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited
>>> memory
>>>
>>> Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a
>>> Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set
>>> by planner.memory.max_query_memor y_per_node.
>>>
>>> The extract query consumes all memory and then crashes drill.
>>>
>>> Running the same query as a create table memory behaves as expected.
>>>
>>> The query complexity is trivial:
>>> select * from view only a single parquet with no calculated fields.
>>>
>>> Has anyone else observed this behavior?
>>>
>>>
>>>
>>>
>>
>
Re: Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Posted by Francis McGregor-Macdonald <fr...@mc-mac.com>.
Thanks Paul and Kunal,
I think I have the right information now. With Paul's changes (and fixing
up a zoo.cfg error) it isn't crashing, rather failing. Logs attached, still
blowing past memory limits. It does the same thing when re-running the
query from the web console so presumably its not actually Tableau related
despite me first generating it that way.
Thanks.
On Sat, Jan 27, 2018 at 1:15 PM, Francis McGregor-Macdonald <
francis@mc-mac.com> wrote:
> Thanks Paul,
>
> I will update with your suggested memory allocations also and retry.
>
> Zookeeper crashed too which might explain more? I have attached the logs
> from Zookeeper too.
>
> Thanks
>
> On Sat, Jan 27, 2018 at 6:45 AM, Paul Rogers <pa...@yahoo.com> wrote:
>
>> Hi Francis,
>>
>> Thanks much for the log. The log shows running a query, then immediately
>> shows entries that occur when starting Drill. I'm guessing that Drill
>> literally crashed at this point? This is more severe than the usual error
>> in which a query exhausts memory.
>>
>> Some general observations. The Drill memory is 60 GB, but system memory
>> is 61 GB. Perhaps try dropping total Drill memory some to give the OS and
>> other tasks more headroom. For a SELECT * memory, Drill needs far less than
>> what you have, so maybe try giving Drill 48 GB total.
>>
>> Then, Drill needs direct memory much more than heap. So, maybe give Drill
>> 39 GB direct, 8 GB heap and 1 GB (the default) for code cache. These
>> settings are in drill-env.sh.
>>
>> Kunal, you have more experience with these issues. Can you make
>> additional suggestions by looking at the log?
>>
>> Thanks,
>>
>> - Paul
>>
>>
>>
>> On Thursday, January 25, 2018, 10:20:29 PM PST, Francis
>> McGregor-Macdonald <fr...@mc-mac.com> wrote:
>>
>>
>> Hi all,
>>
>> I am guessing that each of your EMR nodes are quite large? EMR nodes are:
>> r4.2xlarge ('vcpu': 8, 'memory': 61)
>>
>> Property "planner.width.max_per_node" is set to = 6
>>
>> What is the system memory and what are the allocations for heap and
>> direct?
>> System Memory: 61GB (EMR nodes above)
>> drill_mem_heap: 12G
>> drill_mem_max: 48G
>>
>> The view is simple: SELECT * FROM s3://myparquet.parquet (14GB)
>>
>> planner.memory.max_query_memor y_per_node = 10479720202
>>
>> Drillbit.log attached (I think I have the correct selection included).
>>
>> Thanks
>>
>> On Fri, Jan 26, 2018 at 2:41 PM, Kunal Khatua <kk...@mapr.com> wrote:
>>
>> What is the system memory and what are the allocations for heap and
>> direct? The memory crash might be occurring due to insufficient heap. The
>> limits parameter applies to the direct memory and not Heap.
>>
>> Can you share details in the logs from the crash?
>>
>> -----Original Message-----
>> From: Timothy Farkas [mailto:tfarkas@mapr.com]
>> Sent: Thursday, January 25, 2018 2:58 PM
>> To: user@drill.apache.org
>> Subject: Re: Creating a Tableau extracts with Drill 1.12 uses unlimited
>> memory
>>
>> Hi Francis,
>>
>> I am guessing that each of your EMR nodes are quite large (32 or 64
>> vcpus). On large machines Drill's planner over parallelizes and over
>> allocates memory. There is a property "planner.width.max_per_node" which
>> limits the number of operators that can simultaneously execute on a
>> Drillbit for a query. If you configure the width per node to something like
>> 5 or 10 (you may have to play around with it) things should start working.
>>
>> Thanks,
>> Tim
>>
>> ______________________________ __
>> From: Francis McGregor-Macdonald <fr...@mc-mac.com>
>> Sent: Thursday, January 25, 2018 1:58:22 PM
>> To: user@drill.apache.org
>> Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
>>
>> Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a
>> Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set
>> by planner.memory.max_query_memor y_per_node.
>>
>> The extract query consumes all memory and then crashes drill.
>>
>> Running the same query as a create table memory behaves as expected.
>>
>> The query complexity is trivial:
>> select * from view only a single parquet with no calculated fields.
>>
>> Has anyone else observed this behavior?
>>
>>
>>
>>
>
RE: Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited
memory
Posted by Kunal Khatua <kk...@mapr.com>.
Sorry.. I completely missed the fact that it was 61GB for the System memory. (I’m used to seeing powers of 2) O:-)
Paul’s suggestion should be sufficient in my opinion. If Zookeeper crashed.. that is most likely indicative of excess memory allocation to Drill with no spare on the system.
I’m still not sure why Drill consume so much memory in the first place.
You could add the following flags to the JVM options (drill-env.sh) to generate the GC Logs:
-XX:+PrintGCDetails -XX:+PrintGCDateStamps -verbose:gc -Xloggc:/var/log/drill/gc.log
I also noticed that there were 2 queries in the system when the crash occurred, including an existing query ID without any reference to what the query was: 25953c99-7e37-fc27-98d1-2cb87b038dfc
Could you share the details with the above flag and no other query running?
Thanks
Kunal
From: Francis McGregor-Macdonald [mailto:francis@mc-mac.com]
Sent: Friday, January 26, 2018 4:16 PM
To: user@drill.apache.org
Subject: Re: Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Thanks Paul,
I will update with your suggested memory allocations also and retry.
Zookeeper crashed too which might explain more? I have attached the logs from Zookeeper too.
Thanks
On Sat, Jan 27, 2018 at 6:45 AM, Paul Rogers <pa...@yahoo.com>> wrote:
Hi Francis,
Thanks much for the log. The log shows running a query, then immediately shows entries that occur when starting Drill. I'm guessing that Drill literally crashed at this point? This is more severe than the usual error in which a query exhausts memory.
Some general observations. The Drill memory is 60 GB, but system memory is 61 GB. Perhaps try dropping total Drill memory some to give the OS and other tasks more headroom. For a SELECT * memory, Drill needs far less than what you have, so maybe try giving Drill 48 GB total.
Then, Drill needs direct memory much more than heap. So, maybe give Drill 39 GB direct, 8 GB heap and 1 GB (the default) for code cache. These settings are in drill-env.sh.
Kunal, you have more experience with these issues. Can you make additional suggestions by looking at the log?
Thanks,
- Paul
On Thursday, January 25, 2018, 10:20:29 PM PST, Francis McGregor-Macdonald <fr...@mc-mac.com>> wrote:
Hi all,
I am guessing that each of your EMR nodes are quite large? EMR nodes are: r4.2xlarge ('vcpu': 8, 'memory': 61)
Property "planner.width.max_per_node" is set to = 6
What is the system memory and what are the allocations for heap and direct?
System Memory: 61GB (EMR nodes above)
drill_mem_heap: 12G
drill_mem_max: 48G
The view is simple: SELECT * FROM s3://myparquet.parquet (14GB)
planner.memory.max_query_memor y_per_node = 10479720202
Drillbit.log attached (I think I have the correct selection included).
Thanks
On Fri, Jan 26, 2018 at 2:41 PM, Kunal Khatua <kk...@mapr.com>> wrote:
What is the system memory and what are the allocations for heap and direct? The memory crash might be occurring due to insufficient heap. The limits parameter applies to the direct memory and not Heap.
Can you share details in the logs from the crash?
-----Original Message-----
From: Timothy Farkas [mailto:tfarkas@mapr.com<ma...@mapr.com>]
Sent: Thursday, January 25, 2018 2:58 PM
To: user@drill.apache.org<ma...@drill.apache.org>
Subject: Re: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Hi Francis,
I am guessing that each of your EMR nodes are quite large (32 or 64 vcpus). On large machines Drill's planner over parallelizes and over allocates memory. There is a property "planner.width.max_per_node" which limits the number of operators that can simultaneously execute on a Drillbit for a query. If you configure the width per node to something like 5 or 10 (you may have to play around with it) things should start working.
Thanks,
Tim
______________________________ __
From: Francis McGregor-Macdonald <fr...@mc-mac.com>>
Sent: Thursday, January 25, 2018 1:58:22 PM
To: user@drill.apache.org<ma...@drill.apache.org>
Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set by planner.memory.max_query_memor y_per_node.
The extract query consumes all memory and then crashes drill.
Running the same query as a create table memory behaves as expected.
The query complexity is trivial:
select * from view only a single parquet with no calculated fields.
Has anyone else observed this behavior?
Re: Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Posted by Francis McGregor-Macdonald <fr...@mc-mac.com>.
Thanks Paul,
I will update with your suggested memory allocations also and retry.
Zookeeper crashed too which might explain more? I have attached the logs
from Zookeeper too.
Thanks
On Sat, Jan 27, 2018 at 6:45 AM, Paul Rogers <pa...@yahoo.com> wrote:
> Hi Francis,
>
> Thanks much for the log. The log shows running a query, then immediately
> shows entries that occur when starting Drill. I'm guessing that Drill
> literally crashed at this point? This is more severe than the usual error
> in which a query exhausts memory.
>
> Some general observations. The Drill memory is 60 GB, but system memory is
> 61 GB. Perhaps try dropping total Drill memory some to give the OS and
> other tasks more headroom. For a SELECT * memory, Drill needs far less than
> what you have, so maybe try giving Drill 48 GB total.
>
> Then, Drill needs direct memory much more than heap. So, maybe give Drill
> 39 GB direct, 8 GB heap and 1 GB (the default) for code cache. These
> settings are in drill-env.sh.
>
> Kunal, you have more experience with these issues. Can you make additional
> suggestions by looking at the log?
>
> Thanks,
>
> - Paul
>
>
>
> On Thursday, January 25, 2018, 10:20:29 PM PST, Francis McGregor-Macdonald
> <fr...@mc-mac.com> wrote:
>
>
> Hi all,
>
> I am guessing that each of your EMR nodes are quite large? EMR nodes are:
> r4.2xlarge ('vcpu': 8, 'memory': 61)
>
> Property "planner.width.max_per_node" is set to = 6
>
> What is the system memory and what are the allocations for heap and direct?
> System Memory: 61GB (EMR nodes above)
> drill_mem_heap: 12G
> drill_mem_max: 48G
>
> The view is simple: SELECT * FROM s3://myparquet.parquet (14GB)
>
> planner.memory.max_query_memor y_per_node = 10479720202
>
> Drillbit.log attached (I think I have the correct selection included).
>
> Thanks
>
> On Fri, Jan 26, 2018 at 2:41 PM, Kunal Khatua <kk...@mapr.com> wrote:
>
> What is the system memory and what are the allocations for heap and
> direct? The memory crash might be occurring due to insufficient heap. The
> limits parameter applies to the direct memory and not Heap.
>
> Can you share details in the logs from the crash?
>
> -----Original Message-----
> From: Timothy Farkas [mailto:tfarkas@mapr.com]
> Sent: Thursday, January 25, 2018 2:58 PM
> To: user@drill.apache.org
> Subject: Re: Creating a Tableau extracts with Drill 1.12 uses unlimited
> memory
>
> Hi Francis,
>
> I am guessing that each of your EMR nodes are quite large (32 or 64
> vcpus). On large machines Drill's planner over parallelizes and over
> allocates memory. There is a property "planner.width.max_per_node" which
> limits the number of operators that can simultaneously execute on a
> Drillbit for a query. If you configure the width per node to something like
> 5 or 10 (you may have to play around with it) things should start working.
>
> Thanks,
> Tim
>
> ______________________________ __
> From: Francis McGregor-Macdonald <fr...@mc-mac.com>
> Sent: Thursday, January 25, 2018 1:58:22 PM
> To: user@drill.apache.org
> Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
>
> Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a
> Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set
> by planner.memory.max_query_memor y_per_node.
>
> The extract query consumes all memory and then crashes drill.
>
> Running the same query as a create table memory behaves as expected.
>
> The query complexity is trivial:
> select * from view only a single parquet with no calculated fields.
>
> Has anyone else observed this behavior?
>
>
>
>
Fwd: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Posted by Francis McGregor-Macdonald <fr...@mc-mac.com>.
Hi all,
I am guessing that each of your EMR nodes are quite large? EMR nodes are:
r4.2xlarge ('vcpu': 8, 'memory': 61)
Property "planner.width.max_per_node" is set to = 6
What is the system memory and what are the allocations for heap and direct?
System Memory: 61GB (EMR nodes above)
drill_mem_heap: 12G
drill_mem_max: 48G
The view is simple: SELECT * FROM s3://myparquet.parquet (14GB)
planner.memory.max_query_memory_per_node = 10479720202
Drillbit.log attached (I think I have the correct selection included).
Thanks
On Fri, Jan 26, 2018 at 2:41 PM, Kunal Khatua <kk...@mapr.com> wrote:
> What is the system memory and what are the allocations for heap and
> direct? The memory crash might be occurring due to insufficient heap. The
> limits parameter applies to the direct memory and not Heap.
>
> Can you share details in the logs from the crash?
>
> -----Original Message-----
> From: Timothy Farkas [mailto:tfarkas@mapr.com]
> Sent: Thursday, January 25, 2018 2:58 PM
> To: user@drill.apache.org
> Subject: Re: Creating a Tableau extracts with Drill 1.12 uses unlimited
> memory
>
> Hi Francis,
>
> I am guessing that each of your EMR nodes are quite large (32 or 64
> vcpus). On large machines Drill's planner over parallelizes and over
> allocates memory. There is a property "planner.width.max_per_node" which
> limits the number of operators that can simultaneously execute on a
> Drillbit for a query. If you configure the width per node to something like
> 5 or 10 (you may have to play around with it) things should start working.
>
> Thanks,
> Tim
>
> ________________________________
> From: Francis McGregor-Macdonald <fr...@mc-mac.com>
> Sent: Thursday, January 25, 2018 1:58:22 PM
> To: user@drill.apache.org
> Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
>
> Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a
> Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set
> by planner.memory.max_query_memory_per_node.
>
> The extract query consumes all memory and then crashes drill.
>
> Running the same query as a create table memory behaves as expected.
>
> The query complexity is trivial:
> select * from view only a single parquet with no calculated fields.
>
> Has anyone else observed this behavior?
>
>
RE: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Posted by Kunal Khatua <kk...@mapr.com>.
What is the system memory and what are the allocations for heap and direct? The memory crash might be occurring due to insufficient heap. The limits parameter applies to the direct memory and not Heap.
Can you share details in the logs from the crash?
-----Original Message-----
From: Timothy Farkas [mailto:tfarkas@mapr.com]
Sent: Thursday, January 25, 2018 2:58 PM
To: user@drill.apache.org
Subject: Re: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Hi Francis,
I am guessing that each of your EMR nodes are quite large (32 or 64 vcpus). On large machines Drill's planner over parallelizes and over allocates memory. There is a property "planner.width.max_per_node" which limits the number of operators that can simultaneously execute on a Drillbit for a query. If you configure the width per node to something like 5 or 10 (you may have to play around with it) things should start working.
Thanks,
Tim
________________________________
From: Francis McGregor-Macdonald <fr...@mc-mac.com>
Sent: Thursday, January 25, 2018 1:58:22 PM
To: user@drill.apache.org
Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set by planner.memory.max_query_memory_per_node.
The extract query consumes all memory and then crashes drill.
Running the same query as a create table memory behaves as expected.
The query complexity is trivial:
select * from view only a single parquet with no calculated fields.
Has anyone else observed this behavior?
Re: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Posted by Timothy Farkas <tf...@mapr.com>.
Hi Francis,
I am guessing that each of your EMR nodes are quite large (32 or 64 vcpus). On large machines Drill's planner over parallelizes and over allocates memory. There is a property "planner.width.max_per_node" which limits the number of operators that can simultaneously execute on a Drillbit for a query. If you configure the width per node to something like 5 or 10 (you may have to play around with it) things should start working.
Thanks,
Tim
________________________________
From: Francis McGregor-Macdonald <fr...@mc-mac.com>
Sent: Thursday, January 25, 2018 1:58:22 PM
To: user@drill.apache.org
Subject: Creating a Tableau extracts with Drill 1.12 uses unlimited memory
Creating a creating a Tableau (with 10.3, 10.5 desktop) extract from a
Drill (1.12 on EMR) cluster memory appears not to adhere to the limits set
by planner.memory.max_query_memory_per_node.
The extract query consumes all memory and then crashes drill.
Running the same query as a create table memory behaves as expected.
The query complexity is trivial:
select * from view only a single parquet with no calculated fields.
Has anyone else observed this behavior?