On all nodes, clean the yum repository.
For RHEL/CentOS:
yum clean all
For SLES:
zypper clean -a
Upgrade Hadoop
For RHEL/CentOS/Oracle Linux:
yum upgrade hadoop*
For SLES:
zypper up hadoop* hadoop-hdfs hadoop-lzo hadoop-mapreduce hadoop-yarn
Verify HDP 2.1 packages have installed successfully.
For RHEL/CentOS/Oracle Linux:
yum list hadoop*|grep HDP-2
For SLES:
zypper pa|grep HDP-2
Verify that you have HDP 2.1 installed:
hadoop version
You may need to add
/etc/hadoop/conf/hadoop-env.sh
in/usr/bin/hadoop
for $JAVA_HOME.