Hadoop “Unable to load native-hadoop library for your platform” warning

hadoop

#1

Hello All,

I’m currently configuring hadoop on a server running CentOs. When I run start-dfs.sh or stop-dfs. sh, I get the following error:

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

I’m running Hadoop 2.2.0.

However, the contents of /native/ directory on hadoop 2.x appear to be different so I am not sure what to do.

I’ve also added these two environment variables in hadoop-env sh:

export HADOOP_OPTS="$HADOOP_OPTS -Djava.library.path=/usr/local/hadoop/lib/"

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

Any ideas?

can anyone help me on this!

Thanks