執(zhí)行了hadoop jar word_count_class/wordcount.jar WordCount input_wordcount output_wordcount報錯誤了
18/01/23 17:04:46 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
18/01/23 17:04:46 INFO input.FileInputFormat: Total input paths to process : 2
18/01/23 17:04:46 INFO util.NativeCodeLoader: Loaded the native-hadoop library
18/01/23 17:04:46 WARN snappy.LoadSnappy: Snappy native library not loaded
18/01/23 17:04:46 INFO mapred.JobClient: Running job: job_201801222023_0005
18/01/23 17:04:47 INFO mapred.JobClient:? map 0% reduce 0%
18/01/23 17:05:00 INFO mapred.JobClient: Task Id : attempt_201801222023_0005_m_000000_0, Status : FAILED
java.lang.Throwable: Child Error
? ? ? ? at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:271)
Caused by: java.io.IOException: Task process exit with nonzero status of 1.
? ? ? ? at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:258)
attempt_201801222023_0005_m_000000_0: #
attempt_201801222023_0005_m_000000_0: # There is insufficient memory for the Java Runtime Environment to continue.
attempt_201801222023_0005_m_000000_0: # Native memory allocation (mmap) failed to map 99618816 bytes for committing reserved memory.
attempt_201801222023_0005_m_000000_0: # An error report file with more information is saved as:
attempt_201801222023_0005_m_000000_0: # /hadoop/mapred/local/taskTracker/root/jobcache/job_201801222023_0005/attempt_201801222023_0005_m_000000_0/work/hs_err_pid19949.log
attempt_201801222023_0005_m_000000_0: Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000f8550000, 99618816, 0) failed; error='Cannot allocate memory' (errno=12)
2018-01-26
這不是說沒有有效的內(nèi)存空間給java運行環(huán)境么?是不是內(nèi)存不夠用還是你本身沒有設置函數(shù)什么的,第一個job運行失敗的原因