无法在 hadoop 二进制路径中找到 winutils 二进制文件 [英] Failed to locate the winutils binary in the hadoop binary path
本文介绍了无法在 hadoop 二进制路径中找到 winutils 二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在为最新的 hadoop-2.2 版本启动 namenode 时出现以下错误.我在 hadoop bin 文件夹中没有找到 winutils exe 文件.我试过下面的命令
I am getting the following error while starting namenode for latest hadoop-2.2 release. I didn't find winutils exe file in hadoop bin folder. I tried below commands
$ bin/hdfs namenode -format
$ sbin/yarn-daemon.sh start resourcemanager
ERROR [main] util.Shell (Shell.java:getWinUtilsPath(303)) - Failed to locate the winutils binary in the hadoop binary path
java.io.IOException: Could not locate executable nullinwinutils.exe in the Hadoop binaries.
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:278)
at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:300)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:293)
at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:76)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:863)
推荐答案
简单的解决方案:从此处下载并添加到$HADOOP_HOME/bin
Simple Solution:
Download it from here and add to $HADOOP_HOME/bin
(来源)
重要更新:
对于 hadoop-2.6.0,您可以从 Titus Barik 博客 >>.
我不仅需要将 HADOOP_HOME
指向提取的目录 [path]
,还需要提供系统属性 -Djava.library.path=[path]in
加载本机库(dll).
I have not only needed to point HADOOP_HOME
to extracted directory [path]
, but also provide system property -Djava.library.path=[path]in
to load native libs (dll).
这篇关于无法在 hadoop 二进制路径中找到 winutils 二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文