Package | Description |
---|---|
org.apache.hadoop.hive.metastore | |
org.apache.hadoop.hive.metastore.hooks | |
org.apache.hadoop.hive.metastore.tools | |
org.apache.hive.beeline |
Modifier and Type | Method and Description |
---|---|
String |
IMetaStoreSchemaInfo.generateInitFileName(String toVersion)
Get the name of the script to initialize the schema for given version
|
String |
MetaStoreSchemaInfo.generateInitFileName(String toVersion)
Get the name of the script to initialize the schema for given version
|
String |
IMetaStoreSchemaInfo.getCreateUserScript()
Get SQL script that will create the user and database for Metastore to use.
|
String |
MetaStoreSchemaInfo.getCreateUserScript() |
String |
IMetaStoreSchemaInfo.getMetaStoreSchemaVersion(HiveSchemaHelper.MetaStoreConnectionInfo metastoreDbConnectionInfo)
Get the schema version from the backend database.
|
String |
MetaStoreSchemaInfo.getMetaStoreSchemaVersion(HiveSchemaHelper.MetaStoreConnectionInfo connectionInfo) |
List<String> |
IMetaStoreSchemaInfo.getUpgradeScripts(String fromVersion)
Get the list of sql scripts required to upgrade from the give version to current.
|
List<String> |
MetaStoreSchemaInfo.getUpgradeScripts(String fromVersion)
Get the list of sql scripts required to upgrade from the give version to current
|
Constructor and Description |
---|
MetaStoreSchemaInfo(String metastoreHome,
String dbType) |
Modifier and Type | Method and Description |
---|---|
List<URI> |
URIResolverHook.resolveURI(URI uri)
Resolve to a proper thrift uri, or a list of uris, given uri of another scheme.
|
Modifier and Type | Method and Description |
---|---|
static Connection |
HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.MetaStoreConnectionInfo info,
String schema) |
static Connection |
HiveSchemaHelper.getConnectionToMetastore(String userName,
String password,
String url,
String driver,
boolean printInfo,
org.apache.hadoop.conf.Configuration conf,
String schema)
Get JDBC connection to metastore db
|
Modifier and Type | Method and Description |
---|---|
void |
HiveSchemaTool.doInit()
Initialize the metastore schema to current version
|
void |
HiveSchemaTool.doInit(String toVersion)
Initialize the metastore schema
|
void |
HiveSchemaTool.doUpgrade()
Perform metastore schema upgrade.
|
void |
HiveSchemaTool.doUpgrade(String fromSchemaVer)
Perform metastore schema upgrade
|
void |
HiveSchemaTool.doValidate() |
void |
HiveSchemaTool.showInfo()
Print Hive version and schema version
|
void |
HiveSchemaTool.verifySchemaVersion()
check if the current schema version in metastore matches the Hive version
|
Constructor and Description |
---|
HiveSchemaTool(String hiveHome,
HiveConf hiveConf,
String dbType,
String metaDbType) |
HiveSchemaTool(String dbType,
String metaDbType) |
Copyright © 2022 The Apache Software Foundation. All rights reserved.