title: Running Hadoop On Windows 7
body: <p>I'm having trouble running Hadoop 1.0.3 on Windows 7 64-bit.</p>
  
  <p>I'm following directions from <a href="http://blog.sqltrainer.com/2012/01/installing-and-configuring-apache.html" rel="nofollow">this link</a>.  I've downloaded Cygwin and successfully started the SSH daemon.  I unpacked Hadoop into the Cygwin <code>/usr/local</code> folder using Win-Zip 16.5.  I edited the hadoop-env.sh to point to my JDK using <a href="http://liquidninja.com/metapad/" rel="nofollow">MetaPad</a>:</p>
  
  <pre><code>export JAVA_HOME="C:\\Program Files\\Java\\jdk1.7.0_02"
  </code></pre>
  
  <p>I ran dos2unix to make sure that I didn't have any issues with characters.</p>
  
  <p>But when I run the hadoop command in Cygwin terminal to get the version I see this:</p>
  
  <pre><code>$ bin/hadoop version
  bin/hadoop: line 2: $'\r': command not found
  bin/hadoop: line 17: $'\r': command not found
  bin/hadoop: line 18: $'\r': command not found
  bin/hadoop: line 49: $'\r': command not found
  : No such file or directoryn
  bin/hadoop: line 52: $'\r': command not found
  bin/hadoop: line 60: syntax error near unexpected token `$'in\r''
  'in/hadoop: line 60: `case "`uname`" in
  
  Michael@Michael-PC /usr/local/hadoop
  $
  </code></pre>
  
  <p>Has anyone seen this?  Is there an easy correction that I missed?</p>