Failed to set permissions of path:

来源:互联网 发布:成功的网络促销 编辑:程序博客网 时间:2024/05/23 18:30

 

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()));}*/  }


 

 

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

 

 

 

0 0
原创粉丝点击