hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radu <vlaso...@gmail.com>
Subject Re: Failed to set permissions of path
Date Thu, 02 Feb 2012 01:28:04 GMT
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' 

   * Use the command chmod to set permission.
  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'

View raw message