Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Hadoop >> mail # general >> Error after installing Hadoop


Copy link to this message
-
Error after installing Hadoop
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

+
Steve Loughran 2013-01-24, 20:57
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB