Hadoop mapreduce容器以非零退出代码1退出 [英] Hadoop mapreduce container exited with a non-zero exit code 1

查看:91
本文介绍了Hadoop mapreduce容器以非零退出代码1退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行一些hadoop程序来提取Ubuntu中某些摘要的关键字.当我使用Hadoop运行程序时,出现以下错误.

I'm trying to run some hadoop program to extracting keywords of some abstracts in Ubuntu. When I run my program using Hadoop, I get the following error.

 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable



INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032
 WARN mapreduce.JobSubmitter: Hadoop command-line option parsing not performed. Implement the Tool interface and execute your application with ToolRunner to remedy this.
 INFO input.FileInputFormat: Total input paths to process : 1
 INFO mapreduce.JobSubmitter: number of splits:1
 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1404812840999_0001
 INFO impl.YarnClientImpl: Submitted application application_1404812840999_0001
 INFO mapreduce.Job: The url to track the job: http://shiva-VirtualBox:8088/proxy/application_1404812840999_0001/
 INFO mapreduce.Job: Running job: job_1404812840999_0001
 INFO mapreduce.Job: Job job_1404812840999_0001 running in uber mode : false
 INFO mapreduce.Job:  map 0% reduce 0%
 INFO mapreduce.Job: Job job_1404812840999_0001 failed with state FAILED due to: Application application_1404812840999_0001 failed 2 times due to AM Container for appattempt_1404812840999_0001_000002 exited with  exitCode: 1 due to: Exception from container-launch: org.apache.hadoop.util.Shell$ExitCodeException: 
org.apache.hadoop.util.Shell$ExitCodeException: 
    at org.apache.hadoop.util.Shell.runCommand(Shell.java:505)
    at org.apache.hadoop.util.Shell.run(Shell.java:418)
    at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:650)
    at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:195)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:283)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:79)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)


Container exited with a non-zero exit code 1
.Failing this attempt.. Failing the application.
14/07/08 14:21:44 INFO mapreduce.Job: Counters: 0

此错误的原因是什么?

请注意,我将我的mapreduce项目转换为maven项目,以便在我的代码中使用lucene库.

Note that I converted my mapreduce project to maven project for using lucene library in my code.

推荐答案

增加了线程数,充分利用了JVM内存和CPU.请增加JVM的大小,并增加Mapper和reducer任务的内存限制.conf.set("mapreduce.map.memory.mb","4096");conf.set("mapreduce.map.java.opts","-Xmx3500m");

Number of thread increased, JVM memory and CPU is fully utilised. Please increase the JVM size and increase memory limit of Mapper and reducer task. conf.set("mapreduce.map.memory.mb", "4096"); conf.set("mapreduce.map.java.opts", "-Xmx3500m");

这篇关于Hadoop mapreduce容器以非零退出代码1退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