启动时报这个错误
[root@hadoop sbin]$ sbin/start-dfs.sh
1WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin- Java classes where applicable
解决方法
1. 去网站:http://dl.bintray.com/sequenceiq/sequenceiq-bin/ 下载对应的编译版本,我下载的是2.6
[root@hadoop hadoop]tar -xvf hadoop- native - 64 - 2.6 . 0 .tar -C hadoop /lib
2.修改/etc/profile,在里面添加
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
之后问题解决
[root@hadoop sbin]$ sbin/start-dfs.sh
1WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin- Java classes where applicable
解决方法
1. 去网站:http://dl.bintray.com/sequenceiq/sequenceiq-bin/ 下载对应的编译版本,我下载的是2.6
2.将准好的64位的lib包解压到已经安装好的hadoop安装目录的lib/native 和 lib目录下
[root@hadoop hadoop]tar -xvf hadoop- native - 64 - 2.6 . 0 .tar -C hadoop /lib/ native[root@hadoop hadoop]tar -xvf hadoop- native - 64 - 2.6 . 0 .tar -C hadoop /lib
2.修改/etc/profile,在里面添加
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
之后问题解决
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31496956/viewspace-2151045/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/31496956/viewspace-2151045/