At this stage, the following components have been upgraded and need to be downgraded:
Knox
Non-core cluster components: Falcon, Oozie, Hive
Core slave nodes: DataNodes, NodeManager, RegionServer
Core masters: HDFS, YARN, HBase
Ranger
Zookeeper
There is service disruption when downgrading Knox. Downgrading Knox requires bringing Knox down completely, downgrading, and starting up again.
Shut down all Knox servers:
su -l knox "/usr/hdp/2.2.8.0-3150/knox/bin/gateway.sh stop"
Revert any changes to the data that were made after the upgrade process started, or restore the earlier version of your data from backup.
Switch to the previous Knox software version, and then start the server:
hdp-select set knox-server 2.2.0.0-2041
su -l knox "/usr/hdp/2.2.0.0-2041/knox/bin/gateway.sh start"
Validate the installation:
Check
/var/log/knox/gateway.log
for errors or successful start.Validate cluster access through a WebHDFS API such as
LISTSTATUS
:curl -ivk -u {user}:{password}
https://{knox-host}:8443/gateway/webhdfs/v1/tmp?op=LISTSTATUS
If the Knox admin service is deployed to the gateway instance, the version API should indicate the previous version of the Knox binaries:
curl -ivk -u {adminuser}:{adminpassword}
https://{knox-host}:8443/gateway/admin/v1/version
Continue with the next downgrade step.