Windows本地运行调试Spark或Hadoop程序失败:ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path

报错内容

ERROR util.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.

解决方法

1. 下载windows编译版的Hadoop

2. 新增系统环境变量%HADOOP_HOME%

 

 3. 配置系统变量PATH

 

 4.重启程序即可

 

posted @ 2019-11-19 10:26  猫不夜行  阅读(327)  评论(0编辑  收藏  举报