hadoop "startdfs.sh" WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

这个waring 信息是可以忽略的。下面是解决方案

在hadoop-env.sh中添加

 

export HADOOP_OPTS="$HADOOP_OPTS -Djava.library.path=$HADOOP_HOME/lib/native"

export HADOOP_COMMON_LIB_NATIVE_DIR="/usr/local/hadoop/lib/native/"

posted @ 2017-07-25 19:36  Jesse_Li  阅读(236)  评论(0编辑  收藏  举报