Downgrade the Knox Gateway to the Previous Version
If the Knox Gateway upgrade was unsuccessful, you need to downgrade Knox to the previous version to ensure you have a working Knox Gateway for your cluster. To downgrade Knox, follow the steps listed below.
For each server running Knox, stop the server.
su -l knox /usr/hdp/{current HDP server version}/knox/bin/gateway.sh stop
Select the HDP server version you want to use to downgrade your Knox Gateway.
hdp-select set knox-server {previous HDP server version}
Restart the server.
su -l knox /usr/hdp/{previous HDP server version}/knox/bin/gateway.sh start