Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 871 Bytes

2016-04-27-spark-error.md

File metadata and controls

37 lines (27 loc) · 871 Bytes
layout title category tags keywords description
post
spark 错误集锦
技术
Spark

{:toc} 基于hadoop2.7.1集群

系统为centos 6.4 ,64bit

1.spark-shell 不能执行

错误信息:

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000755500000, 2863661056, 0) failed; error='Cannot allocate memory' (errno=12)#

  • 1.There is insufficient memory for the Java Runtime Environment to continue.
  • 2.Native memory allocation (malloc) failed to allocate 2863661056 bytes for committing reserved memory.
  • 3.An error report file with more information is saved as:
  • 4./datac/spark/app-20150123091936-0000/89/hs_err_pid2247.log

错误原因: 执行内存不够,最小约370M

解决办法:

# spark-shell --executor-memory 500M  --driver-memory 500M 

取消spark-default.sh的所有自定义设置