Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 04FB6E4DD for ; Thu, 24 Jan 2013 21:36:46 +0000 (UTC) Received: (qmail 65427 invoked by uid 500); 24 Jan 2013 21:36:41 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 65301 invoked by uid 500); 24 Jan 2013 21:36:41 -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 Delivered-To: moderator for user@hadoop.apache.org Received: (qmail 60283 invoked by uid 99); 24 Jan 2013 21:35:00 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dgarg@dag.com designates 207.7.108.212 as permitted sender) From: "Deepti Garg" To: Subject: Error after installing Hadoop-1.0.4 Date: Thu, 24 Jan 2013 13:28:50 -0800 Message-ID: <033501cdfa79$cdb37750$691a65f0$@dag.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0336_01CDFA36.BF91E500" X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac36ecP2VSscfaOBSA2CZGO7eiBKjw== Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org This is a multipart message in MIME format. ------=_NextPart_000_0336_01CDFA36.BF91E500 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I installed Hadoop 1.0.4 from this link on my Windows 7 machine using cygwin: http://hadoop.apache.org/docs/r1.0.4/single_node_setup.html I am getting an error on running bin/hadoop jar hadoop-examples-*.jar grep input output 'dfs[a-z.]+' Error: cd: pattern "--" not found in "c:/cloudera/hadoop-1.0.4" Warning: $HADOOP_HOME is deprecated. java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.PlatformName 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:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.hadoop.util.PlatformName. Program will exit. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/RunJar Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.RunJar 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:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.hadoop.util.RunJar. Program will exit. Exception in thread "main" I read in some other posts to add "CLASSPATH=`cygpath -wp "$CLASSPATH"`" to hadoop-config.sh, but the error did not go away after adding it. I get this on running bin/hadoop: cd: pattern "--" not found in "c:/cloudera/hadoop-1.0.4" Warning: $HADOOP_HOME is deprecated. Usage: hadoop [--config confdir] COMMAND where COMMAND is one of: namenode -format format the DFS filesystem secondarynamenode run the DFS secondary namenode namenode run the DFS namenode datanode run a DFS datanode dfsadmin run a DFS admin client mradmin run a Map-Reduce admin client fsck run a DFS filesystem checking utility fs run a generic filesystem user client balancer run a cluster balancing utility fetchdt fetch a delegation token from the NameNode jobtracker run the MapReduce job Tracker node pipes run a Pipes job tasktracker run a MapReduce task Tracker node historyserver run job history servers as a standalone daemon job manipulate MapReduce jobs queue get information regarding JobQueues version print the version jar run a jar file distcp copy file or directories recursively archive -archiveName NAME -p * create a hadoop archive classpath prints the class path needed to get the Hadoop jar and the required libraries daemonlog get/set the log level for each daemon or CLASSNAME run the class named CLASSNAME Most commands print help when invoked w/o parameters. Any help is appreciated. Thanks., Deepti ------=_NextPart_000_0336_01CDFA36.BF91E500 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I installed = Hadoop 1.0.4 from this link on my Windows 7 machine using = cygwin:

http://hadoop.apache.org/docs/r1.0.4/single_node_setup.= html

 

I am getting an error on running

bin/hadoop jar hadoop-examples-*.jar grep input = output 'dfs[a-z.]+'

 

Error:

cd: = pattern "--" not found in = "c:/cloudera/hadoop-1.0.4"

Warning: $HADOOP_HOME is = deprecated.

 

java.lang.NoClassDefFoundError: = org/apache/hadoop/util/PlatformName

Caused by: java.lang.ClassNotFoundException: = org.apache.hadoop.util.PlatformName

        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:307)

<= p class=3DMsoNormal>        at = sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)<= /b>

        at = java.lang.ClassLoader.loadClass(ClassLoader.java:248)

<= p class=3DMsoNormal>Could not find the main class: = org.apache.hadoop.util.PlatformName.  Program will = exit.

Exception in thread = "main" java.lang.NoClassDefFoundError: = org/apache/hadoop/util/RunJar

Caused by: java.lang.ClassNotFoundException: = org.apache.hadoop.util.RunJar

        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:307)

<= p class=3DMsoNormal>        at = sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)<= /b>

        at = java.lang.ClassLoader.loadClass(ClassLoader.java:248)

<= p class=3DMsoNormal>Could not find the main class: = org.apache.hadoop.util.RunJar.  Program will = exit.

Exception in thread = "main"

 

I read in = some other posts to add "CLASSPATH=3D`cygpath -wp = "$CLASSPATH"`" to hadoop-config.sh, but the error did not = go away after adding it.

 

I get this = on running bin/hadoop:

cd: = pattern "--" not found in = "c:/cloudera/hadoop-1.0.4"

Warning: $HADOOP_HOME is deprecated.

 

Usage: = hadoop [--config confdir] COMMAND

where COMMAND is one of:

  namenode -format     format = the DFS filesystem

  = secondarynamenode    run the DFS secondary = namenode

  = namenode           = ;  run the DFS namenode

  = datanode           = ;  run a DFS datanode

=  dfsadmin          = ;   run a DFS admin client

  = mradmin           =    run a Map-Reduce admin client

  = fsck           &nb= sp;     run a DFS filesystem checking = utility

  = fs            = ;       run a generic filesystem user = client

  = balancer           = ;  run a cluster balancing utility

  = fetchdt           =    fetch a delegation token from the NameNode

  = jobtracker           = run the MapReduce job Tracker node

  = pipes           &n= bsp;    run a Pipes job

  = tasktracker          run a = MapReduce task Tracker node

  = historyserver        run job history = servers as a standalone daemon

  = job           &nbs= p;      manipulate MapReduce = jobs

  = queue           &n= bsp;    get information regarding = JobQueues

  = version           =    print the version

  = jar = <jar>          &n= bsp; run a jar file

  distcp = <srcurl> <desturl> copy file or directories = recursively

  archive = -archiveName NAME -p <parent path> <src>* <dest> = create a hadoop archive

  = classpath          &nbs= p; prints the class path needed to get the

         &= nbsp;           &n= bsp; Hadoop jar and the required libraries

=  daemonlog         &nbs= p;  get/set the log level for each daemon

or

  = CLASSNAME          &nbs= p; run the class named CLASSNAME

Most = commands print help when invoked w/o parameters.

 

Any help is = appreciated.

 

Thanks.,

Deepti

------=_NextPart_000_0336_01CDFA36.BF91E500--