Examples of decommissionNodeManager()


Examples of com.sequenceiq.ambari.client.AmbariClient.decommissionNodeManager()

                            LOGGER.info("Host '{}' will be removed from Ambari cluster", hostName);
                            metadataToRemove.add(hostMetadata);
                            Set<String> components = ambariClient.getHostComponentsMap(hostName).keySet();
                            Map<String, Integer> installRequests = new HashMap<>();
                            if (components.contains("NODEMANAGER")) {
                                Integer requestId = ambariClient.decommissionNodeManager(hostName);
                                installRequests.put("NODEMANAGER_DECOMMISION", requestId);
                            }
                            if (components.contains("DATANODE")) {
                                Integer requestId = ambariClient.decommissionDataNode(hostName);
                                installRequests.put("DATANODE_DECOMMISION", requestId);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.