Chapter 7. Appendix: Upgrading Ambari Server from 1.2.0 to 1.2.1

Upgrading Ambari Server is an eight step manual process.

  1. Stop the Ambari Server and all Ambari Agents. From the Ambari Server host:

    ambari-server stop

    From each Ambari Agent host:

    ambari-agent stop
  2. Get the new Ambari bits. Use wget to fetch the repository file and replace the old repo file with the new repo file.

    • Fetch the new repo file:

      For RHEL/CentOS 5

      wget http://public-repo-1.hortonworks.com/ambari/centos5/1.x/GA/ambari.repo

      For RHEL/CentOS 6

      wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo

      For SLES 11

      wget http://public-repo-1.hortonworks.com/ambari/suse11/1.x/GA/ambari.repo
    • Replace the old repo file with the new repo file:

      For RHEL/CentOS 5

      cp ambari.repo /etc/yum.repos.d

      For RHEL/CentOS 6

      cp ambari.repo /etc/yum.repos.d

      For SLES 11

      cp ambari.repo /etc/zypp/repos.d
    [Note]Note

    If your cluster does not have access to the Internet, you need to set up a local repository with this data before you continue. See Configure the Local Repositories for more information.

  3. Upgrade Ambari Server. From the Ambari Server host:

    • RHEL/CentOS

      yum upgrade ambari-server
    • SLES

      zypper clean --all
      zypper up ambari-server
      
  4. Upgrade the Ambari Server schema. From the Ambari Server host:

    ambari-server upgrade
  5. Upgrade the Ambari Agent on all hosts. From each Ambari Agent host:

    • RHEL/CentOS

      yum upgrade ambari-agent
    • SLES

      zypper up ambari-agent
  6. Update Ambari Server hostname in Agent configuration file. On each Agent host, open /etc/ambari-agent/conf/ambari-agent.ini and edit this property:

    hostname = {your.ambari.server.hostname}
  7. Start the Server and the Agents on all hosts. From the Server host:

    ambari-server start

    From each Agent host:

    ambari-agent start
  8. Re-set the Ambari-Ganglia connection.

    1. Open Ambari Web. Point your browser to http://{your.ambari.server}:8080

      Use the Admin name and password you have set up to log in.

    2. Go to the Services View and select the Ganglia service.

    3. Use the Management Header to stop and re-start the Ganglia service.


loading table of contents...