Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 10467 invoked from network); 15 Sep 2010 22:37:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Sep 2010 22:37:15 -0000 Received: (qmail 716 invoked by uid 500); 15 Sep 2010 22:37:12 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 651 invoked by uid 500); 15 Sep 2010 22:37:12 -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 640 invoked by uid 99); 15 Sep 2010 22:37:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 22:37:12 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.48] (HELO mail-bw0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 22:37:05 +0000 Received: by bwz14 with SMTP id 14so1603493bwz.35 for ; Wed, 15 Sep 2010 15:36:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.112.7 with SMTP id u7mr1806060bkp.70.1284590203905; Wed, 15 Sep 2010 15:36:43 -0700 (PDT) Received: by 10.204.71.82 with HTTP; Wed, 15 Sep 2010 15:36:43 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Sep 2010 15:36:43 -0700 Message-ID: Subject: Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FsShell From: Tom White To: common-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Mike, What do you get if you type "./hadoop classpath"? Does it contain the Hadoop common JAR? To avoid the deprecation warning you should use "hadoop fs", not "hadoop df= s". Tom On Wed, Sep 15, 2010 at 12:53 PM, Mike Franon wrote: > Hi, > > I just setup 3 node hadoop cluster using the latest version from website = , > 0.21.0 > > I am able to start all the daemons, when I run jps I see datanode, nameno= de, > secondary, tasktracker, but I was running a test and trying to run the > following command: ./hadoop dfs -ls, and I get the following error: > > DEPRECATED: Use of this script to execute hdfs command is deprecated. > Instead use the hdfs command for it. > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/hadoop/fs/FsShell > Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.FsShell > =A0 =A0 =A0 =A0at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > =A0 =A0 =A0 =A0at java.security.AccessController.doPrivileged(Native Meth= od) > =A0 =A0 =A0 =A0at java.net.URLClassLoader.findClass(URLClassLoader.java:1= 90) > =A0 =A0 =A0 =A0at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > =A0 =A0 =A0 =A0at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.jav= a:301) > =A0 =A0 =A0 =A0at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: org.apache.hadoop.fs.FsShell. =A0Program w= ill > exit. > > If i try this command instead: > > ./hadoop hdfs -ls > Exception in thread "main" java.lang.NoClassDefFoundError: hdfs > Caused by: java.lang.ClassNotFoundException: hdfs > =A0 =A0 =A0 =A0at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > =A0 =A0 =A0 =A0at java.security.AccessController.doPrivileged(Native Meth= od) > =A0 =A0 =A0 =A0at java.net.URLClassLoader.findClass(URLClassLoader.java:1= 90) > =A0 =A0 =A0 =A0at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > =A0 =A0 =A0 =A0at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.jav= a:301) > =A0 =A0 =A0 =A0at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: hdfs. =A0Program will exit. > > Does anyone know what the command really is I should be using? > > Thanks >