首页 > 编程语言 > 详细

java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.

时间:2020-02-09 00:54:13      阅读:77      评论:0      收藏:0      [点我收藏+]

官网解决方案

https://cwiki.apache.org/confluence/display/HADOOP2/WindowsProblems

 

Problems running Hadoop on Windows

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.

How to fix a missing WINUTILS.EXE

You can fix this problem in two ways

  1. Install a full native windows Hadoop version. The ASF does not currently (September 2015) release such a version; releases are available externally.
  2. Or: get the WINUTILS.EXE binary from a Hadoop redistribution. There is a repository of this for some Hadoop versions on github

Then

  1. Set the environment variable %HADOOP_HOME% to point to the directory above the BIN dir containing WINUTILS.EXE.
  2. Or: run the Java process with the system property 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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!