public class HiveSchemaHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HiveSchemaHelper.DerbyCommandParser |
static class |
HiveSchemaHelper.MSSQLCommandParser |
static class |
HiveSchemaHelper.MySqlCommandParser |
static interface |
HiveSchemaHelper.NestedScriptParser |
static class |
HiveSchemaHelper.OracleCommandParser |
static class |
HiveSchemaHelper.PostgresCommandParser |
| Modifier and Type | Field and Description |
|---|---|
static String |
DB_DERBY |
static String |
DB_MSSQL |
static String |
DB_MYSQL |
static String |
DB_ORACLE |
static String |
DB_POSTGRACE |
| Constructor and Description |
|---|
HiveSchemaHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Connection |
getConnectionToMetastore(String userName,
String password,
boolean printInfo,
HiveConf hiveConf)
Get JDBC connection to metastore db
|
static HiveSchemaHelper.NestedScriptParser |
getDbCommandParser(String dbName) |
static HiveSchemaHelper.NestedScriptParser |
getDbCommandParser(String dbName,
String dbOpts,
String msUsername,
String msPassword,
HiveConf hiveConf) |
static String |
getValidConfVar(HiveConf.ConfVars confVar,
HiveConf hiveConf) |
public static final String DB_DERBY
public static final String DB_MSSQL
public static final String DB_MYSQL
public static final String DB_POSTGRACE
public static final String DB_ORACLE
public static Connection getConnectionToMetastore(String userName, String password, boolean printInfo, HiveConf hiveConf) throws HiveMetaException
userName - metastore connection usernamepassword - metastore connection passwordprintInfo - print connection parametershiveConf - hive config objectMetaExceptionHiveMetaExceptionpublic static String getValidConfVar(HiveConf.ConfVars confVar, HiveConf hiveConf) throws IOException
IOExceptionpublic static HiveSchemaHelper.NestedScriptParser getDbCommandParser(String dbName)
Copyright © 2017 The Apache Software Foundation. All rights reserved.