标签:环境 程序 配置环境 null mapr 参考 ring 解决 mon
运行环境:windows10 64位,虚拟机:Ubuntu Kylin 14.04,Hadoop2.7.1
错误信息:
java.io.IOException: Could not locate executable D:\hadoop\bin\winutils.exe in the Hadoop binaries.
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:356)
at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:371)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:364)
at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:80)
at org.apache.hadoop.security.SecurityUtil.getAuthenticationMethod(SecurityUtil.java:610)
……
……
解决办法:
下载winutils https://github.com/amihalik/hadoop-common-2.6.0-bin
将其解压到hadoop下
再配置环境变量,新建变量HADOOP_HOME,值为Hadoop目录,在PATH中添加%HADOOP_HOME%\bin(可能要重启)
OK。
参考文章:https://blog.csdn.net/love666666shen/article/details/78812622
Windows下运行MapReduce程序出现Could not locate executable null\winutils.exe in the Hadoop binaries.
标签:环境 程序 配置环境 null mapr 参考 ring 解决 mon
原文地址:https://www.cnblogs.com/lzq666/p/9956967.html