|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.history.HiveHistoryImpl
public class HiveHistoryImpl
HiveHistory. Logs information such as query, query plan, runtime statistics into a file. Each session uses a new object, which creates a new file.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.hive.ql.history.HiveHistory |
|---|
HiveHistory.Info, HiveHistory.Keys, HiveHistory.Listener, HiveHistory.QueryInfo, HiveHistory.RecordTypes, HiveHistory.SessionInfo, HiveHistory.TaskInfo |
| Constructor Summary | |
|---|---|
HiveHistoryImpl(SessionState ss)
Construct HiveHistoryImpl object and open history log file. |
|
| Method Summary | |
|---|---|
void |
closeStream()
Close the log file stream |
void |
endQuery(String queryId)
Called at the end of a query |
void |
endTask(String queryId,
Task<? extends Serializable> task)
Called at the end of a task. |
void |
finalize()
|
String |
getHistFileName()
|
void |
logPlanProgress(QueryPlan plan)
Logs the current plan state |
void |
printRowCount(String queryId)
|
void |
progressTask(String queryId,
Task<? extends Serializable> task)
Logs progress of a task if ConfVars.HIVE_LOG_INCREMENTAL_PLAN_PROGRESS is set to true |
void |
setIdToTableMap(Map<String,String> map)
Set the id to table name map |
void |
setQueryProperty(String queryId,
HiveHistory.Keys propName,
String propValue)
Used to set query status and other attributes of a query |
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 query execution in 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 HiveHistoryImpl(SessionState ss)
ss - | Method Detail |
|---|
public String getHistFileName()
getHistFileName in interface HiveHistory
public void startQuery(String cmd,
String id)
HiveHistory
startQuery in interface HiveHistory
public void setQueryProperty(String queryId,
HiveHistory.Keys propName,
String propValue)
HiveHistory
setQueryProperty in interface HiveHistory
public void setTaskProperty(String queryId,
String taskId,
HiveHistory.Keys propName,
String propValue)
HiveHistory
setTaskProperty in interface HiveHistory
public void setTaskCounters(String queryId,
String taskId,
org.apache.hadoop.mapred.Counters ctrs)
HiveHistory
setTaskCounters in interface HiveHistorypublic void printRowCount(String queryId)
printRowCount in interface HiveHistorypublic void endQuery(String queryId)
HiveHistory
endQuery in interface HiveHistory
public void startTask(String queryId,
Task<? extends Serializable> task,
String taskName)
HiveHistory
startTask in interface HiveHistory
public void endTask(String queryId,
Task<? extends Serializable> task)
HiveHistory
endTask in interface HiveHistory
public void progressTask(String queryId,
Task<? extends Serializable> task)
HiveHistory
progressTask in interface HiveHistory
public void logPlanProgress(QueryPlan plan)
throws IOException
HiveHistory
logPlanProgress in interface HiveHistoryIOExceptionpublic void setIdToTableMap(Map<String,String> map)
HiveHistory
setIdToTableMap in interface HiveHistorypublic void closeStream()
HiveHistory
closeStream in interface HiveHistory
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 | |||||||||