executable nullinwinutils.exe in the Hadoop binaries.

Posted 薛定谔的猫!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了executable nullinwinutils.exe in the Hadoop binaries.相关的知识,希望对你有一定的参考价值。

 在windows 使用eclipse远程调用hadoop集群时抛出下面异常

executable null\\bin\\winutils.exe in the Hadoop binaries.

这个问题

(1)你没有设置hadoop的环境变量,所以提示 null\\bin\\.......

(2)你没有 winutils.exe

winutils.exe的下载地址:https://github.com/srccodes/hadoop-common-2.2.0-bin (不用担心版本问题,我Hadoop2.6.4 和Hadoop2.7.3 都用这个),然后把下载的winutils.exe放到你hadoop安装目录的bin/ 目录下

 

设置环境变量有两种方式

>1:环境变量一个是你可以直接在程序里设置(这个好处是你不用重启电脑,但是你写个小例子就得设置一下)

Configuration conf=new Configuration();
conf.set("hadoop_home", "H:\\\\publicQuoteJar\\\\hadoop-2.7.3");

>2:在系统中设置环境变量,跟java设置类似(只需要设置一次,记得设置后要重启电脑才能生效,jdk这样设置环境变量就不用重启)

你要设置HADOOP_HOMEPATH

在系统变量里---》新建

PATH 设置(到bin 目录)

 

以上是关于executable nullinwinutils.exe in the Hadoop binaries.的主要内容,如果未能解决你的问题,请参考以下文章

Could not locate executable nullinwinutils.exe in the Hadoop binaries.

Could not locate executable nullinwinutils.exe in the Hadoop binaries.

java.io.IOException: Could not locate executable nullinwinutils.exe in the Hadoop binaries.

spark本地项目报错:Could not locate executable nullinwinutils.exe in the Hadoop binaries.

spark本地项目报错:Could not locate executable nullinwinutils.exe in the Hadoop binaries.

spark本地项目报错:Could not locate executable nullinwinutils.exe in the Hadoop binaries.