$ bin/start-hbase.sh
2015-07-01 19:21:34,971 ERROR [main] util.Shell: Failed to locate the winutils binary in the hadoop binary path
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:355)
at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:370)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:363)
at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:78)
at org.apache.hadoop.conf.Configuration.getStrings(Configuration.java:1699)
at org.apache.hadoop.hbase.zookeeper.ZKConfig.makeZKProps(ZKConfig.java:113)
at org.apache.hadoop.hbase.zookeeper.ZKServerTool.main(ZKServerTool.java:45)
1条答案
按热度按时间noj0wjuj1#
您缺少winutils.exe,一个hadoop二进制文件。根据x64位/x32位系统,下载winutils.exe文件并将hadoop home设置为指向它。
第一路:
1.下载文件
2.在系统中创建hadoop文件夹,例如“c:”
3.在hadoop目录中创建bin文件夹,例如:c:\hadoop\bin
4.在bin ex:c:\hadoop\bin\winuitls.exe中粘贴winutils.exe
5.在系统属性->高级系统设置的用户变量中
创建新变量名:hadoop\u主路径:c:\hadoop
第二种方式:
您可以使用如下命令在java程序中直接设置hadoop home: