You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Sujit Dhamale <su...@gmail.com> on 2012/10/04 18:38:37 UTC

In Window (Cygwin) Java File not found

Hi,

i am trying to install Hadoop on Window , with the help of Cygwin .

i configured all configuration XML like hadoop-env.sh
,core-site.xml,mapred-site.xml,hdfs-site.xml

but while formatting Name node getting error bin/java not found .

*Details  :*
Operating Syatem : Window XP
Hadoop Version : hadoop-1.0.3.


SUJITD@SUJITD07 /usr/local/hadoop
*$ java -version*
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode

SUJITD@SUJITD07 /usr/local/hadoop
*$ echo $HADOOP_HOME*


SUJITD@SUJITD07 /usr/local/hadoop
*$ echo $JAVA_HOME*
C:\Program Files\Java\jdk1.7.0_07

SUJITD@SUJITD07 /usr/local/hadoop
*$ bin/hadoop namenode -format*
*bin/hadoop: line 320: C:\Program: command not found*
*/bin/java: No such file or directoryes\Java\jdk1.7.0_07*
*/bin/java: cannot execute: No such file or directoryk1.7.0_07*
*
*
*
*
*
*
Kind Regards
Sujit Dhamale
(+91 9970086652)

Re: In Window (Cygwin) Java File not found

Posted by Chris Nauroth <cn...@hortonworks.com>.
Can you try deploying the JDK to a different directory that doesn't contain
spaces and setting JAVA_HOME to that?  There is a known problem when the
JDK is deployed in a directory containing spaces (like C:\Program
Files\...).

Thank you,
--Chris

On Thu, Oct 4, 2012 at 9:38 AM, Sujit Dhamale <su...@gmail.com>wrote:

> Hi,
>
> i am trying to install Hadoop on Window , with the help of Cygwin .
>
> i configured all configuration XML like hadoop-env.sh
> ,core-site.xml,mapred-site.xml,hdfs-site.xml
>
> but while formatting Name node getting error bin/java not found .
>
> *Details  :*
> Operating Syatem : Window XP
> Hadoop Version : hadoop-1.0.3.
>
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ java -version*
> java version "1.7.0_07"
> Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
> Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ echo $HADOOP_HOME*
>
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ echo $JAVA_HOME*
> C:\Program Files\Java\jdk1.7.0_07
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ bin/hadoop namenode -format*
> *bin/hadoop: line 320: C:\Program: command not found*
> */bin/java: No such file or directoryes\Java\jdk1.7.0_07*
> */bin/java: cannot execute: No such file or directoryk1.7.0_07*
> *
> *
> *
> *
> *
> *
> Kind Regards
> Sujit Dhamale
> (+91 9970086652)
>
>

Re: In Window (Cygwin) Java File not found

Posted by Chris Nauroth <cn...@hortonworks.com>.
Can you try deploying the JDK to a different directory that doesn't contain
spaces and setting JAVA_HOME to that?  There is a known problem when the
JDK is deployed in a directory containing spaces (like C:\Program
Files\...).

Thank you,
--Chris

On Thu, Oct 4, 2012 at 9:38 AM, Sujit Dhamale <su...@gmail.com>wrote:

> Hi,
>
> i am trying to install Hadoop on Window , with the help of Cygwin .
>
> i configured all configuration XML like hadoop-env.sh
> ,core-site.xml,mapred-site.xml,hdfs-site.xml
>
> but while formatting Name node getting error bin/java not found .
>
> *Details  :*
> Operating Syatem : Window XP
> Hadoop Version : hadoop-1.0.3.
>
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ java -version*
> java version "1.7.0_07"
> Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
> Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ echo $HADOOP_HOME*
>
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ echo $JAVA_HOME*
> C:\Program Files\Java\jdk1.7.0_07
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ bin/hadoop namenode -format*
> *bin/hadoop: line 320: C:\Program: command not found*
> */bin/java: No such file or directoryes\Java\jdk1.7.0_07*
> */bin/java: cannot execute: No such file or directoryk1.7.0_07*
> *
> *
> *
> *
> *
> *
> Kind Regards
> Sujit Dhamale
> (+91 9970086652)
>
>

Re: In Window (Cygwin) Java File not found

Posted by Chris Nauroth <cn...@hortonworks.com>.
Can you try deploying the JDK to a different directory that doesn't contain
spaces and setting JAVA_HOME to that?  There is a known problem when the
JDK is deployed in a directory containing spaces (like C:\Program
Files\...).

Thank you,
--Chris

On Thu, Oct 4, 2012 at 9:38 AM, Sujit Dhamale <su...@gmail.com>wrote:

> Hi,
>
> i am trying to install Hadoop on Window , with the help of Cygwin .
>
> i configured all configuration XML like hadoop-env.sh
> ,core-site.xml,mapred-site.xml,hdfs-site.xml
>
> but while formatting Name node getting error bin/java not found .
>
> *Details  :*
> Operating Syatem : Window XP
> Hadoop Version : hadoop-1.0.3.
>
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ java -version*
> java version "1.7.0_07"
> Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
> Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ echo $HADOOP_HOME*
>
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ echo $JAVA_HOME*
> C:\Program Files\Java\jdk1.7.0_07
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ bin/hadoop namenode -format*
> *bin/hadoop: line 320: C:\Program: command not found*
> */bin/java: No such file or directoryes\Java\jdk1.7.0_07*
> */bin/java: cannot execute: No such file or directoryk1.7.0_07*
> *
> *
> *
> *
> *
> *
> Kind Regards
> Sujit Dhamale
> (+91 9970086652)
>
>

Re: In Window (Cygwin) Java File not found

Posted by Chris Nauroth <cn...@hortonworks.com>.
Can you try deploying the JDK to a different directory that doesn't contain
spaces and setting JAVA_HOME to that?  There is a known problem when the
JDK is deployed in a directory containing spaces (like C:\Program
Files\...).

Thank you,
--Chris

On Thu, Oct 4, 2012 at 9:38 AM, Sujit Dhamale <su...@gmail.com>wrote:

> Hi,
>
> i am trying to install Hadoop on Window , with the help of Cygwin .
>
> i configured all configuration XML like hadoop-env.sh
> ,core-site.xml,mapred-site.xml,hdfs-site.xml
>
> but while formatting Name node getting error bin/java not found .
>
> *Details  :*
> Operating Syatem : Window XP
> Hadoop Version : hadoop-1.0.3.
>
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ java -version*
> java version "1.7.0_07"
> Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
> Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ echo $HADOOP_HOME*
>
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ echo $JAVA_HOME*
> C:\Program Files\Java\jdk1.7.0_07
>
> SUJITD@SUJITD07 /usr/local/hadoop
> *$ bin/hadoop namenode -format*
> *bin/hadoop: line 320: C:\Program: command not found*
> */bin/java: No such file or directoryes\Java\jdk1.7.0_07*
> */bin/java: cannot execute: No such file or directoryk1.7.0_07*
> *
> *
> *
> *
> *
> *
> Kind Regards
> Sujit Dhamale
> (+91 9970086652)
>
>