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

时间:2024-12-07 11:36:50

使用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"

还有一种说法是本身关系下载默认$HADOOP_HOME/lib/native里是32位的 ,要换成64位的

http://dl.bintray.com/sequenceiq/sequenceiq-bin/