首页 > Windows开发 > 详细

Windows下运行MapReduce程序出现Could not locate executable null\winutils.exe in the Hadoop binaries.

时间:2018-11-14 12:14:56      阅读:147      评论:0      收藏:0      [点我收藏+]

运行环境: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.

原文:https://www.cnblogs.com/lzq666/p/9956967.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!