windows 上运行 spark 程序异常
2019-02-22 本文已影响2人
良人与我
windows 上运行 spark 程序出现
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries
解决办法
-
Download winutils.exe from http://public-repo-1.hortonworks.com/hdp-win-alpha/winutils.exe.
-
SetUp your HADOOP_HOME environment variable on the OS level or programmatically:
System.setProperty("hadoop.home.dir", "full path to the bin folder with winutils");
-
Enjoy
备注:
winutils.exe 要放到 bin 文件夹下