eclipse中运行mapreduce 异常 --java.lang.OutOfMemoryError: Java heap space

描述:内存溢出,堆不够用

异常

14/03/26 23:11:36 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
14/03/26 23:11:36 WARN mapred.JobClient: No job jar file set.  User classes may not be found. See JobConf(Class) or JobConf#setJar(String).
14/03/26 23:11:36 INFO input.FileInputFormat: Total input paths to process : 2
14/03/26 23:11:36 WARN snappy.LoadSnappy: Snappy native library not loaded
14/03/26 23:11:37 INFO mapred.JobClient: Running job: job_local_0001
14/03/26 23:11:37 INFO mapred.Task:  Using ResourceCalculatorPlugin : null
14/03/26 23:11:37 INFO mapred.MapTask: io.sort.mb = 100
14/03/26 23:11:37 WARN mapred.LocalJobRunner: job_local_0001
java.lang.OutOfMemoryError: Java heap space
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.<init>(MapTask.java:949)
at org.apache.hadoop.mapred.MapTask$NewOutputCollector.<init>(MapTask.java:674)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:756)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:212)
14/03/26 23:11:38 INFO mapred.JobClient:  map 0% reduce 0%
14/03/26 23:11:38 INFO mapred.JobClient: Job complete: job_local_0001
14/03/26 23:11:38 INFO mapred.JobClient: Counters: 0

解决办法:
增大堆内存 ,右键run as -> run configurations 
参数:-Xms512M -Xmx1024M 大小根据自己情况调整

eclipse中运行mapreduce 异常 --java.lang.OutOfMemoryError: Java heap space

eclipse中运行mapreduce 异常 --java.lang.OutOfMemoryError: Java heap space,布布扣,bubuko.com

eclipse中运行mapreduce 异常 --java.lang.OutOfMemoryError: Java heap space

上一篇:HTML 常用标签


下一篇:Java Web项目(Extjs)报错五