Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFD13C36C for ; Fri, 22 Jun 2012 11:20:21 +0000 (UTC) Received: (qmail 36936 invoked by uid 500); 22 Jun 2012 11:20:18 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 36783 invoked by uid 500); 22 Jun 2012 11:20:18 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 36755 invoked by uid 99); 22 Jun 2012 11:20:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2012 11:20:17 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLY,FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gemini5201314@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2012 11:20:11 +0000 Received: by obbwd18 with SMTP id wd18so2188614obb.35 for ; Fri, 22 Jun 2012 04:19:51 -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=Qnnd1L5MqCP8jvWmpaKV0pRPbLeSPbPWRbm7Bfmw2t0=; b=Czv3doCeBw3trR+5X6ZT5ql02y6qVHU2gXeB2UQ6C6NdKXDAPznb36mPgJYqtn3u9S HIO4hgpfFTBffZVqDDoYwov7MePWNV4QcbxwhJwnyohdrNL3wLeGlQVpqY8bKhdjgY5u cyHjazvGuPmVdm+xb873sN8l8dzCMw05ZUv/82yOzDBY7O8oBmDdNTLyPCQ6jpcFNoYu 3bBUv6A227ImmP0aP5jxXGOfvvbEap3gYEHX/vOyxyV+q4gqmJTgqi8HbCyb4h+LdMrN EfH0kok6mt/82Ja91CSxT5EWhTmhGFTGI8v+xP2E4Nt9MWkdmFbc9i4IOMjbax305pIe 2QGg== MIME-Version: 1.0 Received: by 10.60.4.165 with SMTP id l5mr1533119oel.41.1340363990969; Fri, 22 Jun 2012 04:19:50 -0700 (PDT) Received: by 10.60.141.40 with HTTP; Fri, 22 Jun 2012 04:19:50 -0700 (PDT) In-Reply-To: References: <4F54E680-65C3-48B5-ACCD-17D765C1E2F3@hortonworks.com> Date: Fri, 22 Jun 2012 19:19:50 +0800 Message-ID: Subject: Re: Error starting MRAppMaster From: gemini alex To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8ff1c2e88d2ce204c30dcfba X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1c2e88d2ce204c30dcfba Content-Type: text/plain; charset=UTF-8 the capacityscheduler jar in share/hadoop/mapreduce/*resourcemanager*.jar already has a default capacity-default.xml in it. I think maybe this is a packaging issue. 2012/6/22 Prajakta Kalmegh > Hi Vinod > > I am actually using the 'mvn package -Pdist -DskipTests -Dtar' command as > described in the BUILDING.txt file after cloning Hadoop. Then I am using > the eclipse goal with mvn to set it up for eclipse as described in < > http://wiki.apache.org/hadoop/EclipseEnvironment> page. To setup YARN, I > am > following instructions in < > > http://hadoop.apache.org/common/docs/r2.0.0-alpha/hadoop-yarn/hadoop-yarn-site/SingleCluster.html > >. > > Finally setting up the env variables and starting the > namenode/datanode/resourcemanager/nodemanager and historyserver using > appropriate daemons. > > I just saw the below mentioned JIRA and tried commenting out the code for > CapacityScheduler. Since this worked, I thought it might be an issue with > using CapacityScheduler. Any idea on the root cause? > > Even now, if I add the property in my yarn-site.xml, the job hangs or gives > the below error. I am new to Hadoop (used it before but never setup for > making changes to it) so not sure if I am doing something wrong in > building/setting it up. > > Regards, > Prajakta > > On Fri, Jun 22, 2012 at 2:36 AM, Vinod Kumar Vavilapalli < > vinodkv@hortonworks.com> wrote: > > > > > This has got nothing to do with the scheduler. > > > > I believe this has got to do with some compilation issue. How did you > > build hadoop? > > > > Also, I found that the repo at github (which is a mirror of git repo at > > apache) doesn't always pick all the commits immediately. You are better > off > > checking out from svn ( > > http://hadoop.apache.org/common/version_control.html) > > > > HTH, > > +Vinod > > > > > > On Jun 21, 2012, at 9:34 AM, Prajakta Kalmegh wrote: > > > > > Okay, the below problem was fixed after commenting out the property to > > use > > > CapacityScheduler from my yarn-site.xml. I found a reference to this in > > > this JIRA . YARN > > now > > > uses the default FIFO scheduler. > > > > > > Is the Dispatcher used in the CapacityScheduler's (or any scheduler's) > > > flow? > > > > > > Thanks in advance. > > > Regards, > > > Prajakta > > > > > > > > > > > > > > > > > > On Thu, Jun 21, 2012 at 10:53 AM, Prajakta Kalmegh > >wrote: > > > > > >> Hi Jagat > > >> > > >> Thanks for your reply. I am not using Pig. I have the latest hadoop > > >> running cloned from github trunk. Actually I was able to execute my > > >> programs until I refreshed my github foked copy yesterday and ran a > > build > > >> on it. :( > > >> > > >> I figured out from a debug that the lines that are creating a problem > > are: > > >> ---------------- > > >> //service to log job history events > > >> EventHandler historyService = > > >> createJobHistoryHandler(context); > > >> > > >> > > > dispatcher.register(org.apache.hadoop.mapreduce.jobhistory.EventType.class, > > >> historyService); > > >> ---------------- > > >> in the MRAppMaster.java class. The reason being the register method > > >> from org.apache.hadoop.yarn.event.Dispatcher is not > > >> accepting EventHandler as the second argument. Not > sure > > >> why. > > >> > > >> Regards, > > >> Prajakta > > >> > > >> > > >> > > >> On Thu, Jun 21, 2012 at 10:22 AM, Jagat Singh > >wrote: > > >> > > >>> Seems you are using Pig with Hadoop 0.23 or 2.0 version. > > >>> > > >>> Can you quickly recompile pig with 23 option and try this again. > > >>> > > >>> > > >>> > > >>> On Thu, Jun 21, 2012 at 10:02 AM, Prajakta Kalmegh < > pkalmegh@gmail.com > > >>>> wrote: > > >>> > > >>>> Hi > > >>>> > > >>>> I am getting the following error while trying to execute any example > > >>>> (wordcount, terasort etc): > > >>>> 12/06/21 09:52:39 INFO mapreduce.Job: Running job: > > >>> job_1340251923324_0001 > > >>>> 12/06/21 09:52:45 INFO mapreduce.Job: Job job_1340251923324_0001 > > >>> running in > > >>>> uber mode : false > > >>>> 12/06/21 09:52:45 INFO mapreduce.Job: map 0% reduce 0% > > >>>> 12/06/21 09:52:45 INFO mapreduce.Job: Job job_1340251923324_0001 > > failed > > >>>> with state FAILED due to: Application application_1340251923324_0001 > > >>> failed > > >>>> 1 times due to AM Container for appattempt_1340251923324_0001_000001 > > >>> exited > > >>>> with exitCode: 1 due to: > > >>>> .Failing this attempt.. Failing the application. > > >>>> 12/06/21 09:52:45 INFO mapreduce.Job: Counters: 0 > > >>>> ----------------------------- > > >>>> > > >>>> *The contents of containers logs are pasted below:* > > >>>> 2012-06-21 09:52:43,856 INFO [main] > > >>>> org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Created MRAppMaster > > for > > >>>> application appattempt_1340251923324_0001_000001 > > >>>> 2012-06-21 09:52:44,625 FATAL [main] > > >>>> org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Error starting > > >>> MRAppMaster > > >>>> java.lang.Error: Unresolved compilation problems: > > >>>> The method register(Class, EventHandler) in the type > > >>>> Dispatcher is not applicable for the arguments (Class, > > >>>> EventHandler) > > >>>> org.apache.hadoop.mapreduce.jobhistory.EventType cannot be resolved > to > > >>> a > > >>>> type > > >>>> > > >>>> at > > >>>> > > >>> > > org.apache.hadoop.mapreduce.v2.app.MRAppMaster.init(MRAppMaster.java:261) > > >>>> at > > >>>> > > >>> > > > org.apache.hadoop.mapreduce.v2.app.MRAppMaster$1.run(MRAppMaster.java:1049) > > >>>> at java.security.AccessController.doPrivileged(Native Method) > > >>>> at javax.security.auth.Subject.doAs(Subject.java:415) > > >>>> at > > >>>> > > >>>> > > >>> > > > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1232) > > >>>> at > > >>>> > > >>>> > > >>> > > > org.apache.hadoop.mapreduce.v2.app.MRAppMaster.initAndStartAppMaster(MRAppMaster.java:1046) > > >>>> at > > >>>> > > >>> > > > org.apache.hadoop.mapreduce.v2.app.MRAppMaster.main(MRAppMaster.java:1010) > > >>>> 2012-06-21 09:52:44,628 INFO [Thread-0] > > >>>> org.apache.hadoop.mapreduce.v2.app.MRAppMaster: MRAppMaster > received a > > >>>> signal. Signaling RMCommunicator and JobHistoryEventHandler. > > >>>> > > >>>> ---------------------- > > >>>> > > >>>> Any idea what would be going wrong? > > >>>> > > >>>> Regards, > > >>>> Prajakta > > >>>> > > >>> > > >> > > >> > > > > > --e89a8ff1c2e88d2ce204c30dcfba--