Get the Ambari Repository
The first step in upgrading Ambari is obtaining the public repositories.
Get the new Ambari repo and replace the old repository file with the new
repository file on all hosts in your cluster.
Select the repository appropriate for your environment:
For RHEL/CentOS/Oracle Linux 7:
wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/220.127.116.11/ambari.repo -O /etc/yum.repos.d/ambari.repo
- For Amazon Linux
wget -nv http://public-repo-1.hortonworks.com/ambari/amazonlinux2/2.x/updates/18.104.22.168/ambari.repo -O /etc/yum.repos.d/ambari.repo
For SLES 12:
wget -nv http://public-repo-1.hortonworks.com/ambari/sles12/2.x/updates/22.214.171.124/ambari.repo -O /etc/zypp/repos.d/ambari.repo
For Ubuntu 14:
wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/126.96.36.199/ambari.list -O /etc/apt/sources.list.d/ambari.list
For Ubuntu 16:
wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/188.8.131.52/ambari.list -O /etc/apt/sources.list.d/ambari.list
For Debian 9:
wget -nv http://public-repo-1.hortonworks.com/ambari/debian9/2.x/updates/184.108.40.206/ambari.list -O /etc/apt/sources.list.d/ambari.list
For RHEL/CENTOS/Oracle Linux 7 running on IBM Power Systems:
wget -nv http://public-repo-1.hortonworks.com/ambari/centos7-ppc/2.x/updates/220.127.116.11/ambari.repo -O /etc/yum.repos.d/ambari.repo
If your cluster does not have access to the Internet, set up a local repository with this data before you continue. See Using a Local Repository in the Apache Ambari Installation for more information.Note
Ambari Server does not automatically turn off iptables. Check that your installation setup does not depend on iptables being disabled. After upgrading the server, you must either disable iptables manually or make sure that you have appropriate ports available on all cluster hosts. For information on disabling your iptables, see Configuring iptables in the Apache Ambari Installation.
If you are upgrading an HDF-only cluster, open the ambari.repo
or ambari.list file, depending on your operating system. Remove
the following line:
#json.url = http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.jsonNoteThis is not necessary if you are upgrading HDF services on an HDP cluster.