public final class DriverUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkConcurrency(DriverContext driverContext) |
static void |
checkInterrupted(DriverState driverState,
DriverContext driverContext,
String msg,
HookContext hookContext,
PerfLogger perfLogger) |
static CommandProcessorException |
createProcessorException(DriverContext driverContext,
int ret,
String errorMessage,
String sqlState,
Throwable downstreamError) |
static String |
getUserFromUGI(DriverContext driverContext) |
static void |
handleHiveException(DriverContext driverContext,
HiveException e,
int ret,
String rootMsg) |
static void |
invokeFailureHooks(DriverContext driverContext,
PerfLogger perfLogger,
HookContext hookContext,
String errorMessage,
Throwable exception) |
static void |
runOnDriver(HiveConf conf,
SessionState sessionState,
String query) |
static void |
runOnDriver(HiveConf conf,
SessionState sessionState,
String query,
long analyzeTableWriteId)
For Statistics gathering after compaction.
|
static void |
runOnDriver(HiveConf conf,
SessionState sessionState,
String query,
ValidWriteIdList writeIds,
long compactorTxnId)
For Query Based compaction to run the query to generate the compacted data.
|
static SessionState |
setUpSessionState(HiveConf conf,
String user,
boolean doStart) |
public static void runOnDriver(HiveConf conf, SessionState sessionState, String query) throws HiveException
HiveExceptionpublic static void runOnDriver(HiveConf conf, SessionState sessionState, String query, ValidWriteIdList writeIds, long compactorTxnId) throws HiveException
HiveExceptionpublic static void runOnDriver(HiveConf conf, SessionState sessionState, String query, long analyzeTableWriteId) throws HiveException
HiveExceptionpublic static SessionState setUpSessionState(HiveConf conf, String user, boolean doStart)
public static void checkInterrupted(DriverState driverState, DriverContext driverContext, String msg, HookContext hookContext, PerfLogger perfLogger) throws CommandProcessorException
CommandProcessorExceptionpublic static void invokeFailureHooks(DriverContext driverContext, PerfLogger perfLogger, HookContext hookContext, String errorMessage, Throwable exception) throws Exception
Exceptionpublic static void handleHiveException(DriverContext driverContext, HiveException e, int ret, String rootMsg) throws CommandProcessorException
CommandProcessorExceptionpublic static CommandProcessorException createProcessorException(DriverContext driverContext, int ret, String errorMessage, String sqlState, Throwable downstreamError)
public static boolean checkConcurrency(DriverContext driverContext)
public static String getUserFromUGI(DriverContext driverContext) throws CommandProcessorException
CommandProcessorExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.