public class UpgradeCatalog251 extends AbstractUpgradeCatalog
UpgradeCatalog251
upgrades Ambari from 2.5.0 to 2.5.1.AbstractUpgradeCatalog.ConfigUpdateType, AbstractUpgradeCatalog.VersionComparator
Modifier and Type | Field and Description |
---|---|
protected static String |
KAFKA_BROKER_CONFIG |
protected static String |
STORM_ENV_CONFIG |
ALERT_URL_PROPERTY_CONNECTION_TIMEOUT, ambariManagementController, ambariSequencesTable, ambariUpgradeConfigUpdatesFileName, AUTHENTICATED_USER_NAME, configuration, CONFIGURATION_TYPE_RANGER_HBASE_PLUGIN_PROPERTIES, CONFIGURATION_TYPE_RANGER_HIVE_PLUGIN_PROPERTIES, CONFIGURATION_TYPE_RANGER_KNOX_PLUGIN_PROPERTIES, dbAccessor, injector, PROPERTY_RANGER_HBASE_PLUGIN_ENABLED, PROPERTY_RANGER_HIVE_PLUGIN_ENABLED, PROPERTY_RANGER_KNOX_PLUGIN_ENABLED, QUEUES, YARN_SCHEDULER_CAPACITY_ROOT_QUEUE, YARN_SCHEDULER_CAPACITY_ROOT_QUEUES
Constructor and Description |
---|
UpgradeCatalog251(com.google.inject.Injector injector)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
executeDDLUpdates()
Perform database schema transformation.
|
protected void |
executeDMLUpdates()
Performs normal data upgrade
|
protected void |
executePreDMLUpdates()
Perform data insertion before running normal upgrade of data, requires started persist service
|
String |
getSourceVersion()
Return latest source version that can be upgraded from.
|
String |
getTargetVersion()
Return the version that will be upgraded to
|
protected void |
updateKAFKAConfigs()
Ensure that the updates from Ambari 2.4.0 are applied in the event the initial version is
Ambari 2.5.0, since this Kafka change failed to make it into Ambari 2.5.0.
|
protected void |
updateSTORMConfigs()
Make sure storm-env changes are applied to anyone upgrading to HDP-2.6.1 Storm
If the base version was before Ambari 2.5.0, this method should wind up doing nothing.
|
addAuthorizationToRole, addAuthorizationToRole, addAuthorizationToRole, addConnectionTimeoutParamForWebAndMetricAlerts, addNewConfigurationsFromXml, addRoleAuthorization, addSequence, addSequences, changePostgresSearchPath, convertStringToDocument, executeInTransaction, fetchMaxId, getCapacitySchedulerLeafQueues, getCheckedClusterMap, getEntityManagerProvider, getKerberosDescriptor, getUpgradeCatalog, getUpgradeJsonOutput, isConfigEnabled, isFinal, isNNHAEnabled, isQueueNameValid, onPostUpgrade, preUpgradeData, registerCatalog, removeConfigurationPropertiesFromCluster, setConfigUpdatesFileName, toString, updateConfigurationProperties, updateConfigurationPropertiesForCluster, updateConfigurationPropertiesForCluster, updateConfigurationPropertiesWithValuesFromXml, updateConfigurationPropertiesWithValuesFromXml, updateDatabaseSchemaVersion, updateKerberosDescriptorArtifact, updateKerberosDescriptorArtifacts, updateKerberosDescriptorIdentityReferences, updateKerberosDescriptorIdentityReferences, updateMetaInfoVersion, updateQueueName, updateWidgetDefinitionsForService, upgradeData, upgradeSchema
protected static final String KAFKA_BROKER_CONFIG
protected static final String STORM_ENV_CONFIG
@Inject public UpgradeCatalog251(com.google.inject.Injector injector)
injector
- public String getSourceVersion()
getSourceVersion
in interface UpgradeCatalog
getSourceVersion
in class AbstractUpgradeCatalog
public String getTargetVersion()
protected void executeDDLUpdates() throws org.apache.ambari.server.AmbariException, SQLException
executeDDLUpdates
in class AbstractUpgradeCatalog
org.apache.ambari.server.AmbariException
SQLException
protected void executePreDMLUpdates() throws org.apache.ambari.server.AmbariException, SQLException
executePreDMLUpdates
in class AbstractUpgradeCatalog
org.apache.ambari.server.AmbariException
SQLException
protected void executeDMLUpdates() throws org.apache.ambari.server.AmbariException, SQLException
executeDMLUpdates
in class AbstractUpgradeCatalog
org.apache.ambari.server.AmbariException
SQLException
protected void updateKAFKAConfigs() throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
protected void updateSTORMConfigs() throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
Copyright © 2022 Apache Software Foundation. All rights reserved.