码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2017-07-24 00:05:11      阅读:611      评论:0      收藏:0      [点我收藏+]

标签:admin   ffffff   sse   .com   oca   net   ssi   uil   exception   

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

标签:admin   ffffff   sse   .com   oca   net   ssi   uil   exception   

原文地址:http://www.cnblogs.com/mkdlf/p/7226562.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!