public class OperationLog extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OperationLog.LoggingLevel |
Constructor and Description |
---|
OperationLog(String name,
File file,
HiveConf hiveConf) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this OperationLog when operation is closed.
|
static OperationLog |
getCurrentOperationLog() |
static OperationLog.LoggingLevel |
getLoggingLevel(String mode) |
OperationLog.LoggingLevel |
getOpLoggingLevel() |
List<String> |
readOperationLog(boolean isFetchFirst,
long maxRows)
Read operation execution logs from log file
|
static void |
removeCurrentOperationLog() |
static void |
setCurrentOperationLog(OperationLog operationLog) |
void |
writeOperationLog(String operationLogMessage)
Write operation execution logs into log file
|
public OperationLog(String name, File file, HiveConf hiveConf) throws FileNotFoundException
FileNotFoundException
public static OperationLog.LoggingLevel getLoggingLevel(String mode)
public OperationLog.LoggingLevel getOpLoggingLevel()
public static void setCurrentOperationLog(OperationLog operationLog)
public static OperationLog getCurrentOperationLog()
public static void removeCurrentOperationLog()
public void writeOperationLog(String operationLogMessage)
operationLogMessage
- one line of log emitted from log4jpublic List<String> readOperationLog(boolean isFetchFirst, long maxRows) throws SQLException
isFetchFirst
- true if the Enum FetchOrientation value is Fetch_FirstmaxRows
- the max number of fetched lines from logSQLException
public void close()
Copyright © 2017 The Apache Software Foundation. All rights reserved.