I got my cygwin and hadoop installed on my machine.
I set my JAVA_HOME AND VALUE AS C:\Program Files\Java\jdk1.8.0_25;
I set my HADOOP_INSTALL and value as C:\...\Hadoop\HadoopInstall\hadoop-2.5.1;
I added C:\Program Files\Java\jdk1.8.0_25\bin;C:\...\Hadoop\HadoopInstall\hadoop-2.5.1\bin;
I added the following entries
mapred-site.xml
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>local</value>
</property>
</configuration>
hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>n/a</value>
</property>
</configuration>
core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>
file:///</value>
</property>
</configuration>
hadoop-env.cmd
set JAVA_HOME=C:\ProgramFiles\Java\jdk1.8.0_25 (removed space between Program and Files)
hadoop.cmd
set JAVA_HOME=C:\ProgramFiles\Java\jdk1.8.0_25 (removed space between Program and Files)
hadoop-env.sh
export JAVA_HOME=C:\ProgramFiles\Java\jdk1.8.0_25 (removed space between Program and Files)
When I try to run hadoop version command, it complains
From Windows command (Also ,my hadoop-env.cmd is not in conf directory but with etc (C:\....\Hadoop\HadoopInstall\hadoop-2.5.1\etc))
Error: JAVA_HOME is incorrectly set.
Please update C:\....\Hadoop\HadoopInstall\hadoop-2.5.1\conf\hadoop-env.c
md
'-Xmx512m' is not recognized as an internal or external command,
operable program or batch file.
From Cygwin terminal
/cygdrive/c/..../Hadoop/HadoopInstall/hadoop-2.5.1/bin/hadoop: line 133: C:ProgramFilesJavajdk1.8.0_25/bin/java: No such file or directory
/cygdrive/c/...../Hadoop/HadoopInstall/hadoop-2.5.1/bin/hadoop: line 133: exec: C:ProgramFilesJavajdk1.8.0_25/bin/java: cannot execute: No such file or directory
help me to resolve this issue, please.