1. 程式人生 > >hadoop解決windows下:Failed to set permissions of path: mp .staging to 0700

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

1.0 style ati 配置文件 github unable ica perm lac

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: \tmp\hadoop

-Administrator\mapred\staging\Administrator-519341271\.staging to 0700
Exception in thread "main" java.io.IOException: Failed to set permissions of path: \tmp\hadoop-Administrator\mapred\staging\Administrator-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
>

hadoop解決windows下:Failed to set permissions of path: \tmp\ \.staging to 0700