After using Cygwin to install Hadoop, enter the command
./hadoop version
The following error occurred
./hadoop:line 297:c:\java\jdk1.6.0_05\bin/bin/java:no such file or directory
./hadoop:line 345:c:\java\jdk1.6.0_05\bin/bin/java:no such file or directory
./hadoop:line 345:exec:c:\java\jdk1.6.0_05\bin/bin/java:cannot execute:no such file or directory
Check the information that is configured out of the problem, re-view the configuration found hadoop-env.sh file Java_home for
# The Java implementation to use. Required.
Export Java_home=c:\\java\\jdk1.6.0_05\\bin
Modified to read as follows
# The Java implementation to use. Required.
Export java_home=c:\\java\\jdk1.6.0_05
Restart Hadoop, command to
./start-all.sh
Input
./hadoop version
The output is:
Hadoop 0.20.203.0
Subversion Http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-203-r 1099333
Compiled by Oom on Wed 4 07:57:50 PDT 2011