You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Matthew John <tm...@gmail.com> on 2010/12/14 04:52:58 UTC

Hadoop 0.20.2 with eclipse in windows

Hi all,

 I have been working with Hadoop0.20.2 in linux nodes. Now I want to try the
same version with eclipse on a windows xp machine. Could someone provide a
tutorial/guidelines on how to install this setup.

thanks,
Matthew

Re: Hadoop 0.20.2 with eclipse in windows

Posted by Harsh J <qw...@gmail.com>.
Hi,

On Tue, Dec 14, 2010 at 9:54 AM, Matthew John
<tm...@gmail.com> wrote:
> I tried installing using this link, but as in the tutorial when I try to run
> bin/hadoop namenode -format
> it gives the following error :
>
> bin/hadoop: line 2 : $'\r' : command not found
> and many such statements..

This is because you probably edited the hadoop related files (conf or
scripts) with a Windows-specific editor, like Notepad/Wordpad (which
adds /n/r newlines instead of /n which is accepted in UNIX-like
environments -- some editors do worse, but hopefully that's not the
case yet).

Open all edited files with Vim, set the newline mode to UNIX and save
it. This error should go away then. (Or any other editor/command that
changes the newline format of a file -- a linux coreutil called
dos2unix does this for you, if installed in cygwin)


-- 
Harsh J
www.harshj.com

Re: Hadoop 0.20.2 with eclipse in windows

Posted by Matthew John <tm...@gmail.com>.
I tried installing using this link, but as in the tutorial when I try to run
bin/hadoop namenode -format
it gives the following error :

bin/hadoop: line 2 : $'\r' : command not found
and many such statements..

I ve given the local jdk folder as the java_home.
Not sure why this is showing up. Ve not used Cygwin till now..

Matthew

On Tue, Dec 14, 2010 at 9:38 AM, Harsh J <qw...@gmail.com> wrote:

> Hi,
>
> On Tue, Dec 14, 2010 at 9:22 AM, Matthew John
> <tm...@gmail.com> wrote:
> > Hi all,
> >
> >  I have been working with Hadoop0.20.2 in linux nodes. Now I want to try
> the
> > same version with eclipse on a windows xp machine. Could someone provide
> a
> > tutorial/guidelines on how to install this setup.
>
> This page's instruction still works for running a Hadoop cluster on
> Windows + the Plugin w/ Cygwin:
> http://ebiquity.umbc.edu/Tutorials/Hadoop/00%20-%20Intro.html
>
> >
> > thanks,
> > Matthew
> >
>
>
>
> --
> Harsh J
> www.harshj.com
>

Re: Hadoop 0.20.2 with eclipse in windows

Posted by Harsh J <qw...@gmail.com>.
Hi,

On Tue, Dec 14, 2010 at 9:22 AM, Matthew John
<tm...@gmail.com> wrote:
> Hi all,
>
>  I have been working with Hadoop0.20.2 in linux nodes. Now I want to try the
> same version with eclipse on a windows xp machine. Could someone provide a
> tutorial/guidelines on how to install this setup.

This page's instruction still works for running a Hadoop cluster on
Windows + the Plugin w/ Cygwin:
http://ebiquity.umbc.edu/Tutorials/Hadoop/00%20-%20Intro.html

>
> thanks,
> Matthew
>



-- 
Harsh J
www.harshj.com