Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hadoop installation  RSS feed

guru prasanth
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I download the hadoop code from

After following the instructions and when i run hadoop iam getting the following error
Error: JAVA_HOME is incorrectly set.
Please update D:\hadoop-2.6.3\conf\hadoop-env.cmd

There is no conf folder so i created a config folder and copied this folder D:\hadoop-2.6.3\etc\hadoop to D:\hadoop-2.6.3\conf

In hadoop-env.cmd i have set the java path properly as well as in my local path variable.

Secondly when i googled i found this resource.

I have updated java path and other HADOOP_HOME AND JAVA_HOME appropiately

when i did the set as per them also iam getting same error as above.

Then i went here and followed the steps as per them

in cygwin that error is gone.But when i run the command 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 Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: org.apache.hadoop.hdfs.server.namenode.NameNode. Program will exit.
Exception in thread "main"

The class is in this hadoop-hdfs-2.6.3.jar and it's in this path


and if i do hadoop -classpath command i get this


this jar file is in this folder /cygdrive/d/Hadoop-2.3-master/libexec/share/hadoop/hdfs and /cygdrive/d/Hadoop-2.3-master/libexec/share/hadoop/hdfs/lib/*

Please let me know where iam going wrong.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!