zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    洛谷 P6622
    洛谷 P6619
    LOJ 3188
    CF::Gym 102174G
    eJOI2017~2019
    洛谷 P6313
    洛谷 P6305
    JSOI2020 酱油记
    洛谷 P6234
    CodeForces 1334F
  • 原文地址:https://www.cnblogs.com/mkdlf/p/7226562.html
Copyright © 2011-2022 走看看