I am trying to install hadoop-0.23.0-SNAPSHOT after compiling it
successfully. I am getting following error while I am trying to run bin/hadoop
namenode -format.

Exception in thread "main" 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.

Could you help me to remove this bug? ( There is a class called
namenode.class inside the given path. But it cannot identify the
namenode.class ) Is there any other way to install or test new build
hadoop-0.23.0-SNAPSHOT version? Is this classpath problem? if so, how to set
the class path( because all .class are inside the build folder)?

Reply via email to