Ambari本地源搭建hdp+spark集群
一、 操作系统
RHEL 7
二、 本地源搭建
1. 安装apache web服务
a) 安装
选择一台节点单独作为apache web服务,并通过yum来安装;
b) 自动启动和停止
启动和停止
#systemctl enable httpd.service
# systemctl start httpd.service启动
# systemctl restart httpd.service重新启动
# systemctl stop httpd.service停止服务
c) 测试
# echo"www.linuxidc.local" > /var/www/html/index.html
# echo"good 好 web服务" >> /var/www/html/index.html
然后在浏览器中输入:http://hostname会出现以上输入的文字
2. 获取本地仓库软件包
1) 创建本地仓库Repositories的目录
1、在Apache http web服务上的默认根目录:/var/www/html/
2) 下载Ambari Repositories仓库
注:此例是下载ambari 2.4.1.0,请下载最新版本
Base URL |
http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.1.0 |
Repo File |
http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.1.0/ambari.repo |
http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.1.0/ambari-2.4.1.0-centos7.tar.gz |
把下载ambari.repo、ambari-2.4.1.0-centos7.tar.gz文件
拷贝到web服务器上Ambari/centos7/ 目录下