Upgrade HDP 2.1 Components
The upgrade process to HDP-2.4.2 involves the following steps. See the HDP-2.4.2 Release Notes for repo information.
RHEL/CentOS/Oracle 6
On all hosts, clean the yum repository.
yum clean allRemove your old HDP 2.1 components. This command uninstalls the HDP 2.1 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*" "hdp_mon_nagios_addons"
Validate that all HDP 2.1 component binaries are uninstalled:
yum list installed | grep @HDP2.1Remove your old hdp.repo file:
rm /etc/yum.repos.d/hdp.repoInstall the HDP-2.4.2 repo:
Download the hdp.repo file:
wget -nv https://hdpweb.o.onslip.net/HDP/centos6/2.x/updates/2.4.2.0/hdp.repo -O /etc/yum.repos.d/hdp.repo
Confirm the HDP repository is configured.
yum repolistYou should see something like this. Verify that you have the HDP-2.4.2 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.4.2 Hortonworks Data Platform Version - HDP-2.4.2
Install the HDP-2.4.2 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.1 components:
![[Important]](../common/images/admon/important.png)
Important For Falcon, we recommend upgrading from HDP 2.1 to HDP 2.2 and then upgrading HDP 2.2 to HDP 2.4. See Configure and Validate Falcon for more information.
yum install "hadoop" "hadoop-hdfs" "hadoop-libhdfs" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "hive-webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hue" "hive" "tez" "storm" "flume" "phoenix" "accumulo" "mahout" "knox" "hdp_mon_nagios_addons"
![[Note]](../common/images/admon/note.png)
Note If you installed Apache Argus, it is now 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 allRemove your old HDP 2.1 components. This command uninstalls the HDP 2.1 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*" "hdp_mon_nagios_addons"
Validate that all HDP 2.1 component binaries are uninstalled:
yum list installed | grep @HDP2.1Remove your old hdp.repo file:
rm /etc/yum.repos.d/hdp.repoInstall the HDP-2.4.2 repo:
Download the hdp.repo file:
wget -nv https://hdpweb.o.onslip.net/HDP/centos5/2.x/updates/2.4.2.0/hdp.repo -O /etc/yum.repos.d/hdp.repo
Confirm the HDP repository is configured.
yum repolistYou should see something like this. Verify that you have the HDP-2.4.2 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.4.2 Hortonworks Data Platform Version - HDP-2.4.2
Install the HDP-2.4.2 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.1 components:
![[Important]](../common/images/admon/important.png)
Important For Falcon, we recommend upgrading from HDP 2.1 to HDP 2.2 and then upgrading HDP 2.2 to HDP 2.4. See Configure and Validate Falcon for more information.
yum install "hadoop" "hadoop-hdfs" "hadoop-libhdfs" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "hive-webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hive" "hue" "tez" "storm" "flume" "phoenix" "accumulo" "mahout" "knox" "hdp_mon_nagios_addons"
![[Note]](../common/images/admon/note.png)
Note If you installed Apache Argus, it is now 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 SP 1
On all hosts, clean the yum repository.
zypper clean -allRemove your old HDP 2.1 components. This command uninstalls the HDP 2.1 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*" "hdp_mon_nagios_addons"
Validate that all HDP 2.1 component binaries are uninstalled:
yum list installed | grep @HDP2.1Remove your old hdp.repo file:
rm /etc/zypp/repos.d/hdp.repoDownload the HDP-2.4.2 hdp.repo file:
wget -nv https://hdpweb.o.onslip.net/HDP/sles11sp1/2.x/updates/2.4.2.0/hdp.repo -O /etc/zypp/repos.d/hdp.repo
Install the HDP-2.4.2 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.1 components:
![[Important]](../common/images/admon/important.png)
Important For Falcon, we recommend upgrading from HDP 2.1 to HDP 2.2 and then upgrading HDP 2.2 to HDP 2.4. See Configure and Validate Falcon for more information.
zypper install "hadoop" "hadoop-hdfs" "hadoop-libhdfs" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "hive-webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hive" "hue" "tez" "storm" "flume" "phoenix" "accumulo" "mahout" "knox" "hdp_mon_nagios_addons"
zypper install webhcat-tar-hive webhcat-tar-pigzypper up -r HDP-2.3zypper install oozie-client![[Note]](../common/images/admon/note.png)
Note If you installed Apache Argus, it is now 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 hcatlog:
rpm -qa | grep hdfs, && rpm -qa | grep hive && rpm -qa | grep hcatalogNo component files names should appear in the returned list.
SLES 11 SP3/SP4
On all hosts, clean the yum repository.
zypper clean -allRemove your old HDP 2.1 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*" "hdp_mon_nagios_addons"
Validate that all HDP 2.1 component binaries are uninstalled:
zypper search -i | grep @HDP2.1Remove your old hdp.repo file:
rm /etc/zypp/repos.d/hdp.listDownload the HDP-2.4.2 hdp.repo file:
wget https://hdpweb.o.onslip.net/HDP/suse11sp3/2.x/updates/2.4.2.0/hdp.repo -O /etc/zypp/repos.d/hdp.repoInstall the HDP-2.4.2 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.1 components:
![[Important]](../common/images/admon/important.png)
Important For Falcon, we recommend upgrading from HDP 2.1 to HDP 2.2 and then upgrading HDP 2.2 to HDP 2.4. See Configure and Validate Falcon for more information.
zypper install "hadoop" "hadoop-hdfs" "hadoop-libhdfs" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "hive-webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hue" "hive" "tez" "storm" "flume" "phoenix" "accumulo" "mahout" "knox" "hdp_mon_nagios_addons"
zypper install webhcat-tar-hive webhcat-tar-pigzypper up -r HDP-2.3zypper install oozie-client![[Note]](../common/images/admon/note.png)
Note If you installed Apache Argus, it is now 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 hcatalogNo component files names should appear in the returned list.
Ubuntu 12
On all hosts, clean the apt-get repository.
apt-get clean -&-allRemove your old HDP 2.1 components. This command uninstalls the HDP 2.1 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*" "hdp_mon_nagios_addons" --purge
Validate that all HDP 2.1 component binaries are uninstalled:
yum list installed | grep @HDP2.1Remove your old hdp.repo file:
rm /etc/apt/sources.list.d/hdp.listDownload the HDP-2.4.2 hdp.repo file:
wget https://hdpweb.o.onslip.net/HDP/ubuntu12/2.x/updates/2.4.2.0/hdp.list - O /etc/apt/sources.list.d/hdp.listRun an update:
apt-get updateInstall the HDP-2.4.2 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.1 components:
![[Important]](../common/images/admon/important.png)
Important For Falcon, we recommend upgrading from HDP 2.1 to HDP 2.2 and then upgrading HDP 2.2 to HDP 2.4. See Configure and Validate Falcon for more information.
apt-get install "hadoop" "hadoop-hdfs" "libhdfs0" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "hive-webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hive" "tez" "storm" "flume" "phoenix" "accumulo" "mahout" "knox" "hdp_mon_nagios_addons"
![[Note]](../common/images/admon/note.png)
Note If you installed Apache Argus, it is now Apache Ranger. See Upgrade Ranger for more information on the upgrade path.
Debian 6 (Deprecated)
HDP support for Debian 6 is deprecated with HDP 2.4.2. Future versions of HDP will no longer be supported on Debian 6.
On all hosts, clean the apt-get repository.
apt-get clean -&-allRemove your old HDP 2.1 components. This command uninstalls the HDP 2.1 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*" "hdp_mon_nagios_addons"
Validate that all HDP 2.1 component binaries are uninstalled:
yum list installed | grep @HDP2.1Remove your old hdp.repo file:
rm /etc/apt/sources.list.d/hdp.listDownload the HDP-2.4.2 hdp.repo file:
wget -nv https://hdpweb.o.onslip.net/HDP/debian6/2.x/updates/2.4.2.0/hdp.list - O /etc/apt/sources.list.d/hdp.listRun an update:
apt-get updateInstall the HDP-2.4.2 versions of the components that you want to upgrade. For example, if you installed and want to upgrade all HDP 2.1 components:
![[Important]](../common/images/admon/important.png)
Important For Falcon, we recommend upgrading from HDP 2.1 to HDP 2.2 and then upgrading HDP 2.2 to HDP 2.4. See Configure and Validate Falcon for more information.
apt-get install "hadoop" "hadoop-hdfs" "libhdfs0" "hadoop-yarn" "hadoop-mapreduce" "hadoop-client" "openssl" "hive-webhcat" "hcatalog" "oozie" "collectd" "gccxml" "pig" "sqoop" "zookeeper" "hbase" "hive" "tez" "storm" "flume" "phoenix" "accumulo" "mahout" "knox" "hdp_mon_nagios_addons"
![[Note]](../common/images/admon/note.png)
Note If you installed Apache Argus, it is now Apache Ranger. See Upgrade Ranger for more information on the upgrade path.
Install the Compression Libraries. See Install Compression Libraries.

