首页 > 代码库 > 解决Unable to load native-hadoop library for your platform

解决Unable to load native-hadoop library for your platform

使用hadoop fs相应命令时候总是出现

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

系统环境下

添加

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

 

解决Unable to load native-hadoop library for your platform