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:57 UTC 2009 --> |
---|
6 | <TITLE> |
---|
7 | TaskLog (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="TaskLog (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/TaskLog.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/TaskID.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../org/apache/hadoop/mapred/TaskLog.LogName.html" title="enum 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/TaskLog.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="TaskLog.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> | FIELD | <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: FIELD | <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 TaskLog</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.TaskLog</B> |
---|
97 | </PRE> |
---|
98 | <HR> |
---|
99 | <DL> |
---|
100 | <DT><PRE>public class <B>TaskLog</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 | A simple logger to handle the task-specific user logs. |
---|
105 | This class uses the system property <code>hadoop.log.dir</code>. |
---|
106 | <P> |
---|
107 | |
---|
108 | <P> |
---|
109 | <HR> |
---|
110 | |
---|
111 | <P> |
---|
112 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
113 | |
---|
114 | <A NAME="nested_class_summary"><!-- --></A> |
---|
115 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
116 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
117 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
118 | <B>Nested Class Summary</B></FONT></TH> |
---|
119 | </TR> |
---|
120 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
121 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
122 | <CODE>static class</CODE></FONT></TD> |
---|
123 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.LogName.html" title="enum in org.apache.hadoop.mapred">TaskLog.LogName</A></B></CODE> |
---|
124 | |
---|
125 | <BR> |
---|
126 | The filter for userlogs.</TD> |
---|
127 | </TR> |
---|
128 | </TABLE> |
---|
129 | |
---|
130 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
131 | |
---|
132 | <A NAME="constructor_summary"><!-- --></A> |
---|
133 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
134 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
135 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
136 | <B>Constructor Summary</B></FONT></TH> |
---|
137 | </TR> |
---|
138 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
139 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#TaskLog()">TaskLog</A></B>()</CODE> |
---|
140 | |
---|
141 | <BR> |
---|
142 | </TD> |
---|
143 | </TR> |
---|
144 | </TABLE> |
---|
145 | |
---|
146 | <!-- ========== METHOD SUMMARY =========== --> |
---|
147 | |
---|
148 | <A NAME="method_summary"><!-- --></A> |
---|
149 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
150 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
151 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
152 | <B>Method Summary</B></FONT></TH> |
---|
153 | </TR> |
---|
154 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
155 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
156 | <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> |
---|
157 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#addCommand(java.util.List, boolean)">addCommand</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
158 | boolean isExecutable)</CODE> |
---|
159 | |
---|
160 | <BR> |
---|
161 | Add quotes to each of the command strings and |
---|
162 | return as a single string</TD> |
---|
163 | </TR> |
---|
164 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
165 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
166 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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> |
---|
167 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#captureDebugOut(java.util.List, java.io.File)">captureDebugOut</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
168 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> debugoutFilename)</CODE> |
---|
169 | |
---|
170 | <BR> |
---|
171 | Wrap a command in a shell to capture debug script's |
---|
172 | stdout and stderr to debugout.</TD> |
---|
173 | </TR> |
---|
174 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
175 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
176 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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> |
---|
177 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#captureOutAndError(java.util.List, java.io.File, java.io.File, long)">captureOutAndError</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
178 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stdoutFilename, |
---|
179 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stderrFilename, |
---|
180 | long tailLength)</CODE> |
---|
181 | |
---|
182 | <BR> |
---|
183 | Wrap a command in a shell to capture stdout and stderr to files.</TD> |
---|
184 | </TR> |
---|
185 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
186 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
187 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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> |
---|
188 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#captureOutAndError(java.util.List, java.util.List, java.io.File, java.io.File, long)">captureOutAndError</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> setup, |
---|
189 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
190 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stdoutFilename, |
---|
191 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stderrFilename, |
---|
192 | long tailLength)</CODE> |
---|
193 | |
---|
194 | <BR> |
---|
195 | Wrap a command in a shell to capture stdout and stderr to files.</TD> |
---|
196 | </TR> |
---|
197 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
198 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
199 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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> |
---|
200 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#captureOutAndError(java.util.List, java.util.List, java.io.File, java.io.File, long, java.lang.String)">captureOutAndError</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> setup, |
---|
201 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
202 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stdoutFilename, |
---|
203 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stderrFilename, |
---|
204 | long tailLength, |
---|
205 | <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> pidFileName)</CODE> |
---|
206 | |
---|
207 | <BR> |
---|
208 | Wrap a command in a shell to capture stdout and stderr to files.</TD> |
---|
209 | </TR> |
---|
210 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
211 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
212 | <CODE>static void</CODE></FONT></TD> |
---|
213 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#cleanup(int)">cleanup</A></B>(int logsRetainHours)</CODE> |
---|
214 | |
---|
215 | <BR> |
---|
216 | Purge old user logs.</TD> |
---|
217 | </TR> |
---|
218 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
219 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
220 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD> |
---|
221 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#getIndexFile(java.lang.String)">getIndexFile</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> taskid)</CODE> |
---|
222 | |
---|
223 | <BR> |
---|
224 | </TD> |
---|
225 | </TR> |
---|
226 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
227 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
228 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD> |
---|
229 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#getIndexFile(java.lang.String, boolean)">getIndexFile</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> taskid, |
---|
230 | boolean isCleanup)</CODE> |
---|
231 | |
---|
232 | <BR> |
---|
233 | </TD> |
---|
234 | </TR> |
---|
235 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
236 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
237 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD> |
---|
238 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#getRealTaskLogFileLocation(org.apache.hadoop.mapred.TaskAttemptID, org.apache.hadoop.mapred.TaskLog.LogName)">getRealTaskLogFileLocation</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> taskid, |
---|
239 | <A HREF="../../../../org/apache/hadoop/mapred/TaskLog.LogName.html" title="enum in org.apache.hadoop.mapred">TaskLog.LogName</A> filter)</CODE> |
---|
240 | |
---|
241 | <BR> |
---|
242 | </TD> |
---|
243 | </TR> |
---|
244 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
245 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
246 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD> |
---|
247 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#getTaskLogFile(org.apache.hadoop.mapred.TaskAttemptID, org.apache.hadoop.mapred.TaskLog.LogName)">getTaskLogFile</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> taskid, |
---|
248 | <A HREF="../../../../org/apache/hadoop/mapred/TaskLog.LogName.html" title="enum in org.apache.hadoop.mapred">TaskLog.LogName</A> filter)</CODE> |
---|
249 | |
---|
250 | <BR> |
---|
251 | </TD> |
---|
252 | </TR> |
---|
253 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
254 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
255 | <CODE>static long</CODE></FONT></TD> |
---|
256 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#getTaskLogLength(org.apache.hadoop.mapred.JobConf)">getTaskLogLength</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf)</CODE> |
---|
257 | |
---|
258 | <BR> |
---|
259 | Get the desired maximum length of task's logs.</TD> |
---|
260 | </TR> |
---|
261 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
262 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
263 | <CODE>static void</CODE></FONT></TD> |
---|
264 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#syncLogs(org.apache.hadoop.mapred.TaskAttemptID, org.apache.hadoop.mapred.TaskAttemptID)">syncLogs</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> firstTaskid, |
---|
265 | <A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> taskid)</CODE> |
---|
266 | |
---|
267 | <BR> |
---|
268 | </TD> |
---|
269 | </TR> |
---|
270 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
271 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
272 | <CODE>static void</CODE></FONT></TD> |
---|
273 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/TaskLog.html#syncLogs(org.apache.hadoop.mapred.TaskAttemptID, org.apache.hadoop.mapred.TaskAttemptID, boolean)">syncLogs</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> firstTaskid, |
---|
274 | <A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> taskid, |
---|
275 | boolean isCleanup)</CODE> |
---|
276 | |
---|
277 | <BR> |
---|
278 | </TD> |
---|
279 | </TR> |
---|
280 | </TABLE> |
---|
281 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
282 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
283 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
284 | <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> |
---|
285 | </TR> |
---|
286 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
287 | <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> |
---|
288 | </TR> |
---|
289 | </TABLE> |
---|
290 | |
---|
291 | <P> |
---|
292 | |
---|
293 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
294 | |
---|
295 | <A NAME="constructor_detail"><!-- --></A> |
---|
296 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
297 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
298 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
299 | <B>Constructor Detail</B></FONT></TH> |
---|
300 | </TR> |
---|
301 | </TABLE> |
---|
302 | |
---|
303 | <A NAME="TaskLog()"><!-- --></A><H3> |
---|
304 | TaskLog</H3> |
---|
305 | <PRE> |
---|
306 | public <B>TaskLog</B>()</PRE> |
---|
307 | <DL> |
---|
308 | </DL> |
---|
309 | |
---|
310 | <!-- ============ METHOD DETAIL ========== --> |
---|
311 | |
---|
312 | <A NAME="method_detail"><!-- --></A> |
---|
313 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
314 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
315 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
316 | <B>Method Detail</B></FONT></TH> |
---|
317 | </TR> |
---|
318 | </TABLE> |
---|
319 | |
---|
320 | <A NAME="getTaskLogFile(org.apache.hadoop.mapred.TaskAttemptID, org.apache.hadoop.mapred.TaskLog.LogName)"><!-- --></A><H3> |
---|
321 | getTaskLogFile</H3> |
---|
322 | <PRE> |
---|
323 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getTaskLogFile</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> taskid, |
---|
324 | <A HREF="../../../../org/apache/hadoop/mapred/TaskLog.LogName.html" title="enum in org.apache.hadoop.mapred">TaskLog.LogName</A> filter)</PRE> |
---|
325 | <DL> |
---|
326 | <DD><DL> |
---|
327 | </DL> |
---|
328 | </DD> |
---|
329 | </DL> |
---|
330 | <HR> |
---|
331 | |
---|
332 | <A NAME="getRealTaskLogFileLocation(org.apache.hadoop.mapred.TaskAttemptID, org.apache.hadoop.mapred.TaskLog.LogName)"><!-- --></A><H3> |
---|
333 | getRealTaskLogFileLocation</H3> |
---|
334 | <PRE> |
---|
335 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getRealTaskLogFileLocation</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> taskid, |
---|
336 | <A HREF="../../../../org/apache/hadoop/mapred/TaskLog.LogName.html" title="enum in org.apache.hadoop.mapred">TaskLog.LogName</A> filter)</PRE> |
---|
337 | <DL> |
---|
338 | <DD><DL> |
---|
339 | </DL> |
---|
340 | </DD> |
---|
341 | </DL> |
---|
342 | <HR> |
---|
343 | |
---|
344 | <A NAME="getIndexFile(java.lang.String)"><!-- --></A><H3> |
---|
345 | getIndexFile</H3> |
---|
346 | <PRE> |
---|
347 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getIndexFile</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> taskid)</PRE> |
---|
348 | <DL> |
---|
349 | <DD><DL> |
---|
350 | </DL> |
---|
351 | </DD> |
---|
352 | </DL> |
---|
353 | <HR> |
---|
354 | |
---|
355 | <A NAME="getIndexFile(java.lang.String, boolean)"><!-- --></A><H3> |
---|
356 | getIndexFile</H3> |
---|
357 | <PRE> |
---|
358 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getIndexFile</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> taskid, |
---|
359 | boolean isCleanup)</PRE> |
---|
360 | <DL> |
---|
361 | <DD><DL> |
---|
362 | </DL> |
---|
363 | </DD> |
---|
364 | </DL> |
---|
365 | <HR> |
---|
366 | |
---|
367 | <A NAME="syncLogs(org.apache.hadoop.mapred.TaskAttemptID, org.apache.hadoop.mapred.TaskAttemptID)"><!-- --></A><H3> |
---|
368 | syncLogs</H3> |
---|
369 | <PRE> |
---|
370 | public static void <B>syncLogs</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> firstTaskid, |
---|
371 | <A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> taskid) |
---|
372 | 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> |
---|
373 | <DL> |
---|
374 | <DD><DL> |
---|
375 | |
---|
376 | <DT><B>Throws:</B> |
---|
377 | <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> |
---|
378 | </DD> |
---|
379 | </DL> |
---|
380 | <HR> |
---|
381 | |
---|
382 | <A NAME="syncLogs(org.apache.hadoop.mapred.TaskAttemptID, org.apache.hadoop.mapred.TaskAttemptID, boolean)"><!-- --></A><H3> |
---|
383 | syncLogs</H3> |
---|
384 | <PRE> |
---|
385 | public static void <B>syncLogs</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> firstTaskid, |
---|
386 | <A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> taskid, |
---|
387 | boolean isCleanup) |
---|
388 | 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> |
---|
389 | <DL> |
---|
390 | <DD><DL> |
---|
391 | |
---|
392 | <DT><B>Throws:</B> |
---|
393 | <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> |
---|
394 | </DD> |
---|
395 | </DL> |
---|
396 | <HR> |
---|
397 | |
---|
398 | <A NAME="cleanup(int)"><!-- --></A><H3> |
---|
399 | cleanup</H3> |
---|
400 | <PRE> |
---|
401 | public static void <B>cleanup</B>(int logsRetainHours) |
---|
402 | 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> |
---|
403 | <DL> |
---|
404 | <DD>Purge old user logs. |
---|
405 | <P> |
---|
406 | <DD><DL> |
---|
407 | |
---|
408 | <DT><B>Throws:</B> |
---|
409 | <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> |
---|
410 | </DD> |
---|
411 | </DL> |
---|
412 | <HR> |
---|
413 | |
---|
414 | <A NAME="getTaskLogLength(org.apache.hadoop.mapred.JobConf)"><!-- --></A><H3> |
---|
415 | getTaskLogLength</H3> |
---|
416 | <PRE> |
---|
417 | public static long <B>getTaskLogLength</B>(<A HREF="../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf)</PRE> |
---|
418 | <DL> |
---|
419 | <DD>Get the desired maximum length of task's logs. |
---|
420 | <P> |
---|
421 | <DD><DL> |
---|
422 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the job to look in |
---|
423 | <DT><B>Returns:</B><DD>the number of bytes to cap the log files at</DL> |
---|
424 | </DD> |
---|
425 | </DL> |
---|
426 | <HR> |
---|
427 | |
---|
428 | <A NAME="captureOutAndError(java.util.List, java.io.File, java.io.File, long)"><!-- --></A><H3> |
---|
429 | captureOutAndError</H3> |
---|
430 | <PRE> |
---|
431 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>captureOutAndError</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
432 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stdoutFilename, |
---|
433 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stderrFilename, |
---|
434 | long tailLength) |
---|
435 | 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> |
---|
436 | <DL> |
---|
437 | <DD>Wrap a command in a shell to capture stdout and stderr to files. |
---|
438 | If the tailLength is 0, the entire output will be saved. |
---|
439 | <P> |
---|
440 | <DD><DL> |
---|
441 | <DT><B>Parameters:</B><DD><CODE>cmd</CODE> - The command and the arguments that should be run<DD><CODE>stdoutFilename</CODE> - The filename that stdout should be saved to<DD><CODE>stderrFilename</CODE> - The filename that stderr should be saved to<DD><CODE>tailLength</CODE> - The length of the tail to be saved. |
---|
442 | <DT><B>Returns:</B><DD>the modified command that should be run |
---|
443 | <DT><B>Throws:</B> |
---|
444 | <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> |
---|
445 | </DD> |
---|
446 | </DL> |
---|
447 | <HR> |
---|
448 | |
---|
449 | <A NAME="captureOutAndError(java.util.List, java.util.List, java.io.File, java.io.File, long)"><!-- --></A><H3> |
---|
450 | captureOutAndError</H3> |
---|
451 | <PRE> |
---|
452 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>captureOutAndError</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> setup, |
---|
453 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
454 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stdoutFilename, |
---|
455 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stderrFilename, |
---|
456 | long tailLength) |
---|
457 | 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> |
---|
458 | <DL> |
---|
459 | <DD>Wrap a command in a shell to capture stdout and stderr to files. |
---|
460 | Setup commands such as setting memory limit can be passed which |
---|
461 | will be executed before exec. |
---|
462 | If the tailLength is 0, the entire output will be saved. |
---|
463 | <P> |
---|
464 | <DD><DL> |
---|
465 | <DT><B>Parameters:</B><DD><CODE>setup</CODE> - The setup commands for the execed process.<DD><CODE>cmd</CODE> - The command and the arguments that should be run<DD><CODE>stdoutFilename</CODE> - The filename that stdout should be saved to<DD><CODE>stderrFilename</CODE> - The filename that stderr should be saved to<DD><CODE>tailLength</CODE> - The length of the tail to be saved. |
---|
466 | <DT><B>Returns:</B><DD>the modified command that should be run |
---|
467 | <DT><B>Throws:</B> |
---|
468 | <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> |
---|
469 | </DD> |
---|
470 | </DL> |
---|
471 | <HR> |
---|
472 | |
---|
473 | <A NAME="captureOutAndError(java.util.List, java.util.List, java.io.File, java.io.File, long, java.lang.String)"><!-- --></A><H3> |
---|
474 | captureOutAndError</H3> |
---|
475 | <PRE> |
---|
476 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>captureOutAndError</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> setup, |
---|
477 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
478 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stdoutFilename, |
---|
479 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> stderrFilename, |
---|
480 | long tailLength, |
---|
481 | <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> pidFileName) |
---|
482 | 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> |
---|
483 | <DL> |
---|
484 | <DD>Wrap a command in a shell to capture stdout and stderr to files. |
---|
485 | Setup commands such as setting memory limit can be passed which |
---|
486 | will be executed before exec. |
---|
487 | If the tailLength is 0, the entire output will be saved. |
---|
488 | <P> |
---|
489 | <DD><DL> |
---|
490 | <DT><B>Parameters:</B><DD><CODE>setup</CODE> - The setup commands for the execed process.<DD><CODE>cmd</CODE> - The command and the arguments that should be run<DD><CODE>stdoutFilename</CODE> - The filename that stdout should be saved to<DD><CODE>stderrFilename</CODE> - The filename that stderr should be saved to<DD><CODE>tailLength</CODE> - The length of the tail to be saved.<DD><CODE>pidFileName</CODE> - The name of the pid-file |
---|
491 | <DT><B>Returns:</B><DD>the modified command that should be run |
---|
492 | <DT><B>Throws:</B> |
---|
493 | <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> |
---|
494 | </DD> |
---|
495 | </DL> |
---|
496 | <HR> |
---|
497 | |
---|
498 | <A NAME="addCommand(java.util.List, boolean)"><!-- --></A><H3> |
---|
499 | addCommand</H3> |
---|
500 | <PRE> |
---|
501 | 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>addCommand</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
502 | boolean isExecutable) |
---|
503 | 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> |
---|
504 | <DL> |
---|
505 | <DD>Add quotes to each of the command strings and |
---|
506 | return as a single string |
---|
507 | <P> |
---|
508 | <DD><DL> |
---|
509 | <DT><B>Parameters:</B><DD><CODE>cmd</CODE> - The command to be quoted<DD><CODE>isExecutable</CODE> - makes shell path if the first |
---|
510 | argument is executable |
---|
511 | <DT><B>Returns:</B><DD>returns The quoted string. |
---|
512 | <DT><B>Throws:</B> |
---|
513 | <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> |
---|
514 | </DD> |
---|
515 | </DL> |
---|
516 | <HR> |
---|
517 | |
---|
518 | <A NAME="captureDebugOut(java.util.List, java.io.File)"><!-- --></A><H3> |
---|
519 | captureDebugOut</H3> |
---|
520 | <PRE> |
---|
521 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>captureDebugOut</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<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>> cmd, |
---|
522 | <A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> debugoutFilename) |
---|
523 | 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> |
---|
524 | <DL> |
---|
525 | <DD>Wrap a command in a shell to capture debug script's |
---|
526 | stdout and stderr to debugout. |
---|
527 | <P> |
---|
528 | <DD><DL> |
---|
529 | <DT><B>Parameters:</B><DD><CODE>cmd</CODE> - The command and the arguments that should be run<DD><CODE>debugoutFilename</CODE> - The filename that stdout and stderr |
---|
530 | should be saved to. |
---|
531 | <DT><B>Returns:</B><DD>the modified command that should be run |
---|
532 | <DT><B>Throws:</B> |
---|
533 | <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> |
---|
534 | </DD> |
---|
535 | </DL> |
---|
536 | <!-- ========= END OF CLASS DATA ========= --> |
---|
537 | <HR> |
---|
538 | |
---|
539 | |
---|
540 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
541 | <A NAME="navbar_bottom"><!-- --></A> |
---|
542 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
543 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
544 | <TR> |
---|
545 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
546 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
547 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
548 | <TR ALIGN="center" VALIGN="top"> |
---|
549 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
550 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
551 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
552 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TaskLog.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
553 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
554 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
555 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
556 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
557 | </TR> |
---|
558 | </TABLE> |
---|
559 | </TD> |
---|
560 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
561 | </EM> |
---|
562 | </TD> |
---|
563 | </TR> |
---|
564 | |
---|
565 | <TR> |
---|
566 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
567 | <A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
568 | <A HREF="../../../../org/apache/hadoop/mapred/TaskLog.LogName.html" title="enum in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
569 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
570 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/TaskLog.html" target="_top"><B>FRAMES</B></A> |
---|
571 | <A HREF="TaskLog.html" target="_top"><B>NO FRAMES</B></A> |
---|
572 | <SCRIPT type="text/javascript"> |
---|
573 | <!-- |
---|
574 | if(window==top) { |
---|
575 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
576 | } |
---|
577 | //--> |
---|
578 | </SCRIPT> |
---|
579 | <NOSCRIPT> |
---|
580 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
581 | </NOSCRIPT> |
---|
582 | |
---|
583 | |
---|
584 | </FONT></TD> |
---|
585 | </TR> |
---|
586 | <TR> |
---|
587 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
588 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
589 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
590 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
591 | </TR> |
---|
592 | </TABLE> |
---|
593 | <A NAME="skip-navbar_bottom"></A> |
---|
594 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
595 | |
---|
596 | <HR> |
---|
597 | Copyright © 2009 The Apache Software Foundation |
---|
598 | </BODY> |
---|
599 | </HTML> |
---|