自己在网上下载了一个hadoop-2.6.0-cdh5.15.1版本的hadoop,启动hdfs时报错:WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
是因为$HADOOP_HOME/lib/native下缺少so文件,所以自己下载hadoop源码包,自己编译了一下得到了native so,编译环境:centos7 hadoop-2.6.0 jdk1.8