WARN util.NativeCodeLoader:无法为您的平台加载native-hadoop库...使用适用于mac的builtin-java类

时间:2016-12-07 11:19:38

标签: hadoop

我使用的是Mac OSX El-Capitan,而且是hadoop的新手。安装完成后我收到此警告:

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

WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: starting namenode, logging to /usr/local/hadoop/hadoop-2.7.2/logs/hadoop-rippermode-namenode-Nitin-Pro.mshome.net.out
localhost: starting datanode, logging to /usr/local/hadoop/hadoop-2.7.2/logs/hadoop-rippermode-datanode-Nitin-Pro.mshome.net.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/hadoop-2.7.2/logs/hadoop-rippermode-secondarynamenode-Nitin-Pro.mshome.net.out
16/12/07 15:16:34 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/hadoop-2.7.2/logs/yarn-rippermode-resourcemanager-Nitin-Pro.mshome.net.out
localhost: starting nodemanager, logging to /usr/local/hadoop/hadoop-2.7.2/logs/yarn-rippermode-nodemanager-Nitin-Pro.mshome.net.out

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

你必须自己编译hadoop才能解决这个问题。

问题不是所有hadoop都是用java编写的。有几个本机库带有hadoop,并且依赖于操作系统中的其他库。由于您下载的hadoop是在不同的系统上构建的,因此无法满足某些依赖项。