For HDP 2.2, the default paths for Apache Knox change. Upgrade Knox in order to update these paths.
Review your topologies. If you prefer to use the new topologies, copy the topology templates to the active topologies directory:
cp /usr/hdp/current/knox/templates/topology.xml /usr/hdp/current/knox/conf/topologies/{clustername}.xml
Modify the topology to match the cluster resources in your deployment.
Create the Master Secret:
su - knox -c “/usr/hdp/current/knox/bin/knoxcli.sh create-master”
Start the Gateway:
su -l knox -c "/usr/hdp/current/knox-server/bin/gateway.sh start"
Check /var/log/knox/gateway.log for errors or successful start.