Upgrade Procedure
To upgrade your cluster from HDP 2.3.6.0, HDP 2.4.x, or 2.5.0 to HDP 2.6.1:
Download hdp.repo from the location listed in the HDF 3.0.0 Release Notes.
Run an update:
apt-get update
Install the HDP 2.6.1 bits:
Operating System
Commands
RHEL/CentOS/Oracle LINUX
Install HDP 2.6.1 components on relevant nodes, according to the services that run on those hosts:
yum install "hadoop_2_6_1_TBD*" "oozie_2_6_1_TBD*" "pig_2_6_1_TBD*" "sqoop_2_6_1_TBD*" "zookeeper_2_6_1_TBD*" "hbase_2_6_1_TBD*" "hive_2_6_1_TBD*" "tez_2_6_1_TBD*" "storm_2_6_1_TBD*" "falcon_2_6_1_TBD*" "flume_2_6_1_TBD*" "phoenix_2_6_1_TBD*" "accumulo_2_6_1_TBD*" "mahout_2_6_1_TBD*"
SLES
Install HDP 2.6.1 components on relevant nodes, according to the services that run on those hosts:
zypper install "hadoop_2_6_1_TBD*" "oozie_2_6_1_TBD*" "pig_2_6_1_TBD*" "sqoop_2_6_1_TBD*" "zookeeper_2_6_1_TBD*" "hbase_2_6_1_TBD*" "hive_2_6_1_TBD*" "tez_2_6_1_TBD*" "storm_2_6_1_TBD*" "falcon_2_6_1_TBD*" "flume_2_6_1_TBD*" "phoenix_2_6_1_TBD*" "accumulo_2_6_1_TBD*" "mahout_2_6_1_TBD*"
Ubuntu/Debian
Install HDP 2.6.1 components on relevant nodes, according to the services that run on those hosts:
apt-get install "hadoop-2-6-1-TBD*" "oozie-2-6-1-TBD*" "pig-2-6-1-TBD*" "sqoop-2-6-1-TBD*" "zookeeper-2-6-1-TBD*" "hbase-2-6-1-TBD*" "hive-2-6-1-TBD*" "tez-2-6-1-TBD*" "storm-2-6-1-TBD*" "falcon-2-6-1-TBD*" "flume-2-6-1-TBD*" "phoenix-2-6-1-TBD*" "accumulo-2-6-1-TBD*" "mahout-2-6-1-TBD*"
Stop all HDP services for your scenario:
Non-Ambari managed clusters
Stop all HDP services using the Stopping HDP Services section of the HDP Reference Guide.
Ambari 1.7.0-managed clusters
Open Ambari Web.
Browse to Services.
Use Service Actions to stop each service.
For all services, switch the active version to HDP 2.6.1.
On each host in the cluster, use
hdp-select
to switch all services to the HDP 2.6.1 version:hdp-select set all 2.6.1.0-TBD
If you are running Ambari 1.7.0, update the repository base URLs to use the HDP 2.6.1 repositories for HDP and HDP-UTILS:
Open Ambari Web.
Browse to Admin > Repositories.
Edit the Base URLs.
Start all HDP 2.6.1 services, in the following order:
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
(HA NameNode upgrade only) ZooKeeper Failover Controller Daemons
/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh start zkfc
(HA NameNode upgrade only) JournalNodes
su - hdfs /usr/hdp/current/hadoop-hdfs-journalnode/../hadoop/sbin/hadoop-daemon.sh start journalnode
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
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.