09-11-2018 03:15 AM
I am trying to run select count(*) from table_name query in hive, but it is giving below error.
Diagnostic Messages for this Task:
Error: Java heap space
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
I tried using export HADOOP_CLIENT_OPTS=-Xmx4g and then launching hive , query executed once. but now its not working afterwards.
I used analyze table command also and inner query option as well. but no luck.
09-11-2018 10:44 AM
09-12-2018 05:04 AM
Thanks for inputs. Job is not failing immediately. After 81% completion of mappers, it is failing.Can you suggest how to increase map or reduce memory just for hive as our other applications are running fine.