title: Hadoop in Windows
body: <p>I'm trying to run the sample word count program for Hadoop in Windows thru Cygwin. I've installed Hadoop and Cygwin. </p>
  
  <p>I run the wordcount program using this statment:</p>
  
  <pre><code>$ bin/hadoop jar hadoop-examples-1.0.1.jar wordcount input output
  </code></pre>
  
  <p>I'm getting the following error:</p>
  
  <pre><code>12/05/08 23:05:35 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  12/05/08 23:05:35 ERROR security.UserGroupInformation: PriviledgedActionException as:suresh cause:java.io.IOException: Failed to set permissions of path: \tmp\hadoop-suresh\mapred\staging\suresh1005684431\.staging to 0700
  java.io.IOException: Failed to set permissions of path: \tmp\hadoop-suresh\mapred\staging\suresh1005684431\.staging to 0700
          at org.apache.hadoop.fs.FileUtil.checkReturnValue(FileUtil.java:682)
          at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:655)
          at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:509)
          at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:344)
          at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:189)
          at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:116)
          at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:856)
          at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:850)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAs(Subject.java:415)
          at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1093)
          at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:850)
          at org.apache.hadoop.mapreduce.Job.submit(Job.java:500)
          at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:530)
          at org.apache.hadoop.examples.WordCount.main(WordCount.java:67)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
          at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
          at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
  </code></pre>
  
  <p>I've set the Cygwin bin path in path variable. Any help is appreciated.</p>