[120] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!--NewPage--> |
---|
| 3 | <HTML> |
---|
| 4 | <HEAD> |
---|
| 5 | <!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:56:56 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | JobHistory (Hadoop 0.20.1 API) |
---|
| 8 | </TITLE> |
---|
| 9 | |
---|
| 10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
| 11 | |
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
| 13 | |
---|
| 14 | <SCRIPT type="text/javascript"> |
---|
| 15 | function windowTitle() |
---|
| 16 | { |
---|
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 18 | parent.document.title="JobHistory (Hadoop 0.20.1 API)"; |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | </SCRIPT> |
---|
| 22 | <NOSCRIPT> |
---|
| 23 | </NOSCRIPT> |
---|
| 24 | |
---|
| 25 | </HEAD> |
---|
| 26 | |
---|
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
| 28 | <HR> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 32 | <A NAME="navbar_top"><!-- --></A> |
---|
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 35 | <TR> |
---|
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 39 | <TR ALIGN="center" VALIGN="top"> |
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JobHistory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 48 | </TR> |
---|
| 49 | </TABLE> |
---|
| 50 | </TD> |
---|
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 52 | </EM> |
---|
| 53 | </TD> |
---|
| 54 | </TR> |
---|
| 55 | |
---|
| 56 | <TR> |
---|
| 57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 58 | <A HREF="../../../../org/apache/hadoop/mapred/JobEndNotifier.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/mapred/JobHistory.HistoryCleaner.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/JobHistory.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="JobHistory.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.hadoop.mapred</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class JobHistory</H2> |
---|
| 94 | <PRE> |
---|
| 95 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
| 96 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.mapred.JobHistory</B> |
---|
| 97 | </PRE> |
---|
| 98 | <HR> |
---|
| 99 | <DL> |
---|
| 100 | <DT><PRE>public class <B>JobHistory</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
---|
| 101 | </PRE> |
---|
| 102 | |
---|
| 103 | <P> |
---|
| 104 | Provides methods for writing to and reading from job history. |
---|
| 105 | Job History works in an append mode, JobHistory and its inner classes provide methods |
---|
| 106 | to log job events. |
---|
| 107 | |
---|
| 108 | JobHistory is split into multiple files, format of each file is plain text where each line |
---|
| 109 | is of the format [type (key=value)*], where type identifies the type of the record. |
---|
| 110 | Type maps to UID of one of the inner classes of this class. |
---|
| 111 | |
---|
| 112 | Job history is maintained in a master index which contains star/stop times of all jobs with |
---|
| 113 | a few other job level properties. Apart from this each job's history is maintained in a seperate history |
---|
| 114 | file. name of job history files follows the format jobtrackerId_jobid |
---|
| 115 | |
---|
| 116 | For parsing the job history it supports a listener based interface where each line is parsed |
---|
| 117 | and passed to listener. The listener can create an object model of history or look for specific |
---|
| 118 | events and discard rest of the history. |
---|
| 119 | |
---|
| 120 | CHANGE LOG : |
---|
| 121 | Version 0 : The history has the following format : |
---|
| 122 | TAG KEY1="VALUE1" KEY2="VALUE2" and so on. |
---|
| 123 | TAG can be Job, Task, MapAttempt or ReduceAttempt. |
---|
| 124 | Note that a '"' is the line delimiter. |
---|
| 125 | Version 1 : Changes the line delimiter to '.' |
---|
| 126 | Values are now escaped for unambiguous parsing. |
---|
| 127 | Added the Meta tag to store version info. |
---|
| 128 | <P> |
---|
| 129 | |
---|
| 130 | <P> |
---|
| 131 | <HR> |
---|
| 132 | |
---|
| 133 | <P> |
---|
| 134 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
| 135 | |
---|
| 136 | <A NAME="nested_class_summary"><!-- --></A> |
---|
| 137 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 138 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 139 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 140 | <B>Nested Class Summary</B></FONT></TH> |
---|
| 141 | </TR> |
---|
| 142 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 143 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 144 | <CODE>static class</CODE></FONT></TD> |
---|
| 145 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.HistoryCleaner.html" title="class in org.apache.hadoop.mapred">JobHistory.HistoryCleaner</A></B></CODE> |
---|
| 146 | |
---|
| 147 | <BR> |
---|
| 148 | Delete history files older than one month.</TD> |
---|
| 149 | </TR> |
---|
| 150 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 151 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 152 | <CODE>static class</CODE></FONT></TD> |
---|
| 153 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.JobInfo.html" title="class in org.apache.hadoop.mapred">JobHistory.JobInfo</A></B></CODE> |
---|
| 154 | |
---|
| 155 | <BR> |
---|
| 156 | Helper class for logging or reading back events related to job start, finish or failure.</TD> |
---|
| 157 | </TR> |
---|
| 158 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 159 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 160 | <CODE>static class</CODE></FONT></TD> |
---|
| 161 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A></B></CODE> |
---|
| 162 | |
---|
| 163 | <BR> |
---|
| 164 | Job history files contain key="value" pairs, where keys belong to this enum.</TD> |
---|
| 165 | </TR> |
---|
| 166 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 167 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 168 | <CODE>static interface</CODE></FONT></TD> |
---|
| 169 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Listener.html" title="interface in org.apache.hadoop.mapred">JobHistory.Listener</A></B></CODE> |
---|
| 170 | |
---|
| 171 | <BR> |
---|
| 172 | Callback interface for reading back log events from JobHistory.</TD> |
---|
| 173 | </TR> |
---|
| 174 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 175 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 176 | <CODE>static class</CODE></FONT></TD> |
---|
| 177 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.MapAttempt.html" title="class in org.apache.hadoop.mapred">JobHistory.MapAttempt</A></B></CODE> |
---|
| 178 | |
---|
| 179 | <BR> |
---|
| 180 | Helper class for logging or reading back events related to start, finish or failure of |
---|
| 181 | a Map Attempt on a node.</TD> |
---|
| 182 | </TR> |
---|
| 183 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 184 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 185 | <CODE>static class</CODE></FONT></TD> |
---|
| 186 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.RecordTypes.html" title="enum in org.apache.hadoop.mapred">JobHistory.RecordTypes</A></B></CODE> |
---|
| 187 | |
---|
| 188 | <BR> |
---|
| 189 | Record types are identifiers for each line of log in history files.</TD> |
---|
| 190 | </TR> |
---|
| 191 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 192 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 193 | <CODE>static class</CODE></FONT></TD> |
---|
| 194 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.ReduceAttempt.html" title="class in org.apache.hadoop.mapred">JobHistory.ReduceAttempt</A></B></CODE> |
---|
| 195 | |
---|
| 196 | <BR> |
---|
| 197 | Helper class for logging or reading back events related to start, finish or failure of |
---|
| 198 | a Map Attempt on a node.</TD> |
---|
| 199 | </TR> |
---|
| 200 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 201 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 202 | <CODE>static class</CODE></FONT></TD> |
---|
| 203 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html" title="class in org.apache.hadoop.mapred">JobHistory.Task</A></B></CODE> |
---|
| 204 | |
---|
| 205 | <BR> |
---|
| 206 | Helper class for logging or reading back events related to Task's start, finish or failure.</TD> |
---|
| 207 | </TR> |
---|
| 208 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 209 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 210 | <CODE>static class</CODE></FONT></TD> |
---|
| 211 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.TaskAttempt.html" title="class in org.apache.hadoop.mapred">JobHistory.TaskAttempt</A></B></CODE> |
---|
| 212 | |
---|
| 213 | <BR> |
---|
| 214 | Base class for Map and Reduce TaskAttempts.</TD> |
---|
| 215 | </TR> |
---|
| 216 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 217 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 218 | <CODE>static class</CODE></FONT></TD> |
---|
| 219 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Values.html" title="enum in org.apache.hadoop.mapred">JobHistory.Values</A></B></CODE> |
---|
| 220 | |
---|
| 221 | <BR> |
---|
| 222 | This enum contains some of the values commonly used by history log events.</TD> |
---|
| 223 | </TR> |
---|
| 224 | </TABLE> |
---|
| 225 | <!-- =========== FIELD SUMMARY =========== --> |
---|
| 226 | |
---|
| 227 | <A NAME="field_summary"><!-- --></A> |
---|
| 228 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 229 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 230 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 231 | <B>Field Summary</B></FONT></TH> |
---|
| 232 | </TR> |
---|
| 233 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 234 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 235 | <CODE>static int</CODE></FONT></TD> |
---|
| 236 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.html#JOB_NAME_TRIM_LENGTH">JOB_NAME_TRIM_LENGTH</A></B></CODE> |
---|
| 237 | |
---|
| 238 | <BR> |
---|
| 239 | </TD> |
---|
| 240 | </TR> |
---|
| 241 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 242 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 243 | <CODE>static org.apache.commons.logging.Log</CODE></FONT></TD> |
---|
| 244 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.html#LOG">LOG</A></B></CODE> |
---|
| 245 | |
---|
| 246 | <BR> |
---|
| 247 | </TD> |
---|
| 248 | </TR> |
---|
| 249 | </TABLE> |
---|
| 250 | |
---|
| 251 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 252 | |
---|
| 253 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 254 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 255 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 256 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 257 | <B>Constructor Summary</B></FONT></TH> |
---|
| 258 | </TR> |
---|
| 259 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 260 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.html#JobHistory()">JobHistory</A></B>()</CODE> |
---|
| 261 | |
---|
| 262 | <BR> |
---|
| 263 | </TD> |
---|
| 264 | </TR> |
---|
| 265 | </TABLE> |
---|
| 266 | |
---|
| 267 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 268 | |
---|
| 269 | <A NAME="method_summary"><!-- --></A> |
---|
| 270 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 271 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 272 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 273 | <B>Method Summary</B></FONT></TH> |
---|
| 274 | </TR> |
---|
| 275 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 276 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 277 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
| 278 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.html#getTaskLogsUrl(org.apache.hadoop.mapred.JobHistory.TaskAttempt)">getTaskLogsUrl</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.TaskAttempt.html" title="class in org.apache.hadoop.mapred">JobHistory.TaskAttempt</A> attempt)</CODE> |
---|
| 279 | |
---|
| 280 | <BR> |
---|
| 281 | Return the TaskLogsUrl of a particular TaskAttempt</TD> |
---|
| 282 | </TR> |
---|
| 283 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 284 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 285 | <CODE>static boolean</CODE></FONT></TD> |
---|
| 286 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.html#init(org.apache.hadoop.mapred.JobConf, java.lang.String, long)">init</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
| 287 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> hostname, |
---|
| 288 | long jobTrackerStartTime)</CODE> |
---|
| 289 | |
---|
| 290 | <BR> |
---|
| 291 | Initialize JobHistory files.</TD> |
---|
| 292 | </TR> |
---|
| 293 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 294 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 295 | <CODE>static boolean</CODE></FONT></TD> |
---|
| 296 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.html#isDisableHistory()">isDisableHistory</A></B>()</CODE> |
---|
| 297 | |
---|
| 298 | <BR> |
---|
| 299 | Returns history disable status.</TD> |
---|
| 300 | </TR> |
---|
| 301 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 302 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 303 | <CODE>static void</CODE></FONT></TD> |
---|
| 304 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.html#parseHistoryFromFS(java.lang.String, org.apache.hadoop.mapred.JobHistory.Listener, org.apache.hadoop.fs.FileSystem)">parseHistoryFromFS</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path, |
---|
| 305 | <A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Listener.html" title="interface in org.apache.hadoop.mapred">JobHistory.Listener</A> l, |
---|
| 306 | <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs)</CODE> |
---|
| 307 | |
---|
| 308 | <BR> |
---|
| 309 | Parses history file and invokes Listener.handle() for |
---|
| 310 | each line of history.</TD> |
---|
| 311 | </TR> |
---|
| 312 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 313 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 314 | <CODE>static void</CODE></FONT></TD> |
---|
| 315 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.html#setDisableHistory(boolean)">setDisableHistory</A></B>(boolean disableHistory)</CODE> |
---|
| 316 | |
---|
| 317 | <BR> |
---|
| 318 | Enable/disable history logging.</TD> |
---|
| 319 | </TR> |
---|
| 320 | </TABLE> |
---|
| 321 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 322 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 323 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 324 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
| 325 | </TR> |
---|
| 326 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 327 | <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
| 328 | </TR> |
---|
| 329 | </TABLE> |
---|
| 330 | |
---|
| 331 | <P> |
---|
| 332 | |
---|
| 333 | <!-- ============ FIELD DETAIL =========== --> |
---|
| 334 | |
---|
| 335 | <A NAME="field_detail"><!-- --></A> |
---|
| 336 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 337 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 338 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 339 | <B>Field Detail</B></FONT></TH> |
---|
| 340 | </TR> |
---|
| 341 | </TABLE> |
---|
| 342 | |
---|
| 343 | <A NAME="LOG"><!-- --></A><H3> |
---|
| 344 | LOG</H3> |
---|
| 345 | <PRE> |
---|
| 346 | public static final org.apache.commons.logging.Log <B>LOG</B></PRE> |
---|
| 347 | <DL> |
---|
| 348 | <DL> |
---|
| 349 | </DL> |
---|
| 350 | </DL> |
---|
| 351 | <HR> |
---|
| 352 | |
---|
| 353 | <A NAME="JOB_NAME_TRIM_LENGTH"><!-- --></A><H3> |
---|
| 354 | JOB_NAME_TRIM_LENGTH</H3> |
---|
| 355 | <PRE> |
---|
| 356 | public static final int <B>JOB_NAME_TRIM_LENGTH</B></PRE> |
---|
| 357 | <DL> |
---|
| 358 | <DL> |
---|
| 359 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.mapred.JobHistory.JOB_NAME_TRIM_LENGTH">Constant Field Values</A></DL> |
---|
| 360 | </DL> |
---|
| 361 | |
---|
| 362 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 363 | |
---|
| 364 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 365 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 366 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 367 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 368 | <B>Constructor Detail</B></FONT></TH> |
---|
| 369 | </TR> |
---|
| 370 | </TABLE> |
---|
| 371 | |
---|
| 372 | <A NAME="JobHistory()"><!-- --></A><H3> |
---|
| 373 | JobHistory</H3> |
---|
| 374 | <PRE> |
---|
| 375 | public <B>JobHistory</B>()</PRE> |
---|
| 376 | <DL> |
---|
| 377 | </DL> |
---|
| 378 | |
---|
| 379 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 380 | |
---|
| 381 | <A NAME="method_detail"><!-- --></A> |
---|
| 382 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 383 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 384 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 385 | <B>Method Detail</B></FONT></TH> |
---|
| 386 | </TR> |
---|
| 387 | </TABLE> |
---|
| 388 | |
---|
| 389 | <A NAME="init(org.apache.hadoop.mapred.JobConf, java.lang.String, long)"><!-- --></A><H3> |
---|
| 390 | init</H3> |
---|
| 391 | <PRE> |
---|
| 392 | public static boolean <B>init</B>(<A HREF="../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
| 393 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> hostname, |
---|
| 394 | long jobTrackerStartTime)</PRE> |
---|
| 395 | <DL> |
---|
| 396 | <DD>Initialize JobHistory files. |
---|
| 397 | <P> |
---|
| 398 | <DD><DL> |
---|
| 399 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - Jobconf of the job tracker.<DD><CODE>hostname</CODE> - jobtracker's hostname<DD><CODE>jobTrackerStartTime</CODE> - jobtracker's start time |
---|
| 400 | <DT><B>Returns:</B><DD>true if intialized properly |
---|
| 401 | false otherwise</DL> |
---|
| 402 | </DD> |
---|
| 403 | </DL> |
---|
| 404 | <HR> |
---|
| 405 | |
---|
| 406 | <A NAME="parseHistoryFromFS(java.lang.String, org.apache.hadoop.mapred.JobHistory.Listener, org.apache.hadoop.fs.FileSystem)"><!-- --></A><H3> |
---|
| 407 | parseHistoryFromFS</H3> |
---|
| 408 | <PRE> |
---|
| 409 | public static void <B>parseHistoryFromFS</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> path, |
---|
| 410 | <A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Listener.html" title="interface in org.apache.hadoop.mapred">JobHistory.Listener</A> l, |
---|
| 411 | <A HREF="../../../../org/apache/hadoop/fs/FileSystem.html" title="class in org.apache.hadoop.fs">FileSystem</A> fs) |
---|
| 412 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
| 413 | <DL> |
---|
| 414 | <DD>Parses history file and invokes Listener.handle() for |
---|
| 415 | each line of history. It can be used for looking through history |
---|
| 416 | files for specific items without having to keep whole history in memory. |
---|
| 417 | <P> |
---|
| 418 | <DD><DL> |
---|
| 419 | <DT><B>Parameters:</B><DD><CODE>path</CODE> - path to history file<DD><CODE>l</CODE> - Listener for history events<DD><CODE>fs</CODE> - FileSystem where history file is present |
---|
| 420 | <DT><B>Throws:</B> |
---|
| 421 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
| 422 | </DD> |
---|
| 423 | </DL> |
---|
| 424 | <HR> |
---|
| 425 | |
---|
| 426 | <A NAME="isDisableHistory()"><!-- --></A><H3> |
---|
| 427 | isDisableHistory</H3> |
---|
| 428 | <PRE> |
---|
| 429 | public static boolean <B>isDisableHistory</B>()</PRE> |
---|
| 430 | <DL> |
---|
| 431 | <DD>Returns history disable status. by default history is enabled so this |
---|
| 432 | method returns false. |
---|
| 433 | <P> |
---|
| 434 | <DD><DL> |
---|
| 435 | |
---|
| 436 | <DT><B>Returns:</B><DD>true if history logging is disabled, false otherwise.</DL> |
---|
| 437 | </DD> |
---|
| 438 | </DL> |
---|
| 439 | <HR> |
---|
| 440 | |
---|
| 441 | <A NAME="setDisableHistory(boolean)"><!-- --></A><H3> |
---|
| 442 | setDisableHistory</H3> |
---|
| 443 | <PRE> |
---|
| 444 | public static void <B>setDisableHistory</B>(boolean disableHistory)</PRE> |
---|
| 445 | <DL> |
---|
| 446 | <DD>Enable/disable history logging. Default value is false, so history |
---|
| 447 | is enabled by default. |
---|
| 448 | <P> |
---|
| 449 | <DD><DL> |
---|
| 450 | <DT><B>Parameters:</B><DD><CODE>disableHistory</CODE> - true if history should be disabled, false otherwise.</DL> |
---|
| 451 | </DD> |
---|
| 452 | </DL> |
---|
| 453 | <HR> |
---|
| 454 | |
---|
| 455 | <A NAME="getTaskLogsUrl(org.apache.hadoop.mapred.JobHistory.TaskAttempt)"><!-- --></A><H3> |
---|
| 456 | getTaskLogsUrl</H3> |
---|
| 457 | <PRE> |
---|
| 458 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getTaskLogsUrl</B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.TaskAttempt.html" title="class in org.apache.hadoop.mapred">JobHistory.TaskAttempt</A> attempt)</PRE> |
---|
| 459 | <DL> |
---|
| 460 | <DD>Return the TaskLogsUrl of a particular TaskAttempt |
---|
| 461 | <P> |
---|
| 462 | <DD><DL> |
---|
| 463 | <DT><B>Parameters:</B><DD><CODE>attempt</CODE> - |
---|
| 464 | <DT><B>Returns:</B><DD>the taskLogsUrl. null if http-port or tracker-name or |
---|
| 465 | task-attempt-id are unavailable.</DL> |
---|
| 466 | </DD> |
---|
| 467 | </DL> |
---|
| 468 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 469 | <HR> |
---|
| 470 | |
---|
| 471 | |
---|
| 472 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 473 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 474 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 475 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 476 | <TR> |
---|
| 477 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 478 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 479 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 480 | <TR ALIGN="center" VALIGN="top"> |
---|
| 481 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 482 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 483 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 484 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JobHistory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 485 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 486 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 487 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 488 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 489 | </TR> |
---|
| 490 | </TABLE> |
---|
| 491 | </TD> |
---|
| 492 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 493 | </EM> |
---|
| 494 | </TD> |
---|
| 495 | </TR> |
---|
| 496 | |
---|
| 497 | <TR> |
---|
| 498 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 499 | <A HREF="../../../../org/apache/hadoop/mapred/JobEndNotifier.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
| 500 | <A HREF="../../../../org/apache/hadoop/mapred/JobHistory.HistoryCleaner.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 501 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 502 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/JobHistory.html" target="_top"><B>FRAMES</B></A> |
---|
| 503 | <A HREF="JobHistory.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 504 | <SCRIPT type="text/javascript"> |
---|
| 505 | <!-- |
---|
| 506 | if(window==top) { |
---|
| 507 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 508 | } |
---|
| 509 | //--> |
---|
| 510 | </SCRIPT> |
---|
| 511 | <NOSCRIPT> |
---|
| 512 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 513 | </NOSCRIPT> |
---|
| 514 | |
---|
| 515 | |
---|
| 516 | </FONT></TD> |
---|
| 517 | </TR> |
---|
| 518 | <TR> |
---|
| 519 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 520 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 521 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 522 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 523 | </TR> |
---|
| 524 | </TABLE> |
---|
| 525 | <A NAME="skip-navbar_bottom"></A> |
---|
| 526 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 527 | |
---|
| 528 | <HR> |
---|
| 529 | Copyright © 2009 The Apache Software Foundation |
---|
| 530 | </BODY> |
---|
| 531 | </HTML> |
---|