02.Wordcount跑代码ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path java

错误:ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path java.io.IOException
02.Wordcount跑代码ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path java

出现原因:在windows中没有配置hadoop环境变量

解决办法:
第一步:安装hadoop到windows中 比如安装:D:\dev\source\hadoop\hadoop-2.7.4

02.Wordcount跑代码ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path java
第二步:在环境变量新建
02.Wordcount跑代码ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path java

第三步:在系统path后面追加上 ;%HADOOP_HOME%\bin; 保存
02.Wordcount跑代码ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path java

第四步:把hadoop-2.7.4安装包下bin下面的hadoop.dll和winutils.exe拷贝到 sysetm32下
02.Wordcount跑代码ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path java
02.Wordcount跑代码ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path java
第五步:重启电脑 然后通过命令框查看 hadoop version出现下面就好了
02.Wordcount跑代码ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path java