public class UpgradeCatalog280 extends AbstractUpgradeCatalog
UpgradeCatalog280
upgrades Ambari from 2.7.2 to 2.8.0.AbstractUpgradeCatalog.ConfigUpdateType, AbstractUpgradeCatalog.VersionComparator
Modifier and Type | Field and Description |
---|---|
protected static String |
AMBARI_CONFIGURATION_PROPERTY_VALUE_COLUMN |
protected static String |
AMBARI_CONFIGURATION_TABLE |
protected static String |
HOST_COMPONENT_STATE_TABLE |
protected static String |
LAST_LIVE_STATE_COLUMN |
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 |
---|
UpgradeCatalog280(com.google.inject.Injector injector) |
Modifier and Type | Method and Description |
---|---|
protected void |
addColumnsToRequestScheduleTable() |
protected void |
addColumnsToUpgradeTable() |
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 |
removeLastValidState() |
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 HOST_COMPONENT_STATE_TABLE
protected static final String LAST_LIVE_STATE_COLUMN
protected static final String AMBARI_CONFIGURATION_TABLE
protected static final String AMBARI_CONFIGURATION_PROPERTY_VALUE_COLUMN
@Inject public UpgradeCatalog280(com.google.inject.Injector injector)
public String getSourceVersion()
UpgradeCatalog
getSourceVersion
in interface UpgradeCatalog
getSourceVersion
in class AbstractUpgradeCatalog
public String getTargetVersion()
UpgradeCatalog
protected void executeDDLUpdates() throws org.apache.ambari.server.AmbariException, SQLException
AbstractUpgradeCatalog
executeDDLUpdates
in class AbstractUpgradeCatalog
org.apache.ambari.server.AmbariException
SQLException
protected void executePreDMLUpdates() throws org.apache.ambari.server.AmbariException, SQLException
AbstractUpgradeCatalog
executePreDMLUpdates
in class AbstractUpgradeCatalog
org.apache.ambari.server.AmbariException
SQLException
protected void executeDMLUpdates() throws org.apache.ambari.server.AmbariException, SQLException
AbstractUpgradeCatalog
executeDMLUpdates
in class AbstractUpgradeCatalog
org.apache.ambari.server.AmbariException
SQLException
protected void addColumnsToRequestScheduleTable() throws SQLException
SQLException
protected void addColumnsToUpgradeTable() throws SQLException
SQLException
protected void removeLastValidState() throws SQLException
SQLException
Copyright © 2022 Apache Software Foundation. All rights reserved.