安装Native Lib
将hadoop-2.0.0+1518-1.cdh4.5.0.p0.24.el6.x86_64.rpm在PC上使用压缩工具打开后,取出usrlibhadooplib ative 下面的代码,上传到主机 ${HADOOP_HOME}/lib/native 下面
cd ${HADOOP_HOME}/lib/native
rm libhadoop.so
rm libsnappy.so
rm libsnappy.so.1
ln -s libhadoop.so.1.0.0 libhadoop.so
ln -s libsnappy.so.1.1.3 libsnappy.so.1
ln -s libsnappy.so.1.1.3 libsnappy.so
cd ..
tar -zcf native.tar.gz native
scp native.tar.gz duangr-2:${HADOOP_HOME}/lib
ssh duangr-2 "cd ${HADOOP_HOME}/lib; tar -zxf native.tar.gz;"
scp native.tar.gz duangr-3:${HADOOP_HOME}/lib
ssh duangr-3 "cd ${HADOOP_HOME}/lib; tar -zxf native.tar.gz;"
安装完成
重启hadoop即可
本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:https://www.linuxidc.com/Linux/2014-03/98599.htm