If you just want to test Hadoop on Windows the actual permissions are not that 
important.  I updated RawLocalFileSystem.java so it just assigns some generous 
value to all files everytime ignoring the actual value in the 'permission' 
argument.

  /**
   * Use the command chmod to set permission.
   */
  @Override
  public void setPermission (Path p, FsPermission permission) throws IOException
  {
  //FileUtil.setPermission (pathToFile (p), permission);
    FileUtil.setPermission (pathToFile (p), permission777);
  }

  private FsPermission permission777 = FsPermission.valueOf ("-rwxrwxrwx");

Then rebuild Hadoop using a command like:

ant -l build.log -Dtest.output=yes test-contrib

See: http://wiki.apache.org/hadoop/FAQ#Building_.2BAC8_Testing_Hadoop_on_Windows

Replace the hadoop-core*.jar under 'share/hadoop' with 
hadoop-core*.SNAPSHOT.jar 
created under 'build'

Reply via email to