Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Viewing all articles
Browse latest Browse all 6262

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

$
0
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://www.linuxidc.com/Linux/2017-03/141302.htm

下面是在线安装方式

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
[11:17:52]License : 2012, Apache Software Foundation
[11:17:52]Description : Maven Recipe: RPM Package.
[11:17:52]
[11:17:52]Available Packages
[11:17:52]Name : ambari-server
[11:17:52]Arch : x86_64
[11:17:52]Version : 2.4.1.0
[11:17:52]Release : 22
[11:17:52]Size : 646 M
[11:17:52]Repo : Updates-ambari-2.4.1.0
[11:17:52]Summary : Ambari Server
[11:17:52]URL : http://www.apache.org
[11:17:52]License : (c) Apache Software Foundation
[11:17:52]Description : Maven Recipe: RPM Package. 2.5.2执行更新操作

在输出信息中确认最新可用的版本为2.4.1.0,再进行ambari-server更新操作如下:

yum upgrade ambari-server 2.6 检查ambari-server 更新是否成功

在2.5.2 更新的过程中出现如下信息,说明更新成功

[11:24:56]Resolving Dependencies
[11:24:56]--> Running transaction check
[11:24:56]---> Package ambari-server.x86_64 0:2.2.2.0-460 will be updated
[11:24:56]---> Package ambari-server.x86_64 0:2.4.1.0-22 will be an update
[11:24:59]--> Finished Dependency Resolution
[11:24:59]
[11:24:59]Dependencies Resolved [<span>11</span>:<span>25</span>:<span>32</span>]&nbsp; Verifying&nbsp; : ambari-<span>server</span>-<span>2.4</span><span>.1</span><span>.0</span>-<span>22.</span>x86_64&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span>1</span>/<span>2</span> <br />[<span>11</span>:<span>25</span>:<span>32</span>]&nbsp; Verifying&nbsp; : ambari-<span>server</span>-<span>2.2</span><span>.2</span><span>.0</span>-<span>460.</span>x86_64&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span>2</span>/<span>2</span> <br />[<span>11</span>:<span>25</span>:<span>32</span>]<br />[<span>11</span>:<span>25</span>:<span>32</span>]Updated:<br />[<span>11</span>:<span>25</span>:<span>32</span>]&nbsp; ambari-<span>server</span>.x86_64 <span>0</span>:<span>2.4</span><span>.1</span><span>.0</span>-<span>22</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />[<span>11</span>:<span>25</span>:<span>32</span>]<br />[<span>11</span>:<span>25</span>:<span>32</span>]Complete! 2.7 更新所有的 ambari-agent节点 yum clean all
yum info ambari-agent
yum upgrade ambari-agent

输出结果如下,则ambari-agent 更新成功

[11:40:04] Verifying : ambari-agent-2.4.1.0-22.x86_64

Viewing all articles
Browse latest Browse all 6262

Trending Articles