Unable to load native-hadoop library for your platform... using builtin-java classes where applicabl...

时间:2024-04-03 13:26:42

问题描述:

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

Unable to load native-hadoop library for your platform... using builtin-java classes where applicabl...

 [[email protected] native]$ pwd
/usr/local/hadoop/hadoop-2.6.0/lib/native
[[email protected] native]$ ls
libhadoop.a   libhadooppipes.a   libhadoop.so  libhadoop.so.1.0.0   libhadooputils.a  libhdfs.a   libhdfs.so  libhdfs.so.0.0.0

 

   其实,这个问题,要解决很简单,我这里是hadoop-2.6.0版本。

如果你也是hadoop2.6的可以下载下面这个:
http://dl.bintray.com/sequenceiq/sequenceiq-bin/hadoop-native-64-2.6.0.tar

若是其他的hadoop版本,下载下面这个:

      http://dl.bintray.com/sequenceiq/sequenceiq-bin/hadoop-native-64-2.*.0.tar

Unable to load native-hadoop library for your platform... using builtin-java classes where applicabl...

Unable to load native-hadoop library for your platform... using builtin-java classes where applicabl...

 

[[email protected] native]$ tar -xvf hadoop-native-64-2.6.0.tar -C $HADOOP_HOME/lib/native

[[email protected] native]$ tar -xvf hadoop-native-64-2.6.0.tar -C $HADOOP_HOME/lib

 以上,这两个命令都要执行。

 

 

然后增加环境变量

 [[email protected] native]# vim /etc/profile

增加下面的内容:

 Unable to load native-hadoop library for your platform... using builtin-java classes where applicabl...

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

 

 

 让环境变量生效

[[email protected] native]# source /etc/profile

 

 

 结果

Unable to load native-hadoop library for your platform... using builtin-java classes where applicabl...

  最后,这个问题成功解决了!


本文转自大数据躺过的坑博客园博客,原文链接:http://www.cnblogs.com/zlslch/p/6418248.html,如需转载请自行联系原作者