Ambari + HDP 升级 (Ambari 2.2.2 - 2.4.1 + HDP 2.4.2 - 2.5.0)

Ambari + HDP 升级 (Ambari 2.2.2 - 2.4.1 + HDP 2.4.2 - 2.5.0)

一、Ambari 升级

1.升级前准备

1.1确认版本

Be sure to review the Release Notes for this Ambari release for Known Issues and
Behavioral Changes

1.2确认拥有root权限

You must have root, administrative, or root-equivalent authorization on the Ambari server host and all servers in the cluster.

1.3 备份数据库

You must backup the Ambari Server database

1.4 备份ambari.properties配置文件

You must make a safe copy of the Ambari Server configuration file found at /etc/
ambari-server/conf/ambari.properties.

1.5 计划升级Ambari Metrics service

Record the location of the Metrics Collector component before you begin the upgrade process.
You must stop the Ambari Metrics service from Ambari Web.
• After upgrading Ambari, you must also Upgrade Ambari Metrics service and add the
Grafana component.
• Proceed to Upgrade to Ambari 2.4.
• After upgrading Ambari, you must also Upgrade Hortonworks SmartSense

2.开始升级 Ambari

2.1 关闭 Ambari Metrics service

If you are running Ambari Metrics service in your cluster, stop the service. From Ambari
Web, browse to Services > Ambari Metrics and select Stop from the Service Actions
menu.

2.2 停止ambari-server
ambari-server stop
2.3 停止ambari-agent
ambari-agent stop
2.4 获取新的ambari.repo

本次安装方式使用本地源的方式安装,先下载要安装的资源进行离线安装,具体方法请参考下面文章中制作本地源安装方法。
http://blog.csdn.net/lochy/article/details/51733911

下面是在线安装方式

wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/
2.4.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
2.5 升级 Ambari Server,在服务节点进行
2.5.1 显示ambari-server 信息
yum clean all
yum info ambari-server

输出信息如下:

[11:17:52]Installed Packages
[11:17:52]Name        : ambari-server
[11:17:52]Arch        : x86_64
[11:17:52]Version     : 2.2.2.0
[11:17:52]Release     : 460
[11:17:52]Size        : 445 M
[11:17:52]Repo        : installed
[11:17:52]From repo   : Updates-ambari-2.2.2.0
[11:17:52]Summary     : Ambari Server
[11:17:52]URL         : http://www.apache.org
[
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值