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 |
findNumCurrentLocks() |
static void |
prepDb() |
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
Copyright © 2017 The Apache Software Foundation. All rights reserved.