3. Upgrading Ambari

This process upgrades Ambari Server, Ambari Agents, Ganglia, and Nagios.

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

    • RHEL/CentOS/Oracle Linux

      yum clean all
      yum upgrade ambari-server ambari-log4j
    • SLES

      zypper clean
      zypper up ambari-server ambari-log4j
      
  2. Check for upgrade success:

    • As the process runs, the console should produce output similar, although not identical, to this:

      Setting up Upgrade Process
      Resolving Dependencies
      --> Running transaction check
      ---> Package ambari-agent.x86_64 0:1.2.2.3-1 will be updated
      ---> Package ambari-agent.x86_64 0:1.2.2.4-1 will be updated ...
      ---> Package ambari-agent.x86_64 0:1.2.2.5-1 will be an update ...

      After the process is complete, check each host to make sure the new 1.2.5 files have been installed:

      rpm -qa | grep ambari
    • If the upgrade fails, the console should produce output similar to this:

      Setting up Upgrade Process
      No Packages marked for Update
  3. Check to see if you have a folder named /etc/ambari-server/conf.save. If you do, rename it back:

    mv /etc/ambari-server/conf.save /etc/ambari-server/conf
  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/Oracle Linux

      yum upgrade ambari-agent ambari-log4j
    • SLES

      zypper up ambari-agent ambari-log4j
      [Note] Note

      If you get a warning that begins "There are some running programs that use files deleted by recent upgrade" you can ignore it.

  6. Check to see if you have a folder named /etc/ambari-agent/conf.save on each Agent host. If you do, rename it back. On each Agent host:

    mv /etc/ambari-agent/conf.save /etc/ambari-agent/conf
  7. Upgrade Ganglia and Nagios:

    • Upgrade Ganglia Server. From the Ganglia Server host:

      • RHEL/CentOS/Oracle Linux

        yum upgrade ganglia-gmond ganglia-gmetad libganglia
        yum erase gweb hdp_mon_ganglia_addons
        yum install ganglia-web
      • SLES

        zypper up ganglia-gmond ganglia-gmetad libganglia
        zypper remove gweb hdp_mon_ganglia_addons
        zypper install ganglia-web
    • Upgrade Ganglia Monitor. From every host that has Ganglia Monitor installed:

      • RHEL/CentOS/Oracle Linux

        yum upgrade ganglia-gmond libganglia
      • SLES

        zypper up ganglia-gmond libganglia 
    • Upgrade Nagios. From the Nagios Server host:

      • RHEL/CentOS/Oracle Linux

        yum upgrade nagios
        yum upgrade hdp_mon_nagios_addons
        yum erase nagios-plugins-1.4.15
        yum install nagios-plugins-1.4.9

        The 1.4.9 version of the plugin may already be installed. In this case, the second step is a no-op.

      • SLES

        zypper up nagios
        zypper up hdp_mon_nagios_addons
        zypper remove nagios-plugins-1.4.15
        zypper install nagios-plugins-1.4.9

        The 1.4.9 version of the plugin may already be installed. In this case, the second step is a no-op.


loading table of contents...