CentOS 7大数据平台之:ambari部署

为什么放弃UBUNTU转到centos

如前人经验所说,ubuntu的系统确实不太稳定,在我的开发过程中,手上的三个ubuntu虚拟机运行过程中有时候常会弹出错误弹窗,但是要汇报错误之类的,

并且有时候start-all.sh之后并不是所有的node都能起来,常常出现要运行两次namenode才起来,或者是namenode运行一半就自动消失了的情况,看log的话网上的解决思路和我的问题背景不太一样,显然不work,

一怒之下转centos,这一次看了一下网上搞大数据的人的思路,基本使用arbari来部署,所以今天就讲一讲怎么用ambari来部署hadoop云数据工程

PS:由于qiang的问题,可能ambari下载包的过程可能不会很流畅

arbari的部署

参考链接:https://www.cnblogs.com/TiestoRay/p/6133866.html

根据官网:https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.4
所说,下好apache-ambari

  1. 根据要求,弄好依赖工具
    在这里插入图片描述
    这里有一个帖子写的不错:https://blog.csdn.net/create_17/article/details/84000772
    yum -y install rpm-build gcc-c++ python-devel
    nodejs不晓得要不要装,回头看看是否需要装

  2. 接下来是正是开始编译
    mvn -B clean install rpm:rpm -DnewVersion=2.7.4.0.0 -DbuildNumber=b730f30585dd67c10d3b841317100f17d4b2c5f1 -DskipTests -Dpython.ver=“python >= 2.6”

  3. 安装
    Install the rpm package from ambari-server/target/rpm/ambari-server/RPMS/noarch/

    [For CentOS 7]

    yum install ambari-server*.rpm #This should also pull in postgres packages as well.

  4. 启动主服务器
    ambari-server setup

  5. 从机启动
    Step 4: Install and Start Ambari Agent on All Hosts
    Note: This step needs to be run on all hosts that will be managed by Ambari.

Copy the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/ and run:

[For CentOS 7]

yum install ambari-agent*.rpm
然后修改从机的设置,把IP指向主机
Edit /etc/ambari-agent/ambari.ini


[server]
hostname=localhost


Make sure hostname under the [server] section points to the actual Ambari Server host, rather than “localhost”.

ambari-agent start

  1. 进入主机WEB页面,开始进行设置了,注意下面加粗的英文。
    Step 5: Deploy Cluster using Ambari Web UI
    Open up a web browser and go to http://:8080.

Log in with username admin and password admin and follow on-screen instructions. Secure your environment by ensuring your administrator details are changed from the default values as soon as possible.

Under Install Options page, enter the hosts to add to the cluster. Do not supply any SSH key, and check “Perform manual registration on hosts and do not use SSH” and hit “Next”.

后话

目前还在部署中,下载速度比较慢,挂了QF,如果有遇到问题后面再po在这里

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值