|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.history.HiveHistory
public class HiveHistory
Nested Class Summary | |
---|---|
static class |
HiveHistory.Info
|
static class |
HiveHistory.Keys
|
static interface |
HiveHistory.Listener
Listner interface Parser will call handle function for each record type |
static class |
HiveHistory.QueryInfo
|
static class |
HiveHistory.RecordTypes
|
static class |
HiveHistory.SessionInfo
|
static class |
HiveHistory.TaskInfo
|
Constructor Summary | |
---|---|
HiveHistory(SessionState ss)
Construct HiveHistory object an open history log file. |
Method Summary | |
---|---|
void |
endQuery(String queryId)
Called at the end of Job. |
void |
endTask(String queryId,
Task<? extends Serializable> task)
Called at the end of a task. |
String |
getHistFileName()
|
static void |
parseHiveHistory(String path,
HiveHistory.Listener l)
Parses history file and calls call back functions |
void |
printRowCount(String queryId)
|
void |
progressTask(String queryId,
Task<? extends Serializable> task)
Called at the end of a task. |
void |
setIdToTableMap(Map<String,String> map)
Set the table to id map |
void |
setQueryProperty(String queryId,
HiveHistory.Keys propName,
String propValue)
Used to set job status and other attributes of a job |
void |
setTaskCounters(String queryId,
String taskId,
org.apache.hadoop.mapred.RunningJob rj)
Serialize the task counters and set as a task property. |
void |
setTaskProperty(String queryId,
String taskId,
HiveHistory.Keys propName,
String propValue)
Used to set task properties. |
void |
startQuery(String cmd,
String id)
Called at the start of job Driver.run() |
void |
startTask(String queryId,
Task<? extends Serializable> task,
String taskName)
Called at the start of a task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HiveHistory(SessionState ss)
ss
- Method Detail |
---|
public static void parseHiveHistory(String path, HiveHistory.Listener l) throws IOException
path
- l
-
IOException
public String getHistFileName()
public void startQuery(String cmd, String id)
public void setQueryProperty(String queryId, HiveHistory.Keys propName, String propValue)
queryId
- propName
- propValue
- public void setTaskProperty(String queryId, String taskId, HiveHistory.Keys propName, String propValue)
taskId
- propName
- propValue
- public void setTaskCounters(String queryId, String taskId, org.apache.hadoop.mapred.RunningJob rj)
taskId
- rj
- public void printRowCount(String queryId)
public void endQuery(String queryId)
queryId
- public void startTask(String queryId, Task<? extends Serializable> task, String taskName)
task
- public void endTask(String queryId, Task<? extends Serializable> task)
task
- public void progressTask(String queryId, Task<? extends Serializable> task)
task
- public void setIdToTableMap(Map<String,String> map)
map
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |