解决Hadoop在本地(windows)操作报错:Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
winutils
Windows binaries for Hadoop versions (built from the git commit ID used for the ASF relase)
项目地址:https://gitcode.com/gh_mirrors/wi/winutils
·
1、Hadoop错误信息:Failed to locate the winutils binary in the hadoop binary path. Could not locate executable null\bin\winutils.exe in the Hadoop binaries

2、原因:window本地无法获取hadoop的配置,报错是缺少winutils.exe程序。Hadoop都是运行在Linux系统下的,在windows下eclipse、Idea中运行mapreduce程序和操作hdfs的API等,要首先安装Windows下运行的支持插件(我的是hadoop2.7.7)。
3、解决办法:安装并配置hadoop相关的插件
- 下载hadoop的windows压缩包hadoop-2.7.7.tar.gz,下载地址
- 2.下载winutils.exe,该文件在hadoop-common-2.2.0-bin包下,下载地址
- 3.hadoop-2.7.7.tar.gz下载解压后,将winutils.exe复制到hadoop-2.7.7/bin目录下

- 4.配置hadoop环境变量



- 5.重启电脑,重新运行即可解决!
Windows binaries for Hadoop versions (built from the git commit ID used for the ASF relase)
最近提交(Master分支:2 个月前 )
e8089ecf - 3 年前
d4f71517
point people at cdarlint/winutils for binaries and call out the fact that we could remove the need for this entirely just to run spark on windows 6 年前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)