warn util.nativecodeloader:无法为您的平台加载本机hadoop库在mac上使用内置java类(如果适用)

anauzrmj  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(447)

我使用的是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

我该怎么解决这个问题?

7lrncoxx

7lrncoxx1#

为了解决这个问题,您必须自己编译hadoop。
问题不是所有的hadoop都是用java编写的。hadoop附带了几个本机库,它们依赖于操作系统中的其他库。由于您下载的hadoop是在另一个系统上构建的,所以其中一些依赖关系没有得到满足。

相关问题