Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hadoop version

 
Geetha Gubendran
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
K. Tsang
Bartender
Posts: 3585
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First I know nothing about Hadoop installation

But you can't just remove the space between Program and Files and assume it's a valid path! Even in Windows.

I suggest you use the short form of "Program Files" something like Progr~1 (don't have windows to verify)

Better yet use quotes like "C:\Program Files\...."
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic