7. Upgrading From HDP 2.1.5 to HDP 2.1.7

This section describes how to upgrade an existing HDP 2.1.5 installation to HDP 2.1.7.

If you are upgrading from a previous HDP version, such as HDP 2.0, follow the complete Stack upgrade instructions to HDP 2.1. See:

Before You Begin

To upgrade from HDP 2.1.5 to HDP 2.1.7, do the following:

  1. Download the appropriate hdp.repo file for your OS:

    RHEL/CENTOS/ORACLE LINUX 5http://public-repo-1.hortonworks.com/HDP/centos5/2.x/updates/2.1.7.0/hdp.repo
    RHEL/CENTOS/ORACLE LINUX 6http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.7.0/hdp.repo
    SLES 11 SP1http://public-repo-1.hortonworks.com/HDP/suse11sp1/2.x/updates/2.1.7.0/hdp.repo
    SLES 11 SP3http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/2.1.7.0/hdp.repo
    UBUNTU 12http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.1.7.0/hdp.list
    DEBIAN 6http://public-repo-1.hortonworks.com/HDP/debian6/2.1.7.0/hdp.list

    OR Download the HDP RPMs single repository tarball. (For further information, see the local repository instructions.)

  2. Stop all services.

    If you are managing your deployment via Ambari, open Ambari Web, browse to Services and use the Service Actions command to stop each service.

    If you are upgrading manually, follow the instructions in the HDP 2.1.7 Reference Guide.

    [Note]Note

    If you are upgrading an HA NameNode configuration, keep your JournalNodes running while performing this upgrade procedure. Upgrade, rollback and finalization operations on HA NameNodes must be performed with all JournalNodes running.

  3. Upgrade the stack on all Agent hosts.

    The following instructions include all possible components that can be upgraded. If your installation does not use a particular component, skip those installation instructions.

    Operating SystemInstructionsCommands
    RHEL/CentOs/Oracle Linux  
     Upgrade the following components:
    yum upgrade "collectd*" "gccxml*" "pig*" "hadoop*" "phoenix*" "knox*" "tez*" "falcon*" "storm*" "sqoop*"
    "zookeeper*" "hbase*" "oozie*" "webhcat-tar-hive*" "webhcat-tar-pig*""hive*" hdp_mon_nagios_addons 
     Verify that the components were upgraded. Enter:
    yum list installed | grep
    HDP-$old-stack-version-number               
    SLES  
     Upgrade the following components:
    zypper up "collectd*" "epel-release*" "gccxml*" "pig*" "hadoop*" "phoenix*" "knox*" "falcon*" "tez*" 
    "storm*" "sqoop*" "zookeeper*" "hbase*" "oozie*" "hive*" "webhcat-tar-hive*" "webhcat-tar-pig*" "hive*" hdp_mon_nagios_addons    
     Verify that the components were upgraded. For example:
    rpm -qa | grep hadoop, rpm -qa | grep hive and rpm -qa| grep hcatalog
     If components were not upgraded, upgrade them. For example:
    yast --update hadoop hcatalog hive
    Ubuntu or Debian  
     Upgrade the following components:
    apt-get update "collectd*" "gccxml*" "pig*" "hadoop*" "phoenix*" "knox*" "tez*" "falcon*" "storm*" "sqoop*"
    "zookeeper*" "hbase*" "hive-hcatalog*" "oozie*" "webhcat-tar-hive*" "webhcat-tar-pig""hive*" hdp_mon_nagios_addons
      
    apt-get --force-depends bigtop-jsvcyum install bigtop-jsvc 
     Verify that the components were upgraded. Enter:
    dpkg -s HDP-2 | grep HDP-$old-stack-version-number 

  4. Complete the Stack upgrade.

    For HDP 2.1, use the version of Hue shipped with HDP 2.1. If you have a previous version of Hue, follow the instructions for upgrading Hue in Installing HDP Manually.

    If this is an Ambari-managed cluster, update the Repository Base URLs to use the HDP 2.1.7 repositories for HDP and HDP-UTILS. For Ambari 1.6.1 or earlier, enter:

    ambari-server upgradestack HDP-2.1 http://public-repo-1.hortonworks.com/HDP/{$os}/2.x/updates/2.1.7.0 {$os}

    where {$os} is the Operating System Family (OS Family). See the following table:

     

    Table 2.1. Operating Systems mapped to each OS Family

    OS FamilyOperating System
    redhat5Red Hat 5, CentOS 5, Oracle Linux 5
    redhat6Red Hat 6, CentOS 6, Oracle Linux 6
    sles11SUSE Linux Enterprise Server 11 sp1


  5. Start all services.

    If you are managing your deployment via Ambari, open Ambari Web, browse to Services and use the Service Actions command to start each service.

    If you are upgrading manually, follow the instructions in the HDP 2.1.7 Reference Guide.

    [Note]Note

    Remember to restart Hue as the root user:

    /etc/init.d/hue restart


loading table of contents...