Upgrade to Ambari 2.6.1
On the Ambari host where the Server and Agent are running
Stop Ambari Server:
[root@host ~]# ambari-server stop
Stop Ambari Agents on all hosts:
[root@host ~]# ambari-agent stop
Update the Ambari repository. See the HDF Release Notes for the Ambari repository appropriate for your Operating System.
For example:
[root@host ~]# wget -nv "http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/ambari.repo" -O /etc/yum.repos.d/ambari.repo
Upgrade Ambari Server binaries:
[root@host ~]# yum clean all [root@host ~]# yum info ambari-server [root@host ~]# yum upgrade ambari-server
Upgrade the Ambari Agent binaries:
[root@host ~]# yum upgrade ambari-agent
Upgrade your HDF management pack. See the HDF Release Notes for the management pack location appropriate for your Operating System.
For example:
[root@host ~]# ambari-server upgrade-mpack --mpack=mpack=http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.1.1.0/tars/hdf_ambari_mp/hdf-ambari-mpack-3.1.1.0-<build-number>.tar.gz --verbose
Ensure that the HDF 3.1.x configurations are enabled for NiFi and NiFi Registry.
See the HDF Release Notes for the management pack version and build number.
python /var/lib/ambari-server/resources/mpacks/hdf-ambari-mpack-3.1.1.0-<build-no>/hooks/switch_addon_services.py /var/lib/ambari-server/resources/mpacks/hdf-ambari-mpack-3.1.1.0-<build-no>/hooks/HDF-3.1.json
For CentOS 7
cp /var/lib/ambari-server/resources/mpacks/hdf-ambari-mpack-3.1.1.0-<build-no>/hooks/switch_addon_services.py /usr/lib/python2.6/site-packages/.
python /usr/lib/python2.6/site-packages/switch_addon_services.py /var/lib/ambari-server/resources/mpacks/hdf-ambari-mpack-3.1.1.0-<build-no>/hooks/HDF-3.1.json
Run the Ambari Server upgrade wizard:
[root@host ~]# ambari-server upgrade
Restart the Ambari Server:
[root@host ~]# ambari-server start
Restart the Ambari Agent:
[root@host ~]# ambari-agent start
On the Ambari hosts where only the Ambari Agent is running
Download the Ambari repository and upgrade the Ambari Agent. See the HDF Release Notes for the Ambari repository appropriate for your Operating System.
For example:
[root@host ~]# wget -nv "http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/ambari.repo" -O /etc/yum.repos.d/ambari.repo [root@host ~]# yum clean all [root@host ~]# yum upgrade ambari-agent
Restart the Ambari Agent.
[root@host ~]# ambari-agent start