Spark应用启动报错:Could not locate executable null\bin\winutils.exe in the Hadoop binaries.

目录

报错

分析

解决

方式1:设置系统属性

方式2:设置环境变量


报错

06-08 09:47:32.608 [main] WARN org.apache.hadoop.util.NativeCodeLoader L:62 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

06-08 09:47:32.709 [main] ERROR org.apache.hadoop.util.Shell L:396 - 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.

at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:378)

at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:393)

at org.apache.ha

你可能感兴趣的:(【更新中...】项目中的那些事,spark,hadoop,大数据,winutils.exe)