参考链接:
http://www.micmiu.com/bigdata/hadoop/unable-to-load-native-hadoop-library/
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-commo/NativeLibraries.html
http://www.csdn123.com/html/itweb/20131113/219960.htm
在启动hadoop时:
[hadoop-user@master root]$ /opt/hadoop-2.4.0/sbin/start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
14/06/23 09:36:48 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [master]
master: starting namenode, logging to /opt/hadoop-2.4.0/logs/hadoop-hadoop-user-namenode-master.out
slave2: datanode running as process 1888. Stop it first.
slave1: starting datanode, logging to /opt/hadoop-2.4.0/logs/hadoop-hadoop-user-datanode-slave1.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /opt/hadoop-2.4.0/logs/hadoop-hadoop-user-secondarynamenode-master.out
14/06/23 09:37:05 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 /opt/hadoop-2.4.0/logs/yarn-hadoop-user-resourcemanager-master.out
slave2: starting nodemanager, logging to /opt/hadoop-2.4.0/logs/yarn-hadoop-user-nodemanager-slave2.out
slave1: starting nodemanager, logging to /opt/hadoop-2.4.0/logs/yarn-hadoop-user-nodemanager-slave1.out