public interface UpgradeCatalog
Modifier and Type | Method and Description |
---|---|
String |
getSourceVersion()
Return latest source version that can be upgraded from.
|
String |
getTargetVersion()
Return the version that will be upgraded to
|
Map<String,String> |
getUpgradeJsonOutput() |
boolean |
isFinal()
Defines if Upgrade Catalog should be executed last
|
void |
onPostUpgrade()
Called after
upgradeSchema() and upgradeData() , this
method is used to perform any operations after the catalog has finished. |
void |
preUpgradeData()
perform data insertion before running normal upgrade of data, requires started persist service
|
void |
setConfigUpdatesFileName(String ambariUpgradeConfigUpdatesFileName)
Set the file name, to store all config changes during upgrade
|
void |
updateDatabaseSchemaVersion()
Update schema version in the database to the Target one
|
void |
upgradeData()
perform data updates as necessary, requires started persist service
|
void |
upgradeSchema()
Run the upgrade scripts for upgrading ambari server from current version
to the new version.
|
void upgradeSchema() throws org.apache.ambari.server.AmbariException, SQLException
org.apache.ambari.server.AmbariException
SQLException
void preUpgradeData() throws org.apache.ambari.server.AmbariException, SQLException
org.apache.ambari.server.AmbariException
SQLException
void upgradeData() throws org.apache.ambari.server.AmbariException, SQLException
org.apache.ambari.server.AmbariException
SQLException
void setConfigUpdatesFileName(String ambariUpgradeConfigUpdatesFileName)
ambariUpgradeConfigUpdatesFileName
- boolean isFinal()
void onPostUpgrade() throws org.apache.ambari.server.AmbariException, SQLException
upgradeSchema()
and upgradeData()
, this
method is used to perform any operations after the catalog has finished.
Usually, this is cleanup work that does not directly affect the upgrade.org.apache.ambari.server.AmbariException
SQLException
String getTargetVersion()
String getSourceVersion()
void updateDatabaseSchemaVersion()
Copyright © 2022 Apache Software Foundation. All rights reserved.