ambari+hdp+spark集群本地源搭建详细图解教程

本文提供了一步一步的详细教程,教你如何在RHEL 7操作系统上通过Ambari搭建HDP和Spark集群。首先,安装Apache web服务并配置本地仓库,接着配置集群环境,包括关闭防火墙、SELinux,设置文件权限等。然后安装MySQL 5.7,最后安装Ambari Server,创建数据库并启动Ambari Server。
摘要由CSDN通过智能技术生成

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

Tarball md5 |asc

http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.4.1.0/ambari-2.4.1.0-centos7.tar.gz

 

把下载ambari.repoambari-2.4.1.0-centos7.tar.gz文件

拷贝到web服务器上Ambari/centos7/ 目录下

 

3)   下载HDP Stack Repositories仓库

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值