I am new to Hadoop and trying to install it on my windows 7 (x64) PC using cygwin. I followed this tutorial to install http://alans.se/blog/2010/hadoop-hbase-cygwin-windows-7-x64/#software
Everything goes correct before this step -
Only Hadoop 0.21.0: Next, one line has to be added to the hadoop-config.sh file in hadoop-0.21.-0/bin
CLASSPATH=`cygpath -wp "$CLASSPATH"`
Add this line before the line containing
JAVA_LIBRARY_PATH=''
Does this line
CLASSPATH=cygpath -wp "$CLASSPATH"
need to be copied as it is?
Coz when I am trying to run command below.
$ bin/hadoop namenode -format
I am getting such error from cygwin
/usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 15: $'\r': command not found
/usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 19: $'\r': command not found
/usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 21: $'\r': command not found
/usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 75: syntax error near unexpected token `$'in\r''
'usr/local/hadoop-0.21.0/bin/hadoop-config.sh: line 75: `case "`uname`" in
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
HDFS not found.
can anyone explain what is going wrong?