• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

hadoop version

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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\...."
 
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic