• <legend id='wyV2B'><style id='wyV2B'><dir id='wyV2B'><q id='wyV2B'></q></dir></style></legend>

    1. <i id='wyV2B'><tr id='wyV2B'><dt id='wyV2B'><q id='wyV2B'><span id='wyV2B'><b id='wyV2B'><form id='wyV2B'><ins id='wyV2B'></ins><ul id='wyV2B'></ul><sub id='wyV2B'></sub></form><legend id='wyV2B'></legend><bdo id='wyV2B'><pre id='wyV2B'><center id='wyV2B'></center></pre></bdo></b><th id='wyV2B'></th></span></q></dt></tr></i><div id='wyV2B'><tfoot id='wyV2B'></tfoot><dl id='wyV2B'><fieldset id='wyV2B'></fieldset></dl></div>

      1. <small id='wyV2B'></small><noframes id='wyV2B'>

          <bdo id='wyV2B'></bdo><ul id='wyV2B'></ul>

      2. <tfoot id='wyV2B'></tfoot>

        从 windows eclipse 运行 Mapreduce(yarn) 时出错

        时间:2023-09-26

          • <tfoot id='x6V4N'></tfoot>
                <tbody id='x6V4N'></tbody>

                <bdo id='x6V4N'></bdo><ul id='x6V4N'></ul>
              • <legend id='x6V4N'><style id='x6V4N'><dir id='x6V4N'><q id='x6V4N'></q></dir></style></legend>

                <small id='x6V4N'></small><noframes id='x6V4N'>

                <i id='x6V4N'><tr id='x6V4N'><dt id='x6V4N'><q id='x6V4N'><span id='x6V4N'><b id='x6V4N'><form id='x6V4N'><ins id='x6V4N'></ins><ul id='x6V4N'></ul><sub id='x6V4N'></sub></form><legend id='x6V4N'></legend><bdo id='x6V4N'><pre id='x6V4N'><center id='x6V4N'></center></pre></bdo></b><th id='x6V4N'></th></span></q></dt></tr></i><div id='x6V4N'><tfoot id='x6V4N'></tfoot><dl id='x6V4N'><fieldset id='x6V4N'></fieldset></dl></div>
                • 本文介绍了从 windows eclipse 运行 Mapreduce(yarn) 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在从我的 Eclipse 中运行 WordCount 程序.我尝试使用 Hadoop1.x 运行良好.在 hadoop2.x 上运行时遇到问题

                  I am running a WordCount program from my eclipse. I tried with Hadoop1.x it is running fine. Facing issue while running on hadoop2.x

                  我试过了1)将所有 xml 添加到我的类路径中.2)也尝试了conf.set(),在conf对象中设置xml属性.

                  i tried 1)added all xml into my classpath. 2)also tried conf.set(), setting xml properties in conf object.

                  还在日志中显示:-没有可用于容器 container_1394042163908_0573_01_000001 的日志

                  Also in logs it says :-No logs available for container container_1394042163908_0573_01_000001

                    Application application_1394042163908_0573 failed 2 times due to AM Container for      appattempt_1394042163908_0573_000002 exited with exitCode: 1 due to: Exception from container-launch:
                  org.apache.hadoop.util.Shell$ExitCodeException: /bin/bash: line 0: fg: no job control
                  at org.apache.hadoop.util.Shell.runCommand(Shell.java:464)
                  at org.apache.hadoop.util.Shell.run(Shell.java:379)
                  at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:589)
                  at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerEx    ecutor.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$Sync.innerRun(FutureTask.java:334)
                  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)`enter code here`
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
                  at java.lang.Thread.run(Thread.java:722)
                  .Failing this attempt.. Failing the application.
                  

                  推荐答案

                  我已经解决了这个问题,有一个jira可以解决它:https://issues.apache.org/jira/browse/MAPREDUCE-5655

                  I have figured out the issue, there is a jira for it:https://issues.apache.org/jira/browse/MAPREDUCE-5655

                  我刚刚添加了 YARNRunner.java &MRApps.java 到我的项目.它还需要在 windows 框上的 mapred-site.xml 中添加以下属性,以便作业启动器知道作业运行器将是一个 linux:

                  I just added YARNRunner.java & MRApps.java to my project . It also reqires to add the following property to mapred-site.xml on the windows box, so that the job launcher knows, that the job runner will be a linux:

                  <property>
                  <name>mapred.remote.os</name>
                  <value>Linux</value>
                  <description>Remote MapReduce framework's OS, can be either Linux or Windows</description>
                  </property>
                  

                  而且 MapReduce 现在运行良好.

                  And MapReduce is running fine now.

                  同时将 org.apache.hadoop.util.Shell.java 复制到您的项目中.

                  Also Copy org.apache.hadoop.util.Shell.java into your project.

                  您可以注释掉下面这行,以消除 winutils.exe 错误.
                  throw new IOException("在 Hadoop 二进制文件中找不到可执行文件 " + fullExeName + ".");

                  You can comment out the below line,to remove the winutils.exe Error.
                  throw new IOException("Could not locate executable " + fullExeName + " in the Hadoop binaries.");

                  这篇关于从 windows eclipse 运行 Mapreduce(yarn) 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:乌兹 &gt;Java 动作 &gt;为什么属性 oozie.laun 下一篇:如何在 Hadoop MapReduce 中将对象设置为 Map 输出的值

                  相关文章

                  最新文章

                  • <bdo id='jtWkg'></bdo><ul id='jtWkg'></ul>

                      <small id='jtWkg'></small><noframes id='jtWkg'>

                    1. <tfoot id='jtWkg'></tfoot>
                    2. <legend id='jtWkg'><style id='jtWkg'><dir id='jtWkg'><q id='jtWkg'></q></dir></style></legend>

                      <i id='jtWkg'><tr id='jtWkg'><dt id='jtWkg'><q id='jtWkg'><span id='jtWkg'><b id='jtWkg'><form id='jtWkg'><ins id='jtWkg'></ins><ul id='jtWkg'></ul><sub id='jtWkg'></sub></form><legend id='jtWkg'></legend><bdo id='jtWkg'><pre id='jtWkg'><center id='jtWkg'></center></pre></bdo></b><th id='jtWkg'></th></span></q></dt></tr></i><div id='jtWkg'><tfoot id='jtWkg'></tfoot><dl id='jtWkg'><fieldset id='jtWkg'></fieldset></dl></div>