Hadoop Installation in Windows 7 using Cygwin

1,273 views
Skip to first unread message

Midhun

unread,
Nov 22, 2012, 7:53:42 AM11/22/12
to chenn...@googlegroups.com
Hai all,
Am trying to learn hadoop.
I trying to install hadoop on windows 7 using cygwin.

There is some errors regarding JAVA_HOME,and in some configuration files[ hadoop-env,hadoop-config]
1.How to edit the configuration files
2.How to configure hadoop for a single node

if you can please help me.

Midhun

Senthil Kumar

unread,
Nov 22, 2012, 8:02:25 AM11/22/12
to chenn...@googlegroups.com

Senthil Kumar

unread,
Nov 22, 2012, 8:03:25 AM11/22/12
to chenn...@googlegroups.com
which hadoop version are you using??
Please specify the error.

Midhun Suraj

unread,
Nov 22, 2012, 8:24:44 AM11/22/12
to chenn...@googlegroups.com
Hadoop version : hadoop-0.22.0


please check  that image.this the error.
I think i made mistake in editing the configuration files.

i edit  cygwin's profile fie for adding JAVA_HOME
and then hadoop/bin -hadoop-config
then hadoop/config -hadoop-env

this error is always getting for any action
cygpath: can't convert empty path 

Thanks 

Midhun.S.P
Mobile no:9840880395

error.jpg

Senthil Kumar

unread,
Nov 24, 2012, 11:33:35 AM11/24/12
to chenn...@googlegroups.com
Sorry for the delayed reply .. i never tried cygwin... If possible i will google n let me see,ooops

Srinivasan Ramalingam

unread,
Nov 24, 2012, 9:56:17 PM11/24/12
to chenn...@googlegroups.com
Hi Midhun,
    i will give idea regarding this problem.copy the java folder from program files and paste it from cygwin drive like(/usr/local/java).then follow the below steps in cygwin
2.vi .bashrc(add the below two lines at the end of the file)
   export JAVA_HOME="/usr/local/java"
   export PATH="$PATH;$JAVA_HOME/bin"
3. source .bashrc
4.go to hadoop configuration folder
 5.vi hadoop-env.sh(edit the below line like this)
     export JAVA_HOME="/usr/local/java"
  6.go to bin foolder in hadoop
  7. vi hadoop(edit the below lines)
         CLASSPATH=`cygpath -wp "$CLASSPATH"`

Thanks and Regards
 R.srinivasan

 
 

--
 
 

sendmai...@gmail.com

unread,
Mar 29, 2014, 12:57:26 PM3/29/14
to chenn...@googlegroups.com
i tried learning through Cygwin.....surprised by your answer you have not used Cygwin. how to execute Hadoop/MapReduce in windows then? sorry if am asking simple question.....
Reply all
Reply to author
Forward
0 new messages