Yes, mine are set for the Windows style (they weren't, but at some stage
I upgraded my Cywin install and they switched).

However if I switch back to Unix style endings all my bash scripts fail,
again with complaints about line endings (I can't seem to win!):

/cygdrive/c/dev/prog/hadoop-0.14.1/bin/hadoop-config.sh: line 4: $'\r':
command not found
/cygdrive/c/dev/prog/hadoop-0.14.1/bin/hadoop-config.sh: line 6: $'\r':
command not found
/cygdrive/c/dev/prog/hadoop-0.14.1/bin/hadoop-config.sh: line 54: syntax
error: unexpected end of file
etc etc

Nick


> -----Original Message-----
> From: Doug Cutting [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 11, 2007 3:37 AM
> To: [email protected]
> Subject: Re: Hadoop on Windows
> 
> Nick Lothian wrote:
> > That turns out to be a Unix vs DOS line endings thing (!). 
> > 
> > Running the following commands fixed that:
> > 
> > dos2unix.exe /cygdrive/c/dev/prog/hadoop-0.14.1/conf/masters
> > dos2unix.exe /cygdrive/c/dev/prog/hadoop-0.14.1/conf/slaves
> 
> That should not be required.  When you install Cygwin, it has 
> a setting for line endings, which I think defaults and should 
> be left as unix-style, not windows style.  Could that be the issue?
> 
> Doug
> 

IMPORTANT: This e-mail, including any attachments, may contain private or 
confidential information.
If you think you may not be the intended recipient, or if you have received 
this e-mail in error, please contact the sender immediately and delete all 
copies of this e-mail. 
If you are not the intended recipient, you must not reproduce any part of this 
e-mail or disclose its contents to any other party. 
This email represents the views of the individual sender, which do not 
necessarily reflect those of education.au limited except where the sender 
expressly states otherwise. 
It is your responsibility to scan this email and any files transmitted with it 
for viruses or any other defects. education.au limited will not be liable for 
any loss, damage or consequence caused directly or indirectly by this email.

Reply via email to