public interface ClusterTopology
| Modifier and Type | Method and Description |
|---|---|
void |
addHostToTopology(String hostGroupName,
String host)
Add a new host to the topology.
|
Map<String,AdvisedConfiguration> |
getAdvisedConfigurations() |
Set<String> |
getAllHosts() |
AmbariContext |
getAmbariContext() |
Blueprint |
getBlueprint()
Get the blueprint associated with the cluster.
|
Long |
getClusterId()
Get the id of the cluster.
|
ConfigRecommendationStrategy |
getConfigRecommendationStrategy() |
Configuration |
getConfiguration()
Get the cluster scoped configuration for the cluster.
|
String |
getDefaultPassword() |
Collection<String> |
getHostAssignmentsForComponent(String component)
Get all hosts which are mapped to a host group which contains the specified component.
|
String |
getHostGroupForHost(String hostname)
Get the name of the host group which is mapped to the specified host.
|
Map<String,HostGroupInfo> |
getHostGroupInfo()
Get host group information.
|
Collection<String> |
getHostGroupsForComponent(String component)
Get the names of all of host groups which contain the specified component.
|
ProvisionAction |
getProvisionAction() |
boolean |
hasHadoopCompatibleService() |
RequestStatusResponse |
installHost(String hostName,
boolean skipInstallTaskCreate,
boolean skipFailure)
Install the specified host.
|
boolean |
isClusterKerberosEnabled()
Determine if the cluster is kerberos enabled.
|
boolean |
isNameNodeHAEnabled()
Determine if NameNode HA is enabled.
|
boolean |
isYarnResourceManagerHAEnabled()
Determine if Yarn ResourceManager HA is enabled.
|
void |
removeHost(String hostname)
Removes host from stateful ClusterTopology
|
void |
setClusterId(Long clusterId)
Set the id of the cluster.
|
void |
setConfigRecommendationStrategy(ConfigRecommendationStrategy strategy) |
void |
setProvisionAction(ProvisionAction provisionAction)
Set request provision action : INSTALL vs INSTALL_AND_START
|
RequestStatusResponse |
startHost(String hostName,
boolean skipFailure)
Start the specified host.
|
void |
update(TopologyRequest topologyRequest)
Update the existing topology based on the provided topology request.
|
Long getClusterId()
void setClusterId(Long clusterId)
clusterId - cluster idBlueprint getBlueprint()
Configuration getConfiguration()
Map<String,HostGroupInfo> getHostGroupInfo()
Collection<String> getHostGroupsForComponent(String component)
component - component nameString getHostGroupForHost(String hostname)
hostname - host nameCollection<String> getHostAssignmentsForComponent(String component)
component - component namevoid update(TopologyRequest topologyRequest) throws InvalidTopologyException
topologyRequest - request modifying the topologyInvalidTopologyException - if the request specified invalid topology information or if
making the requested changes would result in an invalid topologyvoid addHostToTopology(String hostGroupName, String host) throws InvalidTopologyException, NoSuchHostGroupException
hostGroupName - name of associated host grouphost - name of hostInvalidTopologyException - if the host being added is already registered to a different host groupNoSuchHostGroupException - if the specified host group is invalidboolean isNameNodeHAEnabled()
boolean isYarnResourceManagerHAEnabled()
boolean isClusterKerberosEnabled()
RequestStatusResponse installHost(String hostName, boolean skipInstallTaskCreate, boolean skipFailure)
hostName - host nameskipInstallTaskCreate - RequestStatusResponse startHost(String hostName, boolean skipFailure)
hostName - host namevoid setConfigRecommendationStrategy(ConfigRecommendationStrategy strategy)
ConfigRecommendationStrategy getConfigRecommendationStrategy()
void setProvisionAction(ProvisionAction provisionAction)
provisionAction - @ProvisionActionProvisionAction getProvisionAction()
Map<String,AdvisedConfiguration> getAdvisedConfigurations()
AmbariContext getAmbariContext()
void removeHost(String hostname)
hostname - String getDefaultPassword()
boolean hasHadoopCompatibleService()
Copyright © 2022 Apache Software Foundation. All rights reserved.