public final class TxnDbUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
cleanDb(HiveConf conf) |
static int |
countLockComponents(HiveConf conf,
long lockId)
A tool to count the number of partitions, tables,
and databases locked by a particular lockId.
|
static int |
countQueryAgent(HiveConf conf,
String countQuery)
Utility method used to run COUNT queries like "select count(*) from ..." against metastore tables
|
static void |
prepDb(HiveConf conf) |
static String |
queryToString(HiveConf conf,
String query) |
static String |
queryToString(HiveConf conf,
String query,
boolean includeHeader) |
static void |
setConfValues(HiveConf conf)
Set up the configuration so it will use the DbTxnManager, concurrency will be set to true,
and the JDBC configs will be set for putting the transaction and lock info in the embedded
metastore.
|
public static void setConfValues(HiveConf conf)
conf
- HiveConf to add these values topublic static int countLockComponents(HiveConf conf, long lockId) throws Exception
lockId
- lock id to look for lock componentsException
public static int countQueryAgent(HiveConf conf, String countQuery) throws Exception
countQuery
- countQuery textException
public static String queryToString(HiveConf conf, String query) throws Exception
Exception
Copyright © 2021 The Apache Software Foundation. All rights reserved.