4.2. Upgrade the Stack

  1. Stop Ambari Server. On the Ambari Server host:

    ambari-server stop
  2. Update the stack version in the Server database, depending on if you are using a local repository:

    [Important]Important

    Make sure you delete the old MapReduce version before you run upgradestack.

    ambari-server upgradestack HDP-2.0.6

    OR

    ambari-server upgradestack HDPLocal-2.0.6
  3. Upgrade the HDP repository on all hosts and replace the old repo file with the new file:

    [Important]Important

    The file you download is named hdp.repo. To function properly in the system, it must be named HDP.repo. Once you have completed the "mv" of the new repo file to the repos.d folder, make sure there is no file named hdp.repo anywhere in your repos.d folder.

    • For RHEL/CentOS/Oracle Linux 5

      wget  http://public-repo-1.hortonworks.com/HDP/centos5/2.x/updates/2.0.6.0/hdp.repo
      mv hdp.repo /etc/yum.repos.d/HDP.repo
    • For RHEL/CentOS/Oracle Linux 6

      wget http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.0.6.0/hdp.repo 
      mv hdp.repo /etc/yum.repos.d/HDP.repo
    • For SLES 11

      wget  http://public-repo-1.hortonworks.com/HDP/suse11/2.x/updates/2.0.6.0/hdp.repo
      mv hdp.repo /etc/zypp/repos.d/HDP.repo
  4. Upgrade the stack on all Agent hosts. Skip any components your installation does not use:

    • For RHEL/CentOS/Oracle Linux

      1. Remove remaining MapReduce components on all hosts:

        yum erase hadoop-pipes hadoop-sbin hadoop-native
      2. Upgrade the following components:

        yum upgrade "collectd*" "epel-release*" "gccxml*" "pig*" "hadoop*" "sqoop*" "zookeeper*" "hbase*" "hive*" "hcatalog*" "webhcat-tar*" "oozie*" hdp_mon_nagios_addons
      3. Check to see that the components in that list are upgraded.

        yum list installed | grep HDP-$old-stack-version-number

        None of the components from that list should appear in the returned list.

    • For SLES

      1. Remove remaining MapReduce components on all hosts:

        zypper remove hadoop-pipes hadoop-sbin hadoop-native
      2. Upgrade the following components:

        zypper up "collectd*" "epel-release*" "gccxml*" "pig*" "hadoop*" "sqoop*" "zookeeper*""hbase*" "hive*" "hcatalog*" "webhcat-tar*" "oozie*" hdp_mon_nagios_addons  

loading table of contents...