Upgrade HDP 2.5 Components
| ![[Important]](../common/images/admon/important.png) | Important | 
|---|---|
| See the Release Notes for the HDP 2.6.0.3 repo information. | 
The upgrade process to HDP 2.6.0 involves the following steps.
Select your OS:
RHEL/CentOS/Oracle 6
- On all hosts, clean the yum repository. - yum clean all
- Remove your old HDP 2.5 components. This command uninstalls the HDP 2.5 components. It leaves the user data, and metadata, but removes your configurations: - yum erase "hadoop*" "webhcat*" "oozie*" "collectd*" "gccxml*" "pig*" "hdfs*" "sqoop*" "zookeeper*" "hbase*" "hive*" "tez*" "storm*" "falcon*" "flume*" "phoenix*" "accumulo*" "mahout*" "hue" "hue-common" "hue-shell" "knox*" "spark*" "slider*" "hdp_mon_nagios_addons "bigtop"" 
- Validate that all HDP 2.5 component binaries are uninstalled: - yum list installed | grep @HDP2.5
- Remove your old hdp.repo file: - rm /etc/yum.repos.d/hdp.repo
- Install the HDP 2.6.0 repo: - Download the hdp.repo file: - wget -nv https://hdpweb.o.onslip.net/p/HDP/2.x/2.6.0.3/centos6/hdp.repo -O /etc/yum.repos.d/hdp.repo 
- Confirm the HDP repository is configured. - yum repolist- You should see something like this. Verify that you have the HDP-2.6.0 directory: - Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.cat.pdx.edu * extras: linux.mirrors.es.net * updates: mirrors.usc.edu repo id repo namestatus HDP-2.6.0 Hortonworks Data Platform Version - HDP-2.6.0 
 
- Install the HDP 2.6.0 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.5 components: - yum install "hadoop" "hadoop-hdfs" "hadoop-libhdfs" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "hive-webhcat" "hive-hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hue" "hive" "tez" "storm" "falcon" "flume" "phoenix" "accumulo" "mahout" "knox" "spark" "slider" "hdp_mon_nagios_addons" ![[Note]](../common/images/admon/note.png) - Note - If you installed Apache Ranger, see Upgrade Ranger for more information on the upgrade path. 
- Verify that the components were upgraded. - yum list installed | grep HDP-<old.stack.version.number>- No component file names should appear in the returned list. 
RHEL/CentOS/Oracle 5 (Deprecated)
- On all hosts, clean the yum repository. - yum clean all
- Remove your old HDP 2.5 components. This command uninstalls the HDP 2.5 components. It leaves the user data, and metadata, but removes your configurations: - yum erase "hadoop*" "webhcat*" "oozie*" "collectd*" "gccxml*" "pig*" "hdfs*" "sqoop*" "zookeeper*" "hbase*" "hive*" "tez*" "storm*" "falcon*" "flume*" "phoenix*" "accumulo*" "mahout*" "hue" "hue-common" "hue-shell" "knox*" "spark*" "slider*" "hdp_mon_nagios_addons" 
- Validate that all HDP 2.5 component binaries are uninstalled: - yum list installed | grep @HDP2.5
- Remove your old hdp.repo file: - rm /etc/yum.repos.d/hdp.repo
- Install the HDP 2.6.0 repo: - Download the hdp.repo file: - wget -nv https://hdpweb.o.onslip.net/p/HDP/2.x/2.6.0.3/centos6/hdp.repo -O /etc/yum.repos.d/hdp.repo 
- Confirm the HDP repository is configured. - yum repolist- You should see something like this. Verify that you have the HDP-2.6.0 directory: - Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.cat.pdx.edu * extras: linux.mirrors.es.net * updates: mirrors.usc.edu repo id repo namestatus HDP-2.6.0 Hortonworks Data Platform Version - HDP-2.6.0 
 
