Windows提交MapReduce异常,提示Shell output main command provided 1

问题现象

Windows下提交MapReduce任务抛出如下异常:

Diagnostics Exception from container-launch.
Container id container_e06_1501570910088_0010_02_000001
Exit code 1
Stack trace ExitCodeException exitCode=1:
    at org.apache.hadoop.util.Shell.runCommand(Shell.java:628)
    at org.apache.hadoop.util.Shell.run(Shell.java:525)
    at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:819)
    at org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor.launchContainer(LinuxContainerExecutor.java:388)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:313)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:88)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
    Shell output main command provided 1
    main: run as user is alphatan
    main: requested yarn user is alphatan
    Before Going to create dir
    Container exited with a non-zero exit code 1
    Failing this attempt, Failing the application.

可能原因

客户端配置缺乏配置项mapreduce.app-submission.cross-platform。

解决方案

在Configuration实例或者mapred-site.xml、user-mapred-site.xml中添加配置项mapreduce.app-submission.cross-platform,取值为true。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
禁止转载,如需转载请通过简信或评论联系作者。

推荐阅读更多精彩内容

  • 今天很无聊!早上因为尿急!9点就起来了!本来是打算在老爸还没出来的时候就去上厕所的,结果上完他就正好出来了!迷!我...
    oXXC阅读 803评论 0 0
  • 十五天蜕变成长落地实修课在每天的作业分享和老师及同修的陪伴中中结束了。有纠结、有收获、有改变,酸甜苦辣咸五...
    cxh666阅读 3,538评论 0 0