执行Hadoop相关命令时出现 Unable to load native-hadoop library for your platform... 解决办法
在安装Hadoop伪分布环境后,执行相关命令(例如:bin/hdfs dfs -ls)会出现
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable,这是因为安装的navtive包和平台不匹配的缘故,需要重新编译Hadoop源码包,然后将navtive包进行替换(/opt/modules/hadoop-2.5.0-src/hadoop-dist/target/hadoop-2.5.0/lib)