问题描述
- HDFS启动警告 WARN util.NativeCodeLoader
-
启动HDFS报入校警告:
[hadoop@hadoop tmp]$ start-dfs.sh
15/02/02 20:39:49 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [hadoop]
hadoop: starting namenode, logging to /usr/hadoop-2.5.2/logs/hadoop-hadoop-namenode-hadoop.out
localhost: starting datanode, logging to /usr/hadoop-2.5.2/logs/hadoop-hadoop-datanode-hadoop.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/hadoop-2.5.2/logs/hadoop-hadoop-secondarynamenode-hadoop.out
15/02/02 20:40:08 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable网上查说是liunx版本问题
[hadoop@hadoop ~]$ uname -a
Linux hadoop 2.6.32-431.el6.i686 #1 SMP Fri Nov 22 00:26:36 UTC 2013 i686 i686 i386 GNU/LinuxJDK版本
[hadoop@hadoop ~]$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)Hadoop版本:
[hadoop@hadoop ~]$ hadoop version
Hadoop 2.5.2
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r cc72e9b000545b86b75a61f4835eb86d57bfafc0
Compiled by jenkins on 2014-11-14T23:45Z
Compiled with protoc 2.5.0
From source with checksum df7537a4faa4658983d397abf4514320
This command was run using /usr/hadoop-2.5.2/share/hadoop/common/hadoop-common-2.5.2.jar请高手帮忙看下
解决方案
我也是和你一样的问题 ,你解决了吗
解决方案二:
这个只是WARN,不会影响正常执行。 你用的是2.4.1版本? 换成2.6.0就没有这个问题了。
参考:http://www.powerxing.com/install-hadoop/
如果需要根治,请参考:http://www.linuxidc.com/Linux/2014-03/98599.htm