【BUG】Could not locate executable null\bin\winutils.exe in the Hadoop binaries.

问题描述

spark本地代码测试出现如下bug

ERROR Shell: 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.

解决方案

谷歌下载并安装插件:GitZip

然后去GitHub上一个winutils里下载

在这里插入图片描述
下载完后放到某个目录下:
在这里插入图片描述
配置环境变量:
HADOOP_HOME
在这里插入图片描述

path里配置环境变量:
%HADOOP_HOME%\bin
在这里插入图片描述
然后重新运行就没有这个错误了。

猜你喜欢

转载自blog.csdn.net/weixin_42072754/article/details/114127738