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 null\bin\winutils.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)
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}\bin\winutils.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.