Announcement

Collapse
No announcement yet.

error could not find or load main class org.apache.hadoop.fs.fsshell

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • error could not find or load main class org.apache.hadoop.fs.fsshell

    I have installed Hadoop 2.2.0 using Cygwin on windows 7 OS.I have run namenode , datanode (Start-dfs) and yarn (start-yarn)services successfully but when I run following command on cygwin terminal we get error "error could not find or load main class org.apache.hadoop.fs.fsshell".

    hdfs dfs -mkdir c:\input


    Please help me.


    Thanks And Regards,

    Dheeraj Malbhage

  • #2
    Thanks for reply Orbrey

    we have already set path for Cygwin,Java,Protocolbuffer and Maven in environment variable for Windows7.
    Yes we have restarted cygwin and machine after path set.


    Can you elaborate so we can understand...Please

    Thanks And Regards,
    Dheeraj Malbhage

    Comment


    • #3
      Thanks for information.

      Now "$hadoop version" working fine and gives required result.But when I run mapreduce wordcount example with following command

      "yarn jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar wordcount input output"

      but got error "ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path"

      We already copied hadoop common libraries in c:/hadoop/bin directory..


      Thanks and Regards
      Dheeraj Malbhage

      Comment

      Working...
      X