Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E2B34948 for ; Mon, 6 Jun 2011 16:02:02 +0000 (UTC) Received: (qmail 62418 invoked by uid 500); 6 Jun 2011 16:02:00 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 62358 invoked by uid 500); 6 Jun 2011 16:02:00 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 62350 invoked by uid 99); 6 Jun 2011 16:02:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 16:02:00 +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: local policy) Received: from [66.111.4.27] (HELO out3.smtp.messagingengine.com) (66.111.4.27) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 16:01:55 +0000 Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.messagingengine.com (Postfix) with ESMTP id E03E1205D7 for ; Mon, 6 Jun 2011 12:01:33 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 06 Jun 2011 12:01:33 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:subject:content-type; s=smtpout; bh=DYeFL0mD8HIc+LRWOUe8p7odjhA=; b=Wwimxl3uVGBsdVr5pJWeioPio7oRFmTYzK/xcu0kRjL6TagoRseU6xxzqXEmGUAHw+VtItDx5PAHBVb2wcQKsws6qvIlZUqPMoKBovN97xXiJaaOixWEUtALT7T8MHbuhvmh6t2CLzMoiGU6bJHzfchRJ2OPSZbBf3eV56d9aq0= X-Sasl-enc: QH6RgokIlHNboIdANDUY8oVCmzW0SxvibURZ/iZ1Ufal 1307376093 Received: from bubbas.mustardgrain.com (173-11-71-122-SFBA.hfc.comcastbusiness.net [173.11.71.122]) by mail.messagingengine.com (Postfix) with ESMTPSA id 5DE5C401BF9 for ; Mon, 6 Jun 2011 12:01:33 -0400 (EDT) Message-ID: <4DECF9DC.5060105@mustardgrain.com> Date: Mon, 06 Jun 2011 09:01:32 -0700 From: Kirk True Organization: Mustard Grain, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: hdfs-dev@hadoop.apache.org Subject: CLASSPATH errors running unit tests via Eclipse Content-Type: multipart/alternative; boundary="------------070206080504070109070501" --------------070206080504070109070501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi all, I'm trying to run some of the unit tests within Eclipse. But with a fresh checkout of the HDFS source, unit tests that use webapps generate errors in Eclipse. Steps to reproduce: 1. Get source 1. cd /tmp 2. mkdir test 3. cd test 4. git clone https://github.com/apache/hadoop-hdfs.git 5. cd hadoop-hdfs 2. Set up Eclipse project 1. Run `ant eclipse` 2. Run Eclipse with /tmp/test as the workspace 3. File -> Import... 4. Import "General" -> "Existing Projects into Workspace", click "Next" 5. Select root directory "/tmp/test", select "hadoop-hdfs" and click "Finish" 3. Navigate to "TestBlockRecovery" test source and select "Run As..." "JUnit Test" I expected it to pass, but instead I get this error: java.io.FileNotFoundException: webapps/datanode not found in CLASSPATH at org.apache.hadoop.http.HttpServer.getWebAppsPath(HttpServer.java:470) at org.apache.hadoop.http.HttpServer.(HttpServer.java:186) at org.apache.hadoop.http.HttpServer.(HttpServer.java:147) at org.apache.hadoop.hdfs.server.datanode.DataNode.startInfoServer(DataNode.java:465) at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1373) at org.apache.hadoop.hdfs.server.datanode.DataNode.(DataNode.java:401) at org.apache.hadoop.hdfs.server.datanode.TestBlockRecovery.startUp(TestBlockRecovery.java:114) 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) I'm assuming that it's an issue with the Eclipse project generation, but I haven't been able to solve it by manually hacking the .classpath Eclipse file. Any ideas? Thanks, Kirk --------------070206080504070109070501--