Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Could not find or load main class org.apache.hadoop.util.VersionInfo

Hi I have just started learing Hadoop. I am following "Hadoop The definitive guide" book. While setting up Hadoop in Window 7 following "Apendix A" of the book, I am getting error

"Error: Could not find or load main class org.apache.hadoop.util.VersionInfo"

when I am running the command

hadoop version

Can anyone have an idea how to correct this or tell me what I am missing? I am using Cygwin64. enter image description here

like image 725
Kuntal Basu Avatar asked Feb 08 '14 08:02

Kuntal Basu


1 Answers

if you add following line in the end of hadoop-config.sh ( available in HADOOP_INSTALL\libexec), it should work.

CLASSPATH='cygpath -wp "$CLASSPATH"'

like image 60
Deepak Singhvi Avatar answered Oct 01 '22 01:10

Deepak Singhvi