[hadoop] hadoop “util.NativeCodeLoader: Unable to load native-hadoop library for your platform”

执行

bin/hdfs dfs -mkdir /user,创建目录时出现警告信息。

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

我这里用的是hadoop 2.6.4.

下载hadoop-native-64-2.6.0.tar:

http://dl.bintray.com/sequenceiq/sequenceiq-bin/hadoop-native-64-2.6.0.tar

下载完以后,解压到hadoop的native目录下,覆盖原有文件即可。操作如下:
tar -x hadoop-native--2.6..tar -C  hadoop/lib/native/

.

再次执行,成功。

[hadoop] hadoop “util.NativeCodeLoader: Unable to load native-hadoop library for your platform”

上一篇:Spring AOP功能和目标


下一篇:Kotlin——最详细的接口使用、介绍