HDP-2.4.2 Release Notes
Also available as:
PDF

Upgrade Procedure

[Important]Important

​Because HDP 2.3.6 contains features and fixes that are not applicable to HDP 2.4.0 or HDP 2.4.2, do not upgrade from HDP 2.3.6 to HDP 2.4.0 or HDP 2.4.2.

To upgrade your cluster from HDP 2.4.x to HDP 2.4.2:

  1. Download either the hdp.repo or the RPM single repository tarball:

    1. HDP 2.4.2 hdp.repo file:

    2. HDP 2.4.2 RPM single repository tarball:

      For information about how to install the repositories, see the local repository instructions.

  2. Run an update:

    apt-get update

  3. Install the HDP 2.4.2 bits:

    Operating System

    Commands

    RHEL/CentOS/Oracle LINUX

    Install HDP 2.4.2 components on relevant nodes, according to the services that run on those hosts:

    yum install "hadoop_2_4_2_258*" "oozie_2_4_2_258*" "pig_2_4_2_258*" "sqoop_2_4_2_258*" "zookeeper_2_4_2_258*" "hbase_2_4_2_258*" "hive_2_4_2_258*" "tez_2_4_2_258*" "storm_2_4_2_258*" "falcon_2_4_2_258*" "flume_2_4_2_258*" "phoenix_2_4_2_258*" "accumulo_2_4_2_258*" "mahout_2_4_2_258*"

    SLES

    Install HDP 2.4.2 components on relevant nodes, according to the services that run on those hosts:

    zypper install "hadoop_2_4_2_258*" "oozie_2_4_2_258*" "pig_2_4_2_258*" "sqoop_2_4_2_258*" "zookeeper_2_4_2_258*" "hbase_2_4_2_258*" "hive_2_4_2_258*" "tez_2_4_2_258*" "storm_2_4_2_258*" "falcon_2_4_2_258*" "flume_2_4_2_258*" "phoenix_2_4_2_258*" "accumulo_2_4_2_258*" "mahout_2_4_2_258*"

    Ubuntu/Debian

    Install HDP 2.4.2 components on relevant nodes, according to the services that run on those hosts:

    apt-get install "hadoop-2-4-2-258*" "oozie-2-4-2-258*" "pig-2-4-2-258*" "sqoop-2-4-2-258*" "zookeeper-2-4-2-258*" "hbase-2-4-2-258*" "hive-2-4-2-258*" "tez-2-4-2-258*" "storm-2-4-2-258*" "falcon-2-4-2-258*" "flume-2-4-2-258*" "phoenix-2-4-2-258*" "accumulo-2-4-2-258*" "mahout-2-4-2-258*"

  4. Stop all HDP 2.4.x services for your scenario:

    • Non-Ambari managed clusters

      1. Stop all HDP 2.4.x services using the Stopping HDP Services section of the HDP Reference Guide.

    • Ambari 1.7.0-managed clusters

      1. Open Ambari Web.

      2. Browse to Services.

      3. Use Service Actions to stop each service.

  5. For all services, switch the active version to HDP 2.4.2.

    On each host in the cluster, use hdp-select to switch all services to the HDP 2.4.2 version:

    hdp-select set all 2.4.2.0-258

  6. If you are running Ambari 1.7.0, update the repository base URLs to use the HDP 2.4.2 repositories for HDP and HDP-UTILS:

    1. Open Ambari Web.

    2. Browse to Admin > Repositories.

    3. Edit the Base URLs.

  7. Start all HDP 2.4.2 services, in the following order:

    1. Apache ZooKeeper

      su - zookeeper export ZOOCFGDIR=/usr/hdp/current/zookeeper-server/conf ; export ZOOCFG=zoo.cfg; source /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh ; /usr/hdp/current/zookeeper-server/bin/zkServer.sh start

    2. (HA NameNode upgrade only) ZooKeeper Failover Controller Daemons

      /usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh start zkfc

    3. (HA NameNode upgrade only) JournalNodes

      su - hdfs /usr/hdp/current/hadoop-hdfs-journalnode/../hadoop/sbin/hadoop-daemon.sh start journalnode

    4. HDFS NameNode(s)

      Start the HDFS NameNode(s). Because there is no metadata schema update for this upgrade, start the NameNode(s) in normal mode:

      su - hdfs /usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh start namenode

    5. Remaining Services

      Start the rest of the HDP services. On each host in the cluster, start the services that are relevant to that cluster. To identify the start commands for all services, see "Controlling HDP Services Manually" in the HDP Reference Guide.

    Your cluster is upgraded. Ensure that your workloads run correctly on this upgraded cluster.