Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Hive job fail on TEZ due to out of memory..

avatar
Expert Contributor

Hi one of my job in hive on Tez gets fail at 98% due tojava.lang.OutOfMemoryError:Java heap space,

i am using HDP 2.1.2

i have below values

mapreduce.map.memory.mb=3584;

mapreduce.map.java.opts=-Xmx2560m;

mapreduce.reduce.memory.mb=3584;

mapreduce.reduce.java.opts=-Xmx2560m

Can any one help me to out this error is great appreciated..

Regards

sankar

1 ACCEPTED SOLUTION

avatar
New Member

Your settings are mapreduce settings which may be not recognized by tez. Try setting tez config 'tez.task.resource.memory.mb' and 'tez.task.launch.cmd-opts' corresppondingly.

View solution in original post

5 REPLIES 5

avatar
Guru

@rama

did you try increasing your mappers memory? and is your request failing with hive.execution.engine=mr as well?

avatar
New Member

Your settings are mapreduce settings which may be not recognized by tez. Try setting tez config 'tez.task.resource.memory.mb' and 'tez.task.launch.cmd-opts' corresppondingly.

avatar
New Member

I had similar issues on the Sandbox 2.5, increased

hive.tez.container.size to 1024 and

hive.tez.java.opts to Xmx8192m OOM issues went away.

avatar
Expert Contributor

Thank you all i have increesed all the above values to 2mb more..now job is working fine..

avatar
Master Mentor

Please select the best answer to close out the thread