List<Stage> stages = actionDB.getAllStages(rsr.getRequestId());
Assert.assertEquals(1, stages.size());
Stage stage = stages.iterator().next();
List<ExecutionCommandWrapper> execWrappers = stage.getExecutionCommands(host2);
Assert.assertEquals(1, execWrappers.size());
ExecutionCommandWrapper execWrapper = execWrappers.iterator().next();
Assert.assertTrue(execWrapper.getExecutionCommand().getCommandParams().containsKey("datanode"));
Assert.assertFalse(execWrapper.getExecutionCommand().getCommandParams().containsKey("namendode"));
// set the host components on host2 to UNKNOWN state to simulate a lost host
for (ServiceComponentHost sch : clusters.getCluster(clusterName).getServiceComponentHosts(host2)) {