List<String> componentsList = new ArrayList<>();
componentsList.addAll(components);
Map<String, Integer> stopRequests = ambariClient.stopComponentsOnHost(hostName, componentsList);
installRequests.putAll(stopRequests);
waitForAmbariOperations(stack, ambariClient, installRequests);
ambariClient.deleteHostComponents(hostName, componentsList);
ambariClient.deleteHost(hostName);
installRequests = new HashMap<>();
Integer zookeeperRequestId = ambariClient.restartServiceComponents("ZOOKEEPER", Arrays.asList("ZOOKEEPER_SERVER"));
installRequests.put("ZOOKEEPER", zookeeperRequestId);