Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 202F51177F for ; Sun, 11 May 2014 12:06:35 +0000 (UTC) Received: (qmail 36157 invoked by uid 500); 11 May 2014 11:59:12 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 36038 invoked by uid 500); 11 May 2014 11:59:12 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 36028 invoked by uid 99); 11 May 2014 11:59:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 May 2014 11:59:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xiaotao.cs.nju@gmail.com designates 209.85.216.177 as permitted sender) Received: from [209.85.216.177] (HELO mail-qc0-f177.google.com) (209.85.216.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 May 2014 11:59:08 +0000 Received: by mail-qc0-f177.google.com with SMTP id i17so6443077qcy.8 for ; Sun, 11 May 2014 04:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uWcwKYEpP+T9Y+yE5g0os4+PQ/oVYpOwYIWoRc0lnMQ=; b=KmLJRTYb/QJTL3ssKJp2LacQoSmxG6pVgAgiN7YSVaRI6yAUT122/Yr1EWp/8GuDrx 2/uufSSMAACQYLKR0uLwY6ANqRG7bUX0jdA+r2OHsfYHRWpPN+RvNm/ztNcIUUuwKVU4 0OY8PLb0TaIAZecUQSj00/xn6WsdVkVldfWJ4HbCGa1s2lPZQujJ5K3kvWpvhTa+dJBg EHxljpMSNmHbMupQcnVyeqJq+lUkO47O3LKQkzOdwEbSxvB4CcE2ZkHK/krkiXj6vCAZ iO1pdOmHiZqbUDFe++UemoeScBNXRlsQebzHg7Gey2enm36JrfbnmFJUQtrJhBa2WrnZ FkSg== MIME-Version: 1.0 X-Received: by 10.224.50.81 with SMTP id y17mr29146503qaf.22.1399809527347; Sun, 11 May 2014 04:58:47 -0700 (PDT) Received: by 10.96.134.136 with HTTP; Sun, 11 May 2014 04:58:47 -0700 (PDT) In-Reply-To: References: Date: Sun, 11 May 2014 19:58:47 +0800 Message-ID: Subject: Re: No job can run in YARN (Hadoop-2.2) From: Tao Xiao To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7bf0c122a17f5204f91e8dcd X-Virus-Checked: Checked by ClamAV on apache.org --047d7bf0c122a17f5204f91e8dcd Content-Type: text/plain; charset=UTF-8 This is caused by properties *mapreduce.map.java.opts* and *mapreduce.reduce.java.opts* 2014-05-11 16:16 GMT+08:00 Tao Xiao : > I'm sure this problem is caused by the incorrect configuration. I > commented out all the configurations regarding memory, then jobs can run > successfully. > > > 2014-05-11 0:01 GMT+08:00 Tao Xiao : > > I installed Hadoop-2.2 in a cluster of 4 nodes, following Hadoop YARN >> Installation: The definitive guide >> . >> >> The configurations are as follows: >> >> ~/.bashrc core-site.xml >> hdfs-site.xml mapred-site.xml >> slaves >> yarn-site.xml >> >> >> I started NameNode, DataNodes, ResourceManager and NodeManagers >> successfully, but no job can run successfully. For example, I run the >> following job: >> >> [root@Single-Hadoop ~]# yarn jar >> /var/soft/apache/hadoop-2.2.0/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar >> pi 2 4 >> >> The output is as follows: >> >> 14/05/10 23:56:25 INFO mapreduce.Job: Task Id : >> attempt_1399733823963_0004_m_000000_0, Status : FAILED >> Exception from container-launch: >> org.apache.hadoop.util.Shell$ExitCodeException: >> 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(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$Sync.innerRun(FutureTask.java:303) >> at java.util.concurrent.FutureTask.run(FutureTask.java:138) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) >> at java.lang.Thread.run(Thread.java:662) >> >> >> >> 14/05/10 23:56:25 INFO mapreduce.Job: Task Id : >> attempt_1399733823963_0004_m_000001_0, Status : FAILED >> Exception from container-launch: >> org.apache.hadoop.util.Shell$ExitCodeException: >> 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(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$Sync.innerRun(FutureTask.java:303) >> at java.util.concurrent.FutureTask.run(FutureTask.java:138) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) >> at java.lang.Thread.run(Thread.java:662) >> >> ... ... >> >> >> 14/05/10 23:56:36 INFO mapreduce.Job: map 100% reduce 100% >> 14/05/10 23:56:37 INFO mapreduce.Job: Job job_1399733823963_0004 failed >> with state FAILED due to: Task failed task_1399733823963_0004_m_000000 >> Job failed as tasks failed. failedMaps:1 failedReduces:0 >> >> 14/05/10 23:56:37 INFO mapreduce.Job: Counters: 10 >> Job Counters >> Failed map tasks=7 >> Killed map tasks=1 >> Launched map tasks=8 >> Other local map tasks=6 >> Data-local map tasks=2 >> Total time spent by all maps in occupied slots (ms)=21602 >> Total time spent by all reduces in occupied slots (ms)=0 >> Map-Reduce Framework >> CPU time spent (ms)=0 >> Physical memory (bytes) snapshot=0 >> Virtual memory (bytes) snapshot=0 >> Job Finished in 24.515 seconds >> java.io.FileNotFoundException: File does not exist: hdfs:// >> Single-Hadoop.zd.com/user/root/QuasiMonteCarlo_1399737371038_1022927375/out/reduce-out >> at >> org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1110) >> at >> org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1102) >> at >> org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81) >> at >> org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1102) >> at >> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1749) >> at org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1773) >> at >> org.apache.hadoop.examples.QuasiMonteCarlo.estimatePi(QuasiMonteCarlo.java:314) >> at >> org.apache.hadoop.examples.QuasiMonteCarlo.run(QuasiMonteCarlo.java:354) >> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) >> at >> org.apache.hadoop.examples.QuasiMonteCarlo.main(QuasiMonteCarlo.java:363) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72) >> at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144) >> at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at org.apache.hadoop.util.RunJar.main(RunJar.java:212) >> >> >> >> Why would any job fail? Is it because the configurations are not >> correct? >> > > --047d7bf0c122a17f5204f91e8dcd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This is caused by properties=C2=A0mapreduce.map.java.op= ts and=C2=A0mapreduce.reduce.java.opts


2014-05-11 16:16 GMT+08:00 Tao Xi= ao <xiaotao.cs.nju@gmail.com>:
I'm sure this problem i= s caused by the incorrect configuration. I commented out all the configurat= ions regarding memory, then jobs can run successfully.=C2=A0


2014-05-11 0:01 GMT+08:00 Tao Xiao <xiaotao.cs.nju@gmail.com>= ;:

I installed Hadoop-2.2 in a cluster of 4 nodes, following = Hadoop YARN Installation: The d= efinitive guide.=C2=A0

The configurations are as follows:

= ~/.bashrc=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0core-site.xml=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0hdf= s-site.xml=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 mapred-site.xml = =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0slaves=C2=A0 =C2=A0 =C2=A0 =C2=A0 yarn-site.xml


I started NameNode, DataNodes, ResourceM= anager and NodeManagers successfully, but no job can run successfully. For = example, I =C2=A0run the following job:

[root@Sing= le-Hadoop ~]# =C2=A0 =C2=A0yarn jar /var/soft/apache/hadoop-2.2.0/share/had= oop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar pi 2 4

The output is as follows:

14/05/10 23:56:25 INFO mapreduce.Job: Task Id : attempt_13997338= 23963_0004_m_000000_0, Status : FAILED
Exception from container-l= aunch:=C2=A0
org.apache.hadoop.util.Shell$ExitCodeException:=C2=A0
at org.apache.hadoop.util.Shell.runC= ommand(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.nodemana= ger.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:= 195)
at org.apache.hadoop.yarn= .server.nodemanager.containermanager.launcher.ContainerLaunch.call(Containe= rLaunch.java:283)
at= org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.Contai= nerLaunch.call(ContainerLaunch.java:79)
at java.util.concurrent.F= utureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.= java:138)
at java.util.concurrent.T= hreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoo= lExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(T= hread.java:662)



