When making changes that impact a single cluster, such as changing an alias or restoring from an earlier cluster topology descriptor file, you only redeploy the effected cluster.
To redeploy a specific cluster:
Verify the timestamp on the currently deployed Cluster Topology WAR files.
cd $gateway_home dir data\deployments Directory of C:\hdp\knox-0.4.0.2.1.1.0-1557\data\deployments 04/17/2014 05:30 PM <DIR> . 04/17/2014 05:30 PM <DIR> .. 04/17/2014 05:30 PM <DIR> cluster.war.145514f4dc8 04/17/2014 05:30 PM <DIR> myCluster.war.145514f4dc8 04/11/2014 08:35 AM <DIR> sandbox.war.145514f4dc8 0 File(s) 0 bytes 5 Dir(s) 9,730,977,792 bytes freeRedeploy a specific cluster.
cd $gateway_home bin\knoxcli.cmd redeploy --cluster myCluster
-
where
$cluster_nameis the name of the cluster topology descriptor (without the XML extension). For example,myCluster.Verify that the cluster was deployed.
cd $gateway_home dir data\deployments Directory of C:\hdp\knox-0.4.0.2.1.1.0-1557\data\deployments 04/17/2014 05:30 PM <DIR> . 04/17/2014 05:30 PM <DIR> .. 04/17/2014 05:30 PM <DIR> cluster.war.145514f4dc8 04/17/2014 05:30 PM <DIR> myCluster.war.145514f4dc8 04/17/2014 05:34 PM <DIR> myCluster.war.1457241b5dc 04/11/2014 08:35 AM <DIR> sandbox.war.145514f4dc8 0 File(s) 0 bytes 5 Dir(s) 9,730,977,792 bytes freeA new file with the current timestamp is created.

