转载请标明出处: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,原来是不支持这个参数导致。修改后就能正确运行,居然折腾了很久。
分享到:
相关推荐
安装您必须在系统上安装gst-launch-1.0 (在基于debian发行版的gstreamer1.0-tools软件包中) npm i node-gstreamer-launch 关于这个软件包是一个简单的工具,可以帮助您构建gstreamer管道。线性管道示例const gst =...
web-launch-app Intro 唤起App到指定页、通过Scheme调用端能力、下载安装包...} from 'web-launch-app'; const lanchApp = new LaunchApp(config); // 简单唤起 lanchApp.open({ page: 'pagename/action', param:{ k
例子jobs : deployment : runs-on : ubuntu-latest steps : - name : Deploy Stage uses : fjogeleit/http-request-action@master with : url : ' ... ' POST ' username : ${{ secrets.AWX_USER }} password : ${...
Ruby推出代理 一个可以轻松使用 launchd 的库简介 require 'launch_agent'agent = LaunchAgent :: Daemon . new ( 'ruby' , '/path/to/foo.rb' , 'arg1' , 'arg2' )# loadagent . load# unloadagent . unloadCLI % ...
2.要点:跳转小程序:wx-open-launch-weapp 用于页面中提供一个可跳转指定小程序的按钮。使用此标签后,用户需在网页内点击标签按钮方可跳转小程序; 3、确保你的网页中引入了微信提供的JavaScript SDK,一定要是...
压缩包涵盖 sbt-launch-0.11.0,sbt-launch-0.11.2,sbt-launch-0.11.3,sbt-launch-0.13.9版本
刚启动 在全新的会话中,在任何操作系统上启动任何浏览器! $ just-launch chrome ... const launch = require ( 'just-launch' ) // using async/await const browser = await launch ( 'chrome' ,
针对SparkR安装出现的Invalid or corrupt jarfile sbt/sbt-launch-0.13.5.jar替代
灰烬发暗 该插件包装了功能标记服务,并提供了一些帮助程序来在您的应用程序中实现功能标记安装$ ember install ember-launch-darkly配置ember-launch-darkly可以从config/environment.js中进行如下config/...
akka java源码QMG圣 MultiMC版本:0.4.5 Minecraft文件夹是:C:/ Users ...NewLaunch.jar]使用onesix启动器。 主类:net.minecraft.launchwrapper.Launch本机路径:C:/ Users / Brayden / Download
java -noverify -Xmx512M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -jar `dirname $0`/clojure.jar "$@" $时间clojure t.clj real 0m0.899s user 0m1.220s sys 0m0.076s 雪人 $ echo〜/ bin /...
Plumbers_on_Code-alpha-launch 重做的文件
conda launch提供了一种机制,可以将标准 IPython Notebook 转换为具有命令行和基于 Web 的界面的“应用程序”。 Notebooks 保持 100% 常规 IPython Notebooks,因此所有其他工具继续工作(IPython Notebook server...
"C:\Program Files\BPFTP Server\bpftpserver-service.exe" -install -name:"BPFTPServer" -launch:"bpftpserver.exe -h -s -service" "C:\Program Files\BPFTP Server\Administrative Tools\Start BPFTPServer ...
type t2.micro --security-group-ids sg-xxxx --iam-instance-profile Name=iam-instance-profile --key-name MyKeyPair aws --profile profile ec2 modify-image-attribute --image-id ami-xxx --launch-permission...
Academia-launch-base-rockets:Site para Academia e Alunos
预发布Pre-Launch 是一个简单的主题,您可以在构建新的 Zendesk 主题时使用它。 该主题目前为您提供倒数计时器以及提交票证的功能。 这是一个非常简单的主题,您只需编辑两页 HTML。 这个主题是响应式的,适用于许多...
ChainID: fetchhub-1 种子: 9f9774d88bb6ff9f43b395baf0e7a4baba27dec6@connect-fetchhub.m-v2-london-c.fetch-ai.com:36856 区块浏览器: https://explore-fetchhub.fetch.ai : ...
mc-launch 一个基于nodeJS和聚合物的简单Minecraft Launcher 我们将用于应用程序的聚合物部分 Polymer-starter-kit的许可证: : TODO(很多) nw.js客户端 聚合物温泉 节点脚本
# Command used to launch PHP CodeSniffer (optional - default: phpcs) command=phpcs # Path used to load Standards (optional) standard-path=path/to/PHPCS/Standards/ # Standard used by PHP CodeSniffer ...