14/0= 5/10 23:56:25 INFO mapreduce.Job: Task Id : attempt_1399733823963_0004_m_00= 0001_0, Status : FAILED
Exception from container-launch:=C2=A0
org.apache.hadoop.uti= l.Shell$ExitCodeException:=C2=A0
at org.apache.hadoop.util.Shell.runCommand(Shell.java:464)
at org.apache.hadoop.util.Shel= l.run(Shell.java:379)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:5= 89)
at org.apache.hadoop.yarn= .server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContain= erExecutor.java:195)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.Con= tainerLaunch.call(ContainerLaunch.java:283)
at org.apache.hadoop.yarn= .server.nodemanager.containermanager.launcher.ContainerLaunch.call(Containe= rLaunch.java:79)
at = java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.F= utureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Th= readPoolExecutor.java:895)
at java.util.concurrent.T= hreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:6= 62)

... ...


<= div>14/05/10 23:56:36 INFO mapreduce.Job: =C2=A0map 100% reduce 100%
<= div>14/05/10 23:56:37 INFO mapreduce.Job: Job job_1399733823963_0004 failed= with state FAILED due to: Task failed task_1399733823963_0004_m_000000
Job failed as tasks failed. failedMaps:1 failedReduces:0
14/05/10 23:56:37 INFO mapreduce.Job: Counters: 10
Job Counters=C2=A0
Failed map tasks=3D7
Killed map tasks=3D1
Launched map tasks=3D8=
Other local map ta= sks=3D6
Data-local map tasks=3D2=
Total time spent b= y all maps in occupied slots (ms)=3D21602
Total time spent by all reduces in occupied slots (m= s)=3D0
Map-Reduce Framework
CPU time spent (ms)=3D0=
Physical memory (b= ytes) snapshot=3D0
Virtual memory (bytes) s= napshot=3D0
Job Finished in 24.515 seconds
java.io.File= NotFoundException: File does not exist: hdfs://Single-Hadoop.zd.com/user/root/QuasiMonteCarlo_1399737= 371038_1022927375/out/reduce-out
at org.apache.hadoop.hdfs= .DistributedFileSystem$17.doCall(DistributedFileSystem.java:1110)
at org.apache.hadoop.hdfs.Dis= tributedFileSystem$17.doCall(DistributedFileSystem.java:1102)
at org.apache.hadoop.fs.F= ileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
at org.apache.hadoop.hdfs.Distrib= utedFileSystem.getFileStatus(DistributedFileSystem.java:1102)
at org.apache.hadoop.io.S= equenceFile$Reader.<init>(SequenceFile.java:1749)
at org.apache.hadoop.io.SequenceFile$Re= ader.<init>(SequenceFile.java:1773)
at org.apache.hadoop.exam= ples.QuasiMonteCarlo.estimatePi(QuasiMonteCarlo.java:314)
at org.apache.hadoop.examples.QuasiMo= nteCarlo.run(QuasiMonteCarlo.java:354)
at org.apache.hadoop.util= .ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.examples.QuasiMonteCarlo.main(QuasiMon= teCarlo.java:363)
at sun.reflect.NativeMeth= odAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMeth= odAccessorImpl.java:39)
at sun.reflect.Delegating= MethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
<= span style=3D"white-space:pre-wrap"> at java.lang.reflect.Method.inv= oke(Method.java:597)
at org.apache.hadoop.util= .ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)
<= span style=3D"white-space:pre-wrap"> at org.apache.hadoop.util.Progr= amDriver.run(ProgramDriver.java:144)
at org.apache.hadoop.exam= ples.ExampleDriver.main(ExampleDriver.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(= Native Method)
at sun.reflect.NativeMeth= odAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessor= Impl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Meth= od.invoke(Method.java:597)
= at org.apache.hadoop.util.RunJar.main(RunJar.java:212)



Why would any job f= ail? =C2=A0Is it because the configurations are not correct?=C2=A0


--047d7bf0c122a17f5204f91e8dcd--