public class BlueprintConfigurationProcessor extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
BlueprintConfigurationProcessor.MultipleHostTopologyUpdater
Topology based updater which replaces original host names (possibly more than one) contained in a property
value with the host names which runs the associated component in the new cluster.
|
static interface |
BlueprintConfigurationProcessor.PropertyUpdater
Provides functionality to update a property value.
|
Modifier and Type | Field and Description |
---|---|
protected static Map<String,Map<String,BlueprintConfigurationProcessor.PropertyUpdater>> |
singleHostTopologyUpdaters
Single host topology updaters
|
static Map<String,Set<String>> |
TEMPORARY_PROPERTIES_FOR_CLUSTER_DEPLOYMENT
These properties are only required during deployment, and should be removed afterwards.
|
Constructor and Description |
---|
BlueprintConfigurationProcessor(ClusterTopology clusterTopology) |
Modifier and Type | Method and Description |
---|---|
void |
doNameNodeHAUpdate()
Perform export update processing for HA configuration for NameNodes.
|
void |
doOozieServerHAUpdate()
Perform export update processing for HA configuration for Oozie servers.
|
void |
doUpdateForBlueprintExport(BlueprintExportType exportType)
Update properties for blueprint export.
|
Set<String> |
doUpdateForClusterCreate()
Update properties for cluster creation.
|
void |
doYarnResourceManagerHAUpdate()
Perform export update processing for HA configuration for Yarn ResourceManagers.
|
Map<String,Map<String,BlueprintConfigurationProcessor.PropertyUpdater>> |
getRemovePropertyUpdaters() |
Set<String> |
getRequiredHostGroups() |
void |
initRemovePropertyUpdaters() |
protected void |
setStackToolsAndFeatures(Configuration configuration,
Set<String> configTypesUpdated)
Sets the read-only properties for stack features & tools, overriding
anything provided in the blueprint.
|
public static final Map<String,Set<String>> TEMPORARY_PROPERTIES_FOR_CLUSTER_DEPLOYMENT
protected static final Map<String,Map<String,BlueprintConfigurationProcessor.PropertyUpdater>> singleHostTopologyUpdaters
public BlueprintConfigurationProcessor(ClusterTopology clusterTopology)
public Map<String,Map<String,BlueprintConfigurationProcessor.PropertyUpdater>> getRemovePropertyUpdaters()
public void initRemovePropertyUpdaters()
public Set<String> doUpdateForClusterCreate() throws ConfigurationTopologyException
ConfigurationTopologyException
public void doUpdateForBlueprintExport(BlueprintExportType exportType)
public void doNameNodeHAUpdate()
public void doYarnResourceManagerHAUpdate()
public void doOozieServerHAUpdate()
protected void setStackToolsAndFeatures(Configuration configuration, Set<String> configTypesUpdated) throws ConfigurationTopologyException
configuration
- the configuration to update with values from the stack.configTypesUpdated
- the list of configuration types updated (cluster-env will be added
to this).ConfigurationTopologyException
Copyright © 2022 Apache Software Foundation. All rights reserved.