Windows下Hadoop報錯Failed to locate the winutils

首先我這裏只是一個簡單的hdfs查詢程序,並無搭建Hadoop環境,搭建環境還需去看詳細教程。java

報錯: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.    oop

前輩說這是Window系統的緣由,其實並無影響,回頭要放到服務器上,這個問題能夠忽略。教程

但是做爲認(qiang)真(po)嚴(zheng)謹的我,仍是查資料、嘗試,消滅了這個報錯。hadoop


緣由報錯已經說了,沒找到 winutils.exe 文件。
io

文件在這個包裏 :hadoop-common-2.2.0-bin-master  , CSDN上有。table

而後添加系統環境變量 HADOOP_HOME 爲此包目錄的位置,重啓機,ok。ast

相關文章
相關標籤/搜索