hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepti Garg" <dg...@dag.com>
Subject Error after installing Hadoop
Date Thu, 24 Jan 2013 18:05:07 GMT
Hi,

 

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

http://hadoop.apache.org/docs/r0.20.2/quickstart.html#Installing+Software

 

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 <jar>            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            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 will be appreciated.

 

Thanks,

Deepti


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message