public final class TxnDbUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
cleanDb() |
static int |
countLockComponents(long lockId)
A tool to count the number of partitions, tables,
and databases locked by a particular lockId.
|
static int |
countQueryAgent(String countQuery)
Utility method used to run COUNT queries like "select count(*) from ..." against metastore tables
|
static void |
prepDb() |
static String |
queryToString(String query) |
static String |
queryToString(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(long lockId) throws Exception
lockId
- lock id to look for lock componentsException
public static int countQueryAgent(String countQuery) throws Exception
countQuery
- countQuery textException
Copyright © 2016 The Apache Software Foundation. All rights reserved.