public class MetaStoreSchemaInfo extends Object
| Constructor and Description |
|---|
MetaStoreSchemaInfo(String hiveHome,
HiveConf hiveConf,
String dbType) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateInitFileName(String toVersion)
Get the name of the script to initialize the schema for given version
|
static String |
getHiveSchemaVersion() |
String |
getMetaStoreScriptDir()
Find the directory of metastore scripts
|
static String |
getPreUpgradeScriptName(int index,
String upgradeScriptName) |
List<String> |
getUpgradeScripts(String fromVersion)
Get the list of sql scripts required to upgrade from the give version to current
|
public MetaStoreSchemaInfo(String hiveHome, HiveConf hiveConf, String dbType) throws HiveMetaException
HiveMetaExceptionpublic List<String> getUpgradeScripts(String fromVersion) throws HiveMetaException
fromVersion - HiveMetaExceptionpublic String generateInitFileName(String toVersion) throws HiveMetaException
toVersion - Target version. If it's null, then the current server version is usedHiveMetaExceptionpublic String getMetaStoreScriptDir()
public static String getPreUpgradeScriptName(int index, String upgradeScriptName)
public static String getHiveSchemaVersion()
Copyright © 2017 The Apache Software Foundation. All rights reserved.