错误: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

相关文章:

  • 2021-03-31
  • 2021-12-12
  • 2022-12-23
  • 2021-05-16
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-21
  • 2021-12-15
  • 2022-01-23
  • 2021-09-23
  • 2021-06-15
相关资源
相似解决方案