赞
踩
原来公司的大数据服务器都是CDH,这次客户要求用HDP,记录一下环境安装的过程
第一部分和CDH安装基本相同,都是做准备工作
1.准备工作
1.1.SSH免密码登录
通过配置rsa等配置免密码登陆
1.2.修改host
10.0.0.21 server21
10.0.0.22 server22
10.0.0.23 server23
10.0.0.24 server24
1.3时间同步
NTP安装,配置ntp.conf
1.4安装JDK配置环境变量
2.正式安装
2.1主节点安装httpd
yum -y install httpd
service httpd restart
2.2下载上传解压
下载上传ambari-2.4.1.0-centos7.tar.gz、HDP-2.4.2.0-centos7-rpm.tar.gzHDP-UTILS-1.1.0.20-centos7.tar.gz到/home/hdp
解压到/var/www/html/hdp/
tar -xvf ambari-2.4.1.0-centos7.tar.gz -C /var/www/html/hdp/
2.3添加配置文件
ambari.repo
[AMBARI-2.4.1.0]
name=AMBARI-2.4.1.0
baseurl=http://server21/hdp/AMBARI-2.4.1.0/centos7/2.4.1.0-22/
gpgcheck=1
gpgkey=http://server21/hdp/AMBARI-2.4.1.0/centos7/2.4.1.0-22/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
[HDP-UTILS-1.1.0.21]
name=Hortonworks Data Platform Utils Version - HDP-UTILS-1.1.0.21
baseurl=http://server21/hdp/HDP-UTILS-1.1.0.20/repos/centos7/
gpgcheck=0
gpgkey=http://server21/hdp/HDP-UTILS-1.1.0.20/repos/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
[Updates-ambari]
name=ambari - Updates
baseurl=http://server21/hdp/HDP/centos7/2.x/updates/2.4.2.0/
gpgcheck=1
gpgkey=http://server21/hdp/HDP/centos7/2.x/updates/2.4.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

并发送到其他节点
scp -r /etc/yum.repos.d root@10.0.0.22:/etc/
2.4安装
在主节点运行
yum -y install ambari-server
在其他节点上运行
yum -y install ambari-agent
清理命令
yum clean all
2.5主节点配置JDK
ambari-server setup -j /usr/java/jdk1.8.0_51/
2.6启动server和agent
主节点ambari-server start
其他节点ambari-agent start
2.7打开主节点url
http://10.0.0.21:8080/
按照页面提示配置即可
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。