hadoop解决windows下:Failed to set permissions of path: mp .staging to 0700

17/04/24 15:32:44 WARN util.NativeCodeLoader: Unable to load native-Hadoop library for your platform... using builtin-Java classes where applicable
17/04/24 15:32:44 ERROR security.UserGroupInformation: PriviledgedActionException as:Administrator cause:Java.io.IOException: Failed to set permissions of path: mphadoop-AdministratormapredstagingAdministrator-519341271.staging to 0700
Exception in thread "main" java.io.IOException: Failed to set permissions of path: mphadoop-AdministratormapredstagingAdministrator-519341271.staging to 0700

解决:

1.添加jar包:

https://github.com/downloads/congainc/patch-hadoop_7682-1.0.x-win/patch-hadoop_7682-1.0.x-win.jar

2.在windows项目中core-site.xml添加配置文件

<property>
         <name>fs.file.impl</name>
         <value>com.conga.services.hadoop.patch.HADOOP_7682.WinLocalFileSystem</value>
         <description>Enables patch for issue HADOOP-7682 on Windows</description>
</property>
原文地址:https://www.cnblogs.com/mkdlf/p/7226562.html