- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Tez out of memory?
- Labels:
-
Apache Hive
-
Apache Tez
-
Apache Zeppelin
Created on ‎11-10-2017 10:16 AM - edited ‎08-18-2019 12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
I am trying to execute a command from zeppelin. I use the sandbox 2.6 and my VM has 16GB ram.
I dont know why it is out of memmory. Could anybody help me?
Created ‎11-10-2017 02:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please also try to setup the following parameters:
set hive.tez.java.opts=-Xmx1640m (0.8 times hive.tez.container.size) set tez.runtime.io.sort.mb=820 (0.4 times hive.tez.container.size) set tez.runtime.unordered.output.buffer.size-mb=205 (0.1 times hive.tez.container.size)
The following link provides good examples and explaination on Tez Tuning.
https://community.hortonworks.com/articles/14309/demystify-tez-tuning-step-by-step.html
.
Created ‎11-10-2017 10:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where do you see the OutOfMemory ? Can you please share the complete trace of OutOfMemory and where do you see it.
What is your "hive.tez.container.size" value ? (Can you try increasing it and then see if it helps).
If the Hive Table is ORC formatted then you can also refer to the following article for tuning: https://community.hortonworks.com/articles/68631/optimizing-hive-queries-for-orc-formatted-tables.ht...
.
Created on ‎11-10-2017 12:55 PM - edited ‎08-18-2019 12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
oh sorry...this will be better. Where could I foung info abou "hive.tez.container.size" value ?
Thanks
Created on ‎11-10-2017 01:10 PM - edited ‎08-18-2019 12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎11-10-2017 01:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No I set the value to 900MB and it is still not working...
Created ‎11-10-2017 01:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created on ‎11-10-2017 01:54 PM - edited ‎08-18-2019 12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I set it up....but i dont know, why my easy query select count (*) from cdr use 90% of Yarn ..?
take a look at screenshots..
Created ‎11-10-2017 02:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please also try to setup the following parameters:
set hive.tez.java.opts=-Xmx1640m (0.8 times hive.tez.container.size) set tez.runtime.io.sort.mb=820 (0.4 times hive.tez.container.size) set tez.runtime.unordered.output.buffer.size-mb=205 (0.1 times hive.tez.container.size)
The following link provides good examples and explaination on Tez Tuning.
https://community.hortonworks.com/articles/14309/demystify-tez-tuning-step-by-step.html
.
Created ‎11-11-2017 10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you....
According to your posted links and this link https://community.hortonworks.com/questions/67677/javalangoutofmemoryerror-java-heap-space-error.htm... I solved the problem.
Thank you.
Created ‎11-11-2017 10:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good to know that the issue is resolved. As the issue is resolved, hence it will be also great if you can mark this HCC thread as Answered by clicking on the "Accept" Button on the correct answer. That way other HCC users can quickly find the solution when they encounter the same issue.
