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 0BE8C10F34 for ; Mon, 25 Nov 2013 18:43:39 +0000 (UTC) Received: (qmail 3184 invoked by uid 500); 25 Nov 2013 18:43:33 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 3075 invoked by uid 500); 25 Nov 2013 18:43:33 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 3068 invoked by uid 99); 25 Nov 2013 18:43:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 18:43:33 +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 (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.217.179 as permitted sender) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 18:43:26 +0000 Received: by mail-lb0-f179.google.com with SMTP id l4so3517150lbv.38 for ; Mon, 25 Nov 2013 10:43:06 -0800 (PST) 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=oMTgOZnbkquZxtl+H22GRTwsto7y6xvw2FBQedXpHis=; b=BTTXzvaMh9tMSrsnw3wAJ08FjzB8OiozjDPAzCC7zZqSW1I48OiG51JdUlzTc/t5U+ 6q1WamJcVJBLqNcPFiiKQ08zxjM4Lruv6xCvR4aLz/txvrOYSN+oijtFjq0lHiiFBDKC gGnVrYfw5+bwPBVx19TtPaXkiwXkfDSF0dCZsDYkusrhbuNfdKZ2Dccw2ggRLPS03i9u WZCF6AAkRldJ0CTk101x56xjI4CkRA0lTR4PaxOXydZ+nYj+CP8jpfjA7WnDrWGR3vo9 fC2bnzxrfkikmGGW7gtBsNGp/1JfyO1EgeIWxHmwXrLCqXgDMK7t3nLJmP3Hv6BMA5m2 mOhg== MIME-Version: 1.0 X-Received: by 10.152.8.199 with SMTP id t7mr21586152laa.21.1385404986386; Mon, 25 Nov 2013 10:43:06 -0800 (PST) Received: by 10.112.129.40 with HTTP; Mon, 25 Nov 2013 10:43:06 -0800 (PST) In-Reply-To: References: Date: Tue, 26 Nov 2013 02:43:06 +0800 Message-ID: Subject: Re: Errors running Hadoop 2.2.0 on Cygwin From: Ted Yu To: "common-user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=089e0158ace0156bb004ec04bcf9 X-Virus-Checked: Checked by ClamAV on apache.org --089e0158ace0156bb004ec04bcf9 Content-Type: text/plain; charset=ISO-8859-1 Can you show us the classpath ? Cheers On Tue, Nov 26, 2013 at 2:40 AM, Srinivas Chamarthi < srinivas.chamarthi@gmail.com> wrote: > I have the following error while running 2.2.0 using cygwin. anyone can > help with the problem ? > > /cygdrive/c/hadoop-2.2.0/bin > $ ./hdfs namenode -format > java.lang.NoClassDefFoundError: > org/apache/hadoop/hdfs/server/namenode/NameNode > Caused by: java.lang.ClassNotFoundException: > org.apache.hadoop.hdfs.server.namenode.NameNode > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > Could not find the main class: > org.apache.hadoop.hdfs.server.namenode.NameNode. Program will exit. > Exception in thread "main" > > > --089e0158ace0156bb004ec04bcf9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Can you show us the classpath ?

Cheers<= /div>


On= Tue, Nov 26, 2013 at 2:40 AM, Srinivas Chamarthi <srinivas.cha= marthi@gmail.com> wrote:
I have the following error = while running 2.2.0 using cygwin. anyone can help with the problem ?=A0
/cygdrive/c/hadoop-2.2.0/bin
$ ./hdfs namenode -f= ormat
java.lang.NoClassDefFoundError: org/apache/hadoop/hdfs/serv= er/namenode/NameNode
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hdfs.se= rver.namenode.NameNode
=A0 =A0 =A0 =A0 at java.net.URLClassLoader= $1.run(URLClassLoader.java:202)
=A0 =A0 =A0 =A0 at java.security.= AccessController.doPrivileged(Native Method)
=A0 =A0 =A0 =A0 at java.net.URLClassLoader.findClass(URLClassLoader.ja= va:190)
=A0 =A0 =A0 =A0 at java.lang.ClassLoader.loadClass(ClassL= oader.java:306)
=A0 =A0 =A0 =A0 at sun.misc.Launcher$AppClassLoad= er.loadClass(Launcher.java:301)
=A0 =A0 =A0 =A0 at java.lang.ClassLoader.loadClass(ClassLoader.java:24= 7)
Could not find the main class: org.apache.hadoop.hdfs.server.n= amenode.NameNode. =A0Program will exit.
Exception in thread "= ;main"



--089e0158ace0156bb004ec04bcf9--