Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 167B211D34 for ; Sat, 11 May 2013 01:20:11 +0000 (UTC) Received: (qmail 76735 invoked by uid 500); 11 May 2013 01:20:10 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 76697 invoked by uid 500); 11 May 2013 01:20:10 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 76688 invoked by uid 99); 11 May 2013 01:20:10 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2013 01:20:10 +0000 Received: from localhost (HELO mail-vc0-f181.google.com) (127.0.0.1) (smtp-auth username apurtell, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2013 01:20:10 +0000 Received: by mail-vc0-f181.google.com with SMTP id hr11so4193283vcb.12 for ; Fri, 10 May 2013 18:20:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=mBqefKIznKEmi17+TLESDL5Xh2aAAjY2PVBAyDwVdOU=; b=nrpdFGodVYeP3oou+cLuWowE+PMOLnK/VAEHl/BP7HiyIMiyjx8ejdN7IMGyCk5WM4 47SxdAEUQWfk6TEQEDYPRwCcZhVvu+t7DgrhWUswGIM+VI3VSJvuiizaQk7NfN4zasPs tpRivXh2ak9dJH1ZSV5QyXN1U16bLkiFyeREtLRDUFQJXWWMcmLGGlx3E0OvE2Aqfttr 2C0zZMnTadl6kv1rQyaBRGAltl71YSutR92y31W7EJBAxNfjJW1dzM5hG3tbehNWnHOD bFm1xuolj5ZHq07ADO701alN/amgupIeDaxaDYyAYpFqgViQ3NS6CrrGr9BfeTS991WM 6hTg== X-Received: by 10.52.114.135 with SMTP id jg7mr10872601vdb.78.1368235209271; Fri, 10 May 2013 18:20:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.227.161 with HTTP; Fri, 10 May 2013 18:19:29 -0700 (PDT) In-Reply-To: References: From: Andrew Purtell Date: Sat, 11 May 2013 09:19:29 +0800 Message-ID: Subject: Re: Unit test classpath trouble To: dev@pig.apache.org Content-Type: multipart/alternative; boundary=bcaec548a4f19e33df04dc6715d8 --bcaec548a4f19e33df04dc6715d8 Content-Type: text/plain; charset=ISO-8859-1 I've tried that, thanks. I did a bit more investigation and it seems the issue is recent Hadoop 2 releases. Has anyone tried running Pig unit tests using a more recent Hadoop release than 2.0.0-alpha? Maybe my trouble is a simple thing that someone with more experience with Pig internals would see right away? Cluster testing seems ok. It's just unit tests that fail. But that is concerning. I'm trying HEAD of branch-0.11. My Java is version "1.6.0_43" Java(TM) SE Runtime Environment (build 1.6.0_43-b01) Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode). OS is Ubuntu 13.04 (GNU/Linux 3.8.0-19-generic x86_64). With defaults and only -Dhadoopversion=23 on the Ant command line, it seems ok. With build.properties of: hadoopversion=23 hadoop-common.version=2.0.4-alpha hadoop-hdfs.version=2.0.4-alpha hadoop-mapreduce.version=2.0.4-alpha or defined on the Ant command line, I'll see unit test failures like: Testcase: testAccumWithDistinct took 0.868 sec Caused an ERROR org/apache/hadoop/mapred/ResourceMgrDelegate java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/ResourceMgrDelegate at org.apache.hadoop.mapred.YARNRunner.(YARNRunner.java:112) at org.apache.hadoop.mapred.YarnClientProtocolProvider.create(YarnClientProtocolProvider.java:34) at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:94) at org.apache.hadoop.mapreduce.Cluster.(Cluster.java:81) at org.apache.hadoop.mapreduce.Cluster.(Cluster.java:74) at org.apache.hadoop.mapred.JobClient.init(JobClient.java:482) at org.apache.hadoop.mapred.JobClient.(JobClient.java:461) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:152) at org.apache.pig.PigServer.launchPlan(PigServer.java:1264) at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1249) at org.apache.pig.PigServer.storeEx(PigServer.java:931) at org.apache.pig.PigServer.store(PigServer.java:898) at org.apache.pig.PigServer.openIterator(PigServer.java:811) at org.apache.pig.test.TestAccumulator.testAccumWithDistinct(TestAccumulator.java:424) That suggests a cause but I've not started spelunking code with the hope this is something simple that someone has already encountered. On Sat, May 11, 2013 at 1:31 AM, Johnny Zhang wrote: > Hi, Andrew: > Does something like "-Dhadoopversion=23" help ? eg. ant clean test > -Dhadoopversion=23 -Dtest.junit.output.format=xml > > Johnny > > > On Fri, May 10, 2013 at 3:39 AM, Andrew Purtell > wrote: > > > Please pardon the basic question. I'm building Pig 0.11.2-SNAPSHOT > against > > Hadoop 2.0.4. 'ant package' and full cluster tests work fine, but I'm not > > having much luck with running the unit tests, 'ant test-core' or 'ant > > test'. The problem looks to be a MR app classpath issue. > > > > Sometimes: java.lang.NoClassDefFoundError: > > org/apache/hadoop/yarn/client/YarnClientImpl > > > > Sometimes: java.lang.NoClassDefFoundError: > > org/apache/hadoop/mapred/ResourceMgrDelegate > > > > A few Google searches have turned up no useful pointers. Maybe there is > > something simple I am missing? How do you set up for running unit tests > on > > your dev boxes? > > > > -- > > Best regards, > > > > - Andy > > > > Problems worthy of attack prove their worth by hitting back. - Piet Hein > > (via Tom White) > > > -- Best regards, - Andy Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White) --bcaec548a4f19e33df04dc6715d8--