Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate

前言:
今天做hadoop项目的时候报错
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.
原因:
windows下没有安装hadoop
解决:

  • 1.将hadoop文件压缩到相应的文件夹。

Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate

  • 2.然后进入bin目录,将这两个文件放进去。

Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate

  • 3.配置环境变量

系统变量中加上HADOOP_HOME然后编辑Path,加上%HADOOP_HOME%\bin和%HADOOP_HOME%\lib
Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate
Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate