Return-Path: Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: (qmail 82409 invoked from network); 30 Dec 2010 23:02:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Dec 2010 23:02:51 -0000 Received: (qmail 49038 invoked by uid 500); 30 Dec 2010 23:02:50 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 48971 invoked by uid 500); 30 Dec 2010 23:02:50 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 48962 invoked by uid 99); 30 Dec 2010 23:02:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Dec 2010 23:02:50 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of qwertymaniac@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Dec 2010 23:02:43 +0000 Received: by fxm2 with SMTP id 2so10896284fxm.35 for ; Thu, 30 Dec 2010 15:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=mPvqWvrkat8XeCpGzGUy0WMrq75kZdixPsPilzs8fcw=; b=k0Pyouqd2m5Y1lCToLA5EtgjBnGH1MRNiyTXFB6I0QWayWgpLcYk9e6hks7gmBpwb5 iTcMWGltgLwEqJkSVkpQoOHRMgrWqfSih055VN3DqTO5S6MEvbjrEXbsRQIMQh2vk+UO FTFxlMdAWuIhF1DxufEVL6FnXs+9tnXAEYfzk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=BE1qlDPvY8KwqOphVT3a+60rhbgD9g0OE4ykZgjND1Ko9nlsqeQR3mVSVtptPrtvWo /kVq8XDXrVnC4kFVUOhj/sN8CtNLG5DhdzMb0MAMsSib4+QExc7MF7fNLNyumJBFcSJi AU9tdob0Ajx9wiWo2Zfnul7sNl5iNd3YjhboM= Received: by 10.223.114.65 with SMTP id d1mr1918722faq.36.1293750143133; Thu, 30 Dec 2010 15:02:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.120.14 with HTTP; Thu, 30 Dec 2010 15:02:03 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Fri, 31 Dec 2010 04:32:03 +0530 Message-ID: Subject: Re: Run MR unit tests in eclipse To: mapreduce-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org As the stack traces tell you, you need to add the servlet-api, jetty-*, etc. jars to your test run configuration's classpath, along with the src/webapps folder (for the webui trying to come up). Additionally you may also need to provide a VM arg for hadoop.log.dir to specify where to write logger outputs. If you imported MapReduce code into eclipse (via ant eclipse), things could be much more simpler (you only need to ensure the src/webapps and hadoop.log.dir part). I'd suggest running specific tests with ant in the command-line itself, using "ant -Dtestcase= test-core", as it always works without hitches. On Thu, Dec 30, 2010 at 11:15 PM, Pedro Costa wrote: > Hi, > > I'm trying to understand how can I execute the unit tests of MapReduce > in eclipse IDE. > I'm trying to execute the unit test class TestMapReduceLocal, but I > get errors that I pasted below. > How can I run the MR unit tests in eclipse IDE? -- Harsh J www.harshj.com