org.apache.hadoop.hive.metastore
Class MetaStoreSchemaInfo
java.lang.Object
org.apache.hadoop.hive.metastore.MetaStoreSchemaInfo
public class MetaStoreSchemaInfo
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaStoreSchemaInfo
public MetaStoreSchemaInfo(String hiveHome,
HiveConf hiveConf,
String dbType)
throws HiveMetaException
- Throws:
HiveMetaException
getUpgradeScripts
public List<String> getUpgradeScripts(String fromVersion)
throws HiveMetaException
- Get the list of sql scripts required to upgrade from the give version to current
- Parameters:
fromVersion
-
- Returns:
-
- Throws:
HiveMetaException
generateInitFileName
public String generateInitFileName(String toVersion)
throws HiveMetaException
- Get the name of the script to initialize the schema for given version
- Parameters:
toVersion
- Target version. If it's null, then the current server version is used
- Returns:
-
- Throws:
HiveMetaException
getMetaStoreScriptDir
public String getMetaStoreScriptDir()
- Find the directory of metastore scripts
- Returns:
getHiveSchemaVersion
public static String getHiveSchemaVersion()
Copyright © 2012 The Apache Software Foundation