You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by "Sontakke, Sushilkumar" <Su...@bmc.com> on 2012/01/21 10:03:09 UTC
How to set JAVA_HOME in cygwin
I am setting up mahout and hadoop using cygwin
Please help me to set
JAVA_HOME
In cygwin
Re: How to set JAVA_HOME in cygwin
Posted by Burcu Buyukkagnici <bo...@gmail.com>.
Hi,
I had the same error. It means JAVA home shows another place. You have to
check java using "which java" command. and then to correct it you need to
use "export" command to take correct settings. I did it on command line but
there is another explanation here:
http://hayesdavis.net/2008/06/14/running-hadoop-on-windows/
he conf/hadoop-env.sh file is a shell script that sets up various
environment variables that Hadoop needs to run. Open conf/hadoop-env.sh in
a text editor. Look for the line that starts with “#export JAVA_HOME”.
Change that line to something like the following:
export JAVA_HOME=c:\\Program\ Files\\Java\\jdk1.6.0_06
On Sat, Jan 21, 2012 at 11:35 AM, Sontakke, Sushilkumar <
Sushilkumar_Sontakke_CW@bmc.com> wrote:
> THANK you
>
> But I am getting few errors like
> /bin/java: No such file or directory/../bin/hadoop: line 297:
> /cygdrive/c/Java/jdk1.6.0_30
>
>
>
> -----Original Message-----
> From: VIGNESH PRAJAPATI [mailto:vignesh2066@gmail.com]
> Sent: Saturday, January 21, 2012 2:57 PM
> To: user@mahout.apache.org
> Subject: Re: How to set JAVA_HOME in cygwin
>
> ok than
>
> in cmd
> type as below
>
> set JAVA_HOME="C:\Java\jdk1.6.0_30"
>
>
>
>
>
> it will set your JAVA_HOME
>
> On Sat, Jan 21, 2012 at 2:40 PM, Sontakke, Sushilkumar <
> Sushilkumar_Sontakke_CW@bmc.com> wrote:
>
> > Windows XP
> > And my java is installed at C:\Java\jdk1.6.0_30
> >
> > -----Original Message-----
> > From: VIGNESH PRAJAPATI [mailto:vignesh2066@gmail.com]
> > Sent: Saturday, January 21, 2012 2:38 PM
> > To: user@mahout.apache.org
> > Subject: Re: How to set JAVA_HOME in cygwin
> >
> > Hello Sontakke,
> >
> > Can you say which Os your are using for development and what is path of
> > your JAVA SOURCE
> >
> > Thanks
> >
> >
> > On Sat, Jan 21, 2012 at 2:33 PM, Sontakke, Sushilkumar <
> > Sushilkumar_Sontakke_CW@bmc.com> wrote:
> >
> > > I am setting up mahout and hadoop using cygwin
> > > Please help me to set
> > > JAVA_HOME
> > > In cygwin
> > >
> >
> >
> >
> > --
> >
> > *Vignesh Prajapati*
> > Tel: 9427415949 |
> > vignesh2066@gmail.com | www.vipras.com.co.in
> > MYTK [image: Facebook] <https://www.facebook.com/vigs143> [image:
> > Twitter]<http://twitter.com/#%21/vigs143> [image:
> > LinkedIn] <http://www.linkedin.com/pub/vignesh-prajapati/37/756/46a>
> > [image:
> > about.me] <http://www.way4fun.tk><
> >
> http://r1.wisestamp.com/r/landing?promo=7&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_7
> > >
> >
> >
>
>
> --
>
> *Vignesh Prajapati*
> Tel: 9427415949 |
> vignesh2066@gmail.com | www.vipras.com.co.in
> MYTK [image: Facebook] <https://www.facebook.com/vigs143> [image:
> Twitter]<http://twitter.com/#%21/vigs143> [image:
> LinkedIn] <http://www.linkedin.com/pub/vignesh-prajapati/37/756/46a>
> [image:
> about.me] <http://www.way4fun.tk><
> http://r1.wisestamp.com/r/landing?promo=7&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_7
> >
>
>
RE: How to set JAVA_HOME in cygwin
Posted by "Sontakke, Sushilkumar" <Su...@bmc.com>.
THANK you
But I am getting few errors like
/bin/java: No such file or directory/../bin/hadoop: line 297: /cygdrive/c/Java/jdk1.6.0_30
-----Original Message-----
From: VIGNESH PRAJAPATI [mailto:vignesh2066@gmail.com]
Sent: Saturday, January 21, 2012 2:57 PM
To: user@mahout.apache.org
Subject: Re: How to set JAVA_HOME in cygwin
ok than
in cmd
type as below
set JAVA_HOME="C:\Java\jdk1.6.0_30"
it will set your JAVA_HOME
On Sat, Jan 21, 2012 at 2:40 PM, Sontakke, Sushilkumar <
Sushilkumar_Sontakke_CW@bmc.com> wrote:
> Windows XP
> And my java is installed at C:\Java\jdk1.6.0_30
>
> -----Original Message-----
> From: VIGNESH PRAJAPATI [mailto:vignesh2066@gmail.com]
> Sent: Saturday, January 21, 2012 2:38 PM
> To: user@mahout.apache.org
> Subject: Re: How to set JAVA_HOME in cygwin
>
> Hello Sontakke,
>
> Can you say which Os your are using for development and what is path of
> your JAVA SOURCE
>
> Thanks
>
>
> On Sat, Jan 21, 2012 at 2:33 PM, Sontakke, Sushilkumar <
> Sushilkumar_Sontakke_CW@bmc.com> wrote:
>
> > I am setting up mahout and hadoop using cygwin
> > Please help me to set
> > JAVA_HOME
> > In cygwin
> >
>
>
>
> --
>
> *Vignesh Prajapati*
> Tel: 9427415949 |
> vignesh2066@gmail.com | www.vipras.com.co.in
> MYTK [image: Facebook] <https://www.facebook.com/vigs143> [image:
> Twitter]<http://twitter.com/#%21/vigs143> [image:
> LinkedIn] <http://www.linkedin.com/pub/vignesh-prajapati/37/756/46a>
> [image:
> about.me] <http://www.way4fun.tk><
> http://r1.wisestamp.com/r/landing?promo=7&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_7
> >
>
>
--
*Vignesh Prajapati*
Tel: 9427415949 |
vignesh2066@gmail.com | www.vipras.com.co.in
MYTK [image: Facebook] <https://www.facebook.com/vigs143> [image:
Twitter]<http://twitter.com/#%21/vigs143> [image:
LinkedIn] <http://www.linkedin.com/pub/vignesh-prajapati/37/756/46a> [image:
about.me] <http://www.way4fun.tk><http://r1.wisestamp.com/r/landing?promo=7&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_7>
Re: How to set JAVA_HOME in cygwin
Posted by Lance Norskog <go...@gmail.com>.
The major problem is that you have two file system namespaces: cygwin
name space and windows namespace. Hadoop and Mahout try to navigate
between the two. It is hard and you will keep finding little mistakes.
If you are not handy with Unix and Windows IT, you will be much
happier using Linux in a virtual machine.
On Sat, Jan 21, 2012 at 3:21 AM, deneche abdelhakim <ad...@gmail.com> wrote:
> Mahout Wiki has a couple of links to tutorials on setting Cygwin and Hadoop
> on Windows:
>
> https://cwiki.apache.org/MAHOUT/buildingmahout.html
>
> they are bit old though, but they used to work well for me at the time.
>
> You could also run Ubuntu in a virtual machine (I'm using VirtualBox), and
> then install and run Hadoop in Ubuntu. It should work fine if your PC isn't
> too old.
>
> On Sat, Jan 21, 2012 at 12:08 PM, Sean Owen <sr...@gmail.com> wrote:
>
>> Guys, he already said he's using Cygwin, not the Windows shell. The
>> question is how to set vars in bash (or whatever shell he's using, but
>> presuming it is bash). This is not Mahout-specific so I would direct you to
>> please search the internet first. But the syntax is:
>>
>> export JAVA_HOME=...
>>
>> Remember that in Cygwin the path is /cygdrive/c/Java/jdk1.6.0_30
>>
>> On Sat, Jan 21, 2012 at 9:26 AM, VIGNESH PRAJAPATI <vignesh2066@gmail.com
>> >wrote:
>>
>> > ok than
>> >
>> > in cmd
>> > type as below
>> >
>> > set JAVA_HOME="C:\Java\jdk1.6.0_30"
>> >
>> >
>> >
>> >
>> >
>> > it will set your JAVA_HOME
>> >
>>
--
Lance Norskog
goksron@gmail.com
Re: How to set JAVA_HOME in cygwin
Posted by deneche abdelhakim <ad...@gmail.com>.
Mahout Wiki has a couple of links to tutorials on setting Cygwin and Hadoop
on Windows:
https://cwiki.apache.org/MAHOUT/buildingmahout.html
they are bit old though, but they used to work well for me at the time.
You could also run Ubuntu in a virtual machine (I'm using VirtualBox), and
then install and run Hadoop in Ubuntu. It should work fine if your PC isn't
too old.
On Sat, Jan 21, 2012 at 12:08 PM, Sean Owen <sr...@gmail.com> wrote:
> Guys, he already said he's using Cygwin, not the Windows shell. The
> question is how to set vars in bash (or whatever shell he's using, but
> presuming it is bash). This is not Mahout-specific so I would direct you to
> please search the internet first. But the syntax is:
>
> export JAVA_HOME=...
>
> Remember that in Cygwin the path is /cygdrive/c/Java/jdk1.6.0_30
>
> On Sat, Jan 21, 2012 at 9:26 AM, VIGNESH PRAJAPATI <vignesh2066@gmail.com
> >wrote:
>
> > ok than
> >
> > in cmd
> > type as below
> >
> > set JAVA_HOME="C:\Java\jdk1.6.0_30"
> >
> >
> >
> >
> >
> > it will set your JAVA_HOME
> >
>
Re: How to set JAVA_HOME in cygwin
Posted by Sean Owen <sr...@gmail.com>.
Guys, he already said he's using Cygwin, not the Windows shell. The
question is how to set vars in bash (or whatever shell he's using, but
presuming it is bash). This is not Mahout-specific so I would direct you to
please search the internet first. But the syntax is:
export JAVA_HOME=...
Remember that in Cygwin the path is /cygdrive/c/Java/jdk1.6.0_30
On Sat, Jan 21, 2012 at 9:26 AM, VIGNESH PRAJAPATI <vi...@gmail.com>wrote:
> ok than
>
> in cmd
> type as below
>
> set JAVA_HOME="C:\Java\jdk1.6.0_30"
>
>
>
>
>
> it will set your JAVA_HOME
>
Re: How to set JAVA_HOME in cygwin
Posted by VIGNESH PRAJAPATI <vi...@gmail.com>.
ok than
in cmd
type as below
set JAVA_HOME="C:\Java\jdk1.6.0_30"
it will set your JAVA_HOME
On Sat, Jan 21, 2012 at 2:40 PM, Sontakke, Sushilkumar <
Sushilkumar_Sontakke_CW@bmc.com> wrote:
> Windows XP
> And my java is installed at C:\Java\jdk1.6.0_30
>
> -----Original Message-----
> From: VIGNESH PRAJAPATI [mailto:vignesh2066@gmail.com]
> Sent: Saturday, January 21, 2012 2:38 PM
> To: user@mahout.apache.org
> Subject: Re: How to set JAVA_HOME in cygwin
>
> Hello Sontakke,
>
> Can you say which Os your are using for development and what is path of
> your JAVA SOURCE
>
> Thanks
>
>
> On Sat, Jan 21, 2012 at 2:33 PM, Sontakke, Sushilkumar <
> Sushilkumar_Sontakke_CW@bmc.com> wrote:
>
> > I am setting up mahout and hadoop using cygwin
> > Please help me to set
> > JAVA_HOME
> > In cygwin
> >
>
>
>
> --
>
> *Vignesh Prajapati*
> Tel: 9427415949 |
> vignesh2066@gmail.com | www.vipras.com.co.in
> MYTK [image: Facebook] <https://www.facebook.com/vigs143> [image:
> Twitter]<http://twitter.com/#%21/vigs143> [image:
> LinkedIn] <http://www.linkedin.com/pub/vignesh-prajapati/37/756/46a>
> [image:
> about.me] <http://www.way4fun.tk><
> http://r1.wisestamp.com/r/landing?promo=7&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_7
> >
>
>
--
*Vignesh Prajapati*
Tel: 9427415949 |
vignesh2066@gmail.com | www.vipras.com.co.in
MYTK [image: Facebook] <https://www.facebook.com/vigs143> [image:
Twitter]<http://twitter.com/#%21/vigs143> [image:
LinkedIn] <http://www.linkedin.com/pub/vignesh-prajapati/37/756/46a> [image:
about.me] <http://www.way4fun.tk><http://r1.wisestamp.com/r/landing?promo=7&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_7>
RE: How to set JAVA_HOME in cygwin
Posted by "Sontakke, Sushilkumar" <Su...@bmc.com>.
Windows XP
And my java is installed at C:\Java\jdk1.6.0_30
-----Original Message-----
From: VIGNESH PRAJAPATI [mailto:vignesh2066@gmail.com]
Sent: Saturday, January 21, 2012 2:38 PM
To: user@mahout.apache.org
Subject: Re: How to set JAVA_HOME in cygwin
Hello Sontakke,
Can you say which Os your are using for development and what is path of
your JAVA SOURCE
Thanks
On Sat, Jan 21, 2012 at 2:33 PM, Sontakke, Sushilkumar <
Sushilkumar_Sontakke_CW@bmc.com> wrote:
> I am setting up mahout and hadoop using cygwin
> Please help me to set
> JAVA_HOME
> In cygwin
>
--
*Vignesh Prajapati*
Tel: 9427415949 |
vignesh2066@gmail.com | www.vipras.com.co.in
MYTK [image: Facebook] <https://www.facebook.com/vigs143> [image:
Twitter]<http://twitter.com/#%21/vigs143> [image:
LinkedIn] <http://www.linkedin.com/pub/vignesh-prajapati/37/756/46a> [image:
about.me] <http://www.way4fun.tk><http://r1.wisestamp.com/r/landing?promo=7&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_7>
Re: How to set JAVA_HOME in cygwin
Posted by VIGNESH PRAJAPATI <vi...@gmail.com>.
Hello Sontakke,
Can you say which Os your are using for development and what is path of
your JAVA SOURCE
Thanks
On Sat, Jan 21, 2012 at 2:33 PM, Sontakke, Sushilkumar <
Sushilkumar_Sontakke_CW@bmc.com> wrote:
> I am setting up mahout and hadoop using cygwin
> Please help me to set
> JAVA_HOME
> In cygwin
>
--
*Vignesh Prajapati*
Tel: 9427415949 |
vignesh2066@gmail.com | www.vipras.com.co.in
MYTK [image: Facebook] <https://www.facebook.com/vigs143> [image:
Twitter]<http://twitter.com/#%21/vigs143> [image:
LinkedIn] <http://www.linkedin.com/pub/vignesh-prajapati/37/756/46a> [image:
about.me] <http://www.way4fun.tk><http://r1.wisestamp.com/r/landing?promo=7&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_7>