hadoop 「util.NativeCodeLoader: Unable to load native-hadoop library for your platform」

1、問題描述java

當執行start-all.sh來啓動hadoop時,出現警告:「util.NativeCodeLoader: Unable to load native-hadoop library for your platform」app

WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... 
using builtin-java classes where applicable

這個警告致使hadoop fs -ls /與hadoop fs -mkdir /dir1等都沒法成功。oop

2、解決問題ui

google都說與操做系統的位數有關係,我當前操做系統:CentOS6.8_x64google

解決方法卻十分簡潔:操作系統

首先下載hadoop-native-64-2.4.0.tar:
http://dl.bintray.com/sequenceiq/sequenceiq-bin/hadoop-native-64-2.4.0.tar
若是你是hadoop2.6的能夠下載下面這個:
http://dl.bintray.com/sequenceiq/sequenceiq-bin/hadoop-native-64-2.6.0.tar
下載完之後,解壓到hadoop的native目錄下,覆蓋原有文件便可。操做以下:
tar -x hadoop-native-64-2.4.0.tar -C  hadoop/lib/native/orm

相關文章
相關標籤/搜索