|
||||||||||
| 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
HiveHistory.
| Nested Class Summary | |
|---|---|
static class |
HiveHistory.Info
Info. |
static class |
HiveHistory.Keys
Keys. |
static interface |
HiveHistory.Listener
Listner interface Parser will call handle function for each record type. |
static class |
HiveHistory.QueryInfo
QueryInfo. |
static class |
HiveHistory.RecordTypes
RecordTypes. |
static class |
HiveHistory.SessionInfo
SessionInfo. |
static class |
HiveHistory.TaskInfo
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. |
void |
finalize()
|
String |
getHistFileName()
|
void |
logPlanProgress(QueryPlan plan)
|
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.Counters ctrs)
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.execute(). |
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, 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 -
IOExceptionpublic 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.Counters ctrs)
queryId - taskId - ctrs - 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 logPlanProgress(QueryPlan plan)
throws IOException
IOExceptionpublic void setIdToTableMap(Map<String,String> map)
map -
public void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||