Error Failed to locate WinUtils binary in the Hadoop Binary Path
I tied to run Hadoop version 2.2 which resulted in the following error. I tried the following 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 nullbinwinutils.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.(Shell.java:293) at org.apache.hadoop.util.StringUtils.(StringUtils.java:76) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:863)
Trying to get rid of that error message I set -Dhadoop.home.dir to a meaningful value. Now I am getting something like (local path replaced by variable name): Could not locate executable ${HADOOP_HOME}binwinutils.exe in the Hadoop binaries. And guess what: Setting the variable did not make that binary appear. Also, the priority ERROR is wrong, as the application seems to continue. In my eyes that is a bug in Hadoop 2.2.0
Help me out to solve this issue.
To solve failed to locate the winutils binary in the hadoop binary path I am redirect you to a link where can download winutils.exe Then move it to your HADOOP_HOME/bin directory. This should work.