当前位置:首页 > 开发 > 开源软件 > 正文

解决Exception from container-launch: ExitCodeException exitCode=1的另类错误

发表于: 2014-08-21   作者:BlackWing   来源:转载   浏览次数:
摘要: 转载请标明出处:http://blackwing.iteye.com/blog/2107107 环境为hadoop2.2,在linux下运行自己的job,报如下错误: Exception from container-launch: ExitCodeException exitCode=1: ExitCodeException exitCode=1: at
转载请标明出处:http://blackwing.iteye.com/blog/2107107

环境为hadoop2.2,在linux下运行自己的job,报如下错误:

Exception from container-launch: ExitCodeException exitCode=1: 
ExitCodeException exitCode=1: 
        at org.apache.hadoop.util.Shell.runCommand(Shell.java:538)
        at org.apache.hadoop.util.Shell.run(Shell.java:455)
        at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:702)
        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:300)
        at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:81)
        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


但运行自带wordcount却能正常执行。google了很久,无非都是建议在mapred-site.xml中增加:
<property>
       <name>mapreduce.application.classpath</name>
       <value>
            /usr/local/cluster/hadoop-2.2.0/etc/hadoop,
            /usr/local/cluster/hadoop-2.2.0/share/hadoop/common/*,
            /usr/local/cluster/hadoop-2.2.0/share/hadoop/common/lib/*,
            /usr/local/cluster/hadoop-2.2.0/share/hadoop/hdfs/*,
            /usr/local/cluster/hadoop-2.2.0/share/hadoop/hdfs/lib/*,
            /usr/local/cluster/hadoop-2.2.0/share/hadoop/mapreduce/*,
            /usr/local/cluster/hadoop-2.2.0/share/hadoop/mapreduce/lib/*,
            /usr/local/cluster/hadoop-2.2.0/share/hadoop/yarn/*,
            /usr/local/cluster/hadoop-2.2.0/share/hadoop/yarn/lib/*
       </value>
</property>

但是问题依旧。从log中发现一个奇怪的输出:
Improperly specified VM option 'PretenureSizeThreshold'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

立刻想到自己设置的mapred.child.java.opts参数,其中就有PretenureSizeThreshold,原来是不支持这个参数导致。修改后就能正确运行,居然折腾了很久。

解决Exception from container-launch: ExitCodeException exitCode=1的另类错误

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

编辑推荐
Error Message: "The program can't start because MSCVR100.dll is missing from your computer. T
关于struts里的异常处理,用到动态actionform,无需写代码,只需在配置文件里配置即可 myeclipse里新
关于struts里的异常处理,用到动态actionform,无需写代码,只需在配置文件里配置即可 myeclipse里新
Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的
过去thin驱动连接没问题,改成oci方式报一下错误: 写道 # # An unexpected error has been detecte
1.打开 >> Myeclipse或Eclipse.(我使用的是Myeclipse) 2.打开 >> Window >> Pref
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.select
遇到问题以后先查看日志,以下是常见的错误情况及解决方法,希望对大家有所帮助。 1、启动hadoop时
今天在将一个开源Android代码import到Android Studio 1.2.2中,在编译期间出现一个“Unable to exec
“本文是 Exception 处理的一篇不错的文章,从 Java Exception 的概念介绍起,依次讲解了 Exception
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号