Failed to set permissions of path:

 

Failed to setpermissions of path:

 

问题描述:

Failed to setpermissions of path:

 

 

解决方法:

步骤一: 把路径为:hadoop-1.2.1\src\core\org\apache\hadoop\fs  下的FileUtil.java 类拷贝到工程项目中:

 操作如下:

 

步骤二: 注释掉checkReturnValue 里的内容:

 

 

 private static void checkReturnValue(boolean rv, File p,
                                      FsPermission permission
                                       ) throwsIOException {
/*
   if(!rv) {
     throw new IOException("Failed to set permissions of path: " +p +
                            " to " +
                           String.format("%04o", permission.toShort()));
}
*/
  }


 

 

修改完之后,一般情况下可以正常解决。

 

 

 

你可能感兴趣的:(TO,set,failed,permis)