hdfs报NativeCodeLoader Unable to load native-hadoop library .. using builtin-java classes where appli

报错信息

$ hdfs dfs -get /tmp/perfomance/data/200_101_20191111230827_1.gz …/data/pull/
20/06/16 05:22:41 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable

下载hadoop-native-64包,使用下面的链接下载
http://dl.bintray.com/sequenceiq/sequenceiq-bin/

解压包

# 解压到native目录
tar -xvf hadoop-native-64-2.7.0.tar  -C /home/admin/hadoop-2.7.0/lib/native

# 解压到lib目录
tar -xvf hadoop-native-64-2.7.0.tar  -C /home/admin/hadoop-2.7.0/lib

设置环境变量
vi /etc/profile

export HADOOP_HOME=/home/admin/hadoop-2.7.0
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"

环境变量生效

soruce /etc/profile

测试效果

$ hdfs dfs -get /tmp/perfomance/data/200_101_20191111230827_1.gz …/data/pull/

无提示,问题已得到解决

你可能感兴趣的:(大数据研发与架构设计,hadoop,hdfs报错,native-hadoop,builtin-java,Unable,to,load,native,library)