官网解决方案
https://cwiki.apache.org/confluence/display/HADOOP2/WindowsProblems
Hadoop requires native libraries on Windows to work properly -that includes to access the file://
filesystem, where Hadoop uses some Windows APIs to implement posix-like file access permissions.
This is implemented in HADOOP.DLL
and WINUTILS.EXE
.
In particular, %HADOOP_HOME%\BIN\WINUTILS.EXE
must be locatable.
If it is not, Hadoop or an application built on top of Hadoop will fail.
You can fix this problem in two ways
WINUTILS.EXE
binary from a Hadoop redistribution. There is a repository of this for some Hadoop versions on github. Then
%HADOOP_HOME%
to point to the directory above the BIN
dir containing WINUTILS.EXE
.hadoop.home.dir
set to the home directory.java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
原文:https://www.cnblogs.com/wkaca7114/p/spark-winutils.html