Hadoop mapreduce 容器以非零退出代码 1 退出

标签 hadoop lucene mapreduce

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

 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

这个错误的原因是什么?

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

最佳答案

你的资源管理器真的在/0.0.0.0:8032 上吗?它还表明您没有使用 Toolrunner,因此请尝试重写您的 mapreduce Hadoop: Implementing the Tool interface for MapReduce driver .

希望对你有帮助

关于Hadoop mapreduce 容器以非零退出代码 1 退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24629707/

相关文章:

hadoop - 外壳图标未显示在色相中

使用 Awk 的 Hadoop 示例 map reduce 程序

java - 如何将数据附加到现有的 Parquet 文件

hibernate - Hibernate Search-如果以前未对现有数据建立索引,则重新创建索引

elasticsearch - kibana中两个不同查询的除法计数

java - 控制不会进入 hadoop 中的 reducer

hadoop - 无法加载hadoop fs

ruby-on-rails - 使用 Solr 搜索按相关性对结果进行排序

hadoop fsck 不起作用

mongodb - 如何只返回选定的几个嵌入对象的对象?