4. Downgrade Knox

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.

  1. Shut down all Knox servers:

    su -l knox "/usr/hdp/ stop"

  2. Revert any changes to the data that were made after the upgrade process started, or restore the earlier version of your data from backup.

  3. Switch to the previous Knox software version, and then start the server:

    hdp-select set knox-server

    su -l knox "/usr/hdp/ start"

  4. Validate the installation:

    1. Check /var/log/knox/gateway.log for errors or successful start.

    2. Validate cluster access through a WebHDFS API such as LISTSTATUS:

      curl -ivk -u {user}:{password}


    3. 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}


Continue with the next downgrade step.

loading table of contents...