INFO : Starting task [Stage-14:MAPREDLOCAL] in serial mode Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0 Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006e9990000, 3597074432, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 3597074432 bytes for committing reserved memory. # An error report file with more information is saved as: # /run/cloudera-scm-agent/process/1740-hive-HIVESERVER2/hs_err_pid15457.log ERROR : Execution failed with exit status: 1 ERROR : Obtaining error information ERROR : Task failed! Task ID: Stage-14 Logs: ERROR : /var/log/hive/hadoop-cmf-hive-HIVESERVER2-master01.rupeeplus.rongtime.awsaps1.in.log.out ERROR : FAILED: Execution Error, return code 1 from报错原因:
hive客户端和有使用MaxPermSize=512M参数。
解决方案:- 如果是使用hive客户端的方式:
set mapreduce.reduce.java.opts=-Xmx5000M -XX:MaxPermSize=1024m; set mapreduce.map.java.opts=-Xmx5000M -XX:MaxPermSize=1024m;
- 如果是使用hue/hiveserver2的方式
需要修改:
- 客户端 Java 配置选项
- Hive metastore Server 的 Java 配置选项
- HiveServer2 的 Java 配置选项
这三个里面如果有MaxPermSize 参数,则去掉,然后重启hive服务。



