在安装过程中,如果需要重新对Hadoop源码进行编译,参照http://jingyan.baidu.com/article/ce436649fea8533772afd365.html,的解决方案
在安装protobuf的过程中,执行./configure出错,需要先安装vim ,gcc,make;
Centos 安装vim ,g++,make的命令为:yum install vim、yum install gcc、yum install make、yum -y install gcc+ gcc-c++
然后再依次执行./configure、make、make check、make install
一、编译haodoop:
1.下载源码包hadoop-2.2.0-src.tar.gz并解压
wget http://apache.mirrors.pair.com/hadoop/common/hadoop-2.2.0/hadoop-2.2.0-src.tar.gz
tar -zxvf hadoop-2.2.0-src.tar.gz
注:参考的博客中说源码有问题需要修改,但笔者并未修改也编译成功了,有需要的可以参考
http://www.linuxidc.com/Linux/2014-01/95938.htm
2.进入hadoop-2.2.0-src目录,执行
mvn clean package -Pdist,native -DskipTests -Dtar
3.编译好的hadoop-2.2.0.tar.gz在hadoop-2.2.0-src木目录下的hadoop-dist/target/的目录中,接下来就可以安装了
二、安装ssh
解决ssh:command not found
yum -y install openssh-clients