- Install the HDP 2.6.0 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.5 components: - yum install "hadoop" "hadoop-hdfs" "hadoop-libhdfs" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hive" "hue" "tez" "storm" "falcon" "flume" "phoenix" "accumulo" "mahout" "knox" "spark" "slider*" "hdp_mon_nagios_addons" ![[Note]](../common/images/admon/note.png) - Note - If you installed Apache Ranger, see Upgrade Ranger for more information on the upgrade path. 
- Verify that the components were upgraded. - yum list installed | grep HDP-<old.stack.version.number>- No component file names should appear in the returned list. 
SLES 11 SP1
- On all hosts, clean the yum repository. - zypper clean -all
- Remove your old HDP 2.5 components. This command uninstalls the HDP 2.5 components. It leaves the user data, and metadata, but removes your configurations: - zypper rm "hadoop*" "webhcat*" "oozie*" "collectd*" "gccxml*" "pig*" "hdfs*" "sqoop*" "zookeeper*" "hbase*" "hive*" "tez*" "storm*" "falcon*" "flume*" "phoenix*" "accumulo*" "mahout*" "hue" "hue-common" "hue-shell" "knox*" "spark*" "slider*" "hdp_mon_nagios_addons" 
- Validate that all HDP 2.5 component binaries are uninstalled: - yum list installed | grep @HDP2.5
- Remove your old hdp.repo file: - rm /etc/zypp/repos.d/hdp.repo
- Download the HDP 2.6.0 hdp.repo file: - wget -nv https://hdpweb.o.onslip.net/p/HDP/2.x/2.6.0.3/suse11sp3/hdp.repo -O /etc/zypp/repos.d/hdp.repo 
- Install the HDP 2.6.0 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.5 components: - zypper install "hadoop" "hadoop-hdfs" "hadoop-libhdfs" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hive" "hue" "tez" "storm" "falcon" "flume" "phoenix" "accumulo" "mahout" "knox" "spark" "slider*" "hdp_mon_nagios_addons" - zypper install webhcat-tar-hive webhcat-tar-pig- zypper up -r HDP-2.6.0- zypper install oozie-client![[Note]](../common/images/admon/note.png) - Note - If you installed Apache Ranger, see Upgrade Ranger for more information on the upgrade path. 
- Verify that the components were upgraded. For example, to verify hdfs, hive, and hcatalog: - rpm -qa | grep hdfs, && rpm -qa | grep hive && rpm -qa | grep hcatalog- No component files names should appear in the returned list. 
SLES 11 SP3/SP4, SLES 12
- On all hosts, clean the zypper repository. - zypper clean -all
- Remove your old HDP 2.5 components. - zypper rm "hadoop*" "webhcat*" "hcatalog*" "oozie*" "collectd*" "gccxml*" "pig*" "hdfs*" "sqoop*" "zookeeper*" "hbase*" "hive*" "tez*" "storm*" "falcon*" "flume*" "phoenix*" "accumulo*" "mahout*" "hue" "hue-common" "hue-shell" "knox*" "ranger*" "spark*" "slider*" "hdp_mon_nagios_addons" 
- Validate that all HDP 2.5 component binaries are uninstalled: - zypper search --installed-only --repo HDP-2.5.0.0
- Remove your old hdp.repo file: - rm /etc/zypp/repos.d/hdp.repo
- Download the HDP 2.6.0 hdp.repo file: - https://hdpweb.o.onslip.net/p/HDP/2.x/2.6.0.3/suse11sp3/2.6.0.3/hdp.repo -O /etc/zypp/repos.d/hdp.repo
- Install the HDP 2.6.0 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.5 components: - zypper install "hadoop" "hadoop-hdfs" "hadoop-libhdfs" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hue" "hive" "tez" "storm" "falcon" "flume" "phoenix" "accumulo" "mahout" "knox" "spark" "spark-python" "hdp_mon_nagios_addons "slider*" "hive-webcat" "hive-hcatalog"" - zypper up -r HDP-2.6.0- zypper install oozie-clientt![[Note]](../common/images/admon/note.png) - Note - If you installed Apache Ranger, see Upgrade Ranger for more information on the upgrade path. 
- Verify that the components were upgraded. For example, to verify hdfs, hive, and hcatalog: - rpm -qa | grep hdfs, && rpm -qa | grep hive && rpm -qa | grep hcatalog- No component files names should appear in the returned list. 
Ubuntu 12
- On all hosts, clean the apt-get repository. - apt-get clean -&-all
- Remove your old HDP 2.5 components. This command uninstalls the HDP 2.5 components. It leaves the user data, and metadata, but removes your configurations: - apt-get remove "hadoop*" "webhcat*" "hcatalog*" "oozie*" "collectd*" "gccxml*" "pig*" "hdfs*" "sqoop*" "zookeeper*" "hbase*" "hive*" "tez.*" "storm*" "falcon*" "flume*" "phoenix*" "accumulo*" "mahout*" "hue.*" "knox*" "spark*" "slider*" "hdp_mon_nagios_addons" --purge 
- Validate that all HDP 2.5 component binaries are uninstalled: - yum list installed | grep @HDP2.5
- Remove your old hdp.repo file: - rm /etc/apt/sources.list.d/hdp.list
- Download the HDP 2.6.0 hdp.repo file: - wget https://hdpweb.o.onslip.net/p/HDP/2.x/2.6.0.3/ubuntu12/hdp.list - O /etc/apt/sources.list.d/hdp.list
- Run an update: - apt-get update
- Install the HDP 2.6.0 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.5 components: - apt-get install "hadoop" "hadoop-hdfs" "libhdfs0" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hive" "tez" "storm" "falcon" "flume" "phoenix" "accumulo" "mahout" "knox" "spark" "slider*" "hdp_mon_nagios_addons" ![[Note]](../common/images/admon/note.png) - Note - If you installed Apache Ranger, see Upgrade Ranger for more information on the upgrade path. 
Debian
- On all hosts, clean the apt-get repository. - apt-get clean -&-all
- Remove your old HDP 2.5 components. This command uninstalls the HDP 2.5 components. It leaves the user data, and metadata, but removes your configurations: - apt-get remove "hadoop*" "webhcat*" "hcatalog*" "oozie*" "collectd*" "gccxml*" "pig*" "hdfs*" "sqoop*" "zookeeper*" "hbase*" "hive*" "tez*" "storm*" "falcon*" "flume*" "phoenix*" "accumulo*" "mahout*" "hue*" "knox*" "spark*" "slider*" "hdp_mon_nagios_addons" 
- Validate that all HDP 2.5 component binaries are uninstalled: - yum list installed | grep @HDP2.5
- Remove your old hdp.repo file: - rm /etc/apt/sources.list.d/hdp.list
- Download the HDP 2.6.0 hdp.repo file: - wget -nv https://hdpweb.o.onslip.net/p/HDP/2.x/2.6.0.3/debian7/hdp.list - O /etc/apt/sources.list.d/hdp.list
- Run an update: - apt-get update
- Install the HDP 2.6.0 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.5 components: - apt-get install "hadoop" "hadoop-hdfs" "libhdfs0" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hive" "tez" "storm" "falcon" "flume" "phoenix" "accumulo" "mahout" "knox" "spark" "slider*" "hdp_mon_nagios_addons" ![[Note]](../common/images/admon/note.png) - Note - If you installed Apache Ranger, see Upgrade Ranger for more information on the upgrade path. 

