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.youkuaiyun.com/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
[