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:58 UTC 2009 --> |
---|
6 | <TITLE> |
---|
7 | Job (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="Job (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/Job.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/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../org/apache/hadoop/mapreduce/Job.JobState.html" title="enum in org.apache.hadoop.mapreduce"><B>NEXT CLASS</B></A></FONT></TD> |
---|
60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
61 | <A HREF="../../../../index.html?org/apache/hadoop/mapreduce/Job.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="Job.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="#fields_inherited_from_class_org.apache.hadoop.mapreduce.JobContext">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: 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.mapreduce</FONT> |
---|
92 | <BR> |
---|
93 | Class Job</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 "><A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">org.apache.hadoop.mapreduce.JobContext</A> |
---|
97 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.mapreduce.Job</B> |
---|
98 | </PRE> |
---|
99 | <HR> |
---|
100 | <DL> |
---|
101 | <DT><PRE>public class <B>Job</B><DT>extends <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A></DL> |
---|
102 | </PRE> |
---|
103 | |
---|
104 | <P> |
---|
105 | The job submitter's view of the Job. It allows the user to configure the |
---|
106 | job, submit it, control its execution, and query the state. The set methods |
---|
107 | only work until the job is submitted, afterwards they will throw an |
---|
108 | IllegalStateException. |
---|
109 | <P> |
---|
110 | |
---|
111 | <P> |
---|
112 | <HR> |
---|
113 | |
---|
114 | <P> |
---|
115 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
116 | |
---|
117 | <A NAME="nested_class_summary"><!-- --></A> |
---|
118 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
119 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
120 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
121 | <B>Nested Class Summary</B></FONT></TH> |
---|
122 | </TR> |
---|
123 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
124 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
125 | <CODE>static class</CODE></FONT></TD> |
---|
126 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.JobState.html" title="enum in org.apache.hadoop.mapreduce">Job.JobState</A></B></CODE> |
---|
127 | |
---|
128 | <BR> |
---|
129 | </TD> |
---|
130 | </TR> |
---|
131 | </TABLE> |
---|
132 | <!-- =========== FIELD SUMMARY =========== --> |
---|
133 | |
---|
134 | <A NAME="field_summary"><!-- --></A> |
---|
135 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
136 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
137 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
138 | <B>Field Summary</B></FONT></TH> |
---|
139 | </TR> |
---|
140 | </TABLE> |
---|
141 | <A NAME="fields_inherited_from_class_org.apache.hadoop.mapreduce.JobContext"><!-- --></A> |
---|
142 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
143 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
144 | <TH ALIGN="left"><B>Fields inherited from class org.apache.hadoop.mapreduce.<A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A></B></TH> |
---|
145 | </TR> |
---|
146 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
147 | <TD><CODE><A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#COMBINE_CLASS_ATTR">COMBINE_CLASS_ATTR</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#conf">conf</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#INPUT_FORMAT_CLASS_ATTR">INPUT_FORMAT_CLASS_ATTR</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#MAP_CLASS_ATTR">MAP_CLASS_ATTR</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#OUTPUT_FORMAT_CLASS_ATTR">OUTPUT_FORMAT_CLASS_ATTR</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#PARTITIONER_CLASS_ATTR">PARTITIONER_CLASS_ATTR</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#REDUCE_CLASS_ATTR">REDUCE_CLASS_ATTR</A></CODE></TD> |
---|
148 | </TR> |
---|
149 | </TABLE> |
---|
150 | |
---|
151 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
152 | |
---|
153 | <A NAME="constructor_summary"><!-- --></A> |
---|
154 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
155 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
156 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
157 | <B>Constructor Summary</B></FONT></TH> |
---|
158 | </TR> |
---|
159 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
160 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#Job()">Job</A></B>()</CODE> |
---|
161 | |
---|
162 | <BR> |
---|
163 | </TD> |
---|
164 | </TR> |
---|
165 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
166 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#Job(org.apache.hadoop.conf.Configuration)">Job</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
167 | |
---|
168 | <BR> |
---|
169 | </TD> |
---|
170 | </TR> |
---|
171 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
172 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#Job(org.apache.hadoop.conf.Configuration, java.lang.String)">Job</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
173 | <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> jobName)</CODE> |
---|
174 | |
---|
175 | <BR> |
---|
176 | </TD> |
---|
177 | </TR> |
---|
178 | </TABLE> |
---|
179 | |
---|
180 | <!-- ========== METHOD SUMMARY =========== --> |
---|
181 | |
---|
182 | <A NAME="method_summary"><!-- --></A> |
---|
183 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
184 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
185 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
186 | <B>Method Summary</B></FONT></TH> |
---|
187 | </TR> |
---|
188 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
189 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
190 | <CODE> void</CODE></FONT></TD> |
---|
191 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#failTask(org.apache.hadoop.mapreduce.TaskAttemptID)">failTask</A></B>(<A HREF="../../../../org/apache/hadoop/mapreduce/TaskAttemptID.html" title="class in org.apache.hadoop.mapreduce">TaskAttemptID</A> taskId)</CODE> |
---|
192 | |
---|
193 | <BR> |
---|
194 | Fail indicated task attempt.</TD> |
---|
195 | </TR> |
---|
196 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
197 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
198 | <CODE> <A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html" title="class in org.apache.hadoop.mapreduce">Counters</A></CODE></FONT></TD> |
---|
199 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#getCounters()">getCounters</A></B>()</CODE> |
---|
200 | |
---|
201 | <BR> |
---|
202 | Gets the counters for this job.</TD> |
---|
203 | </TR> |
---|
204 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
205 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
206 | <CODE> <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> |
---|
207 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#getJar()">getJar</A></B>()</CODE> |
---|
208 | |
---|
209 | <BR> |
---|
210 | Get the pathname of the job's jar.</TD> |
---|
211 | </TR> |
---|
212 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
213 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
214 | <CODE> <A HREF="../../../../org/apache/hadoop/mapred/TaskCompletionEvent.html" title="class in org.apache.hadoop.mapred">TaskCompletionEvent</A>[]</CODE></FONT></TD> |
---|
215 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#getTaskCompletionEvents(int)">getTaskCompletionEvents</A></B>(int startFrom)</CODE> |
---|
216 | |
---|
217 | <BR> |
---|
218 | Get events indicating completion (success/failure) of component tasks.</TD> |
---|
219 | </TR> |
---|
220 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
221 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
222 | <CODE> <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> |
---|
223 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#getTrackingURL()">getTrackingURL</A></B>()</CODE> |
---|
224 | |
---|
225 | <BR> |
---|
226 | Get the URL where some job progress information will be displayed.</TD> |
---|
227 | </TR> |
---|
228 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
229 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
230 | <CODE> boolean</CODE></FONT></TD> |
---|
231 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#isComplete()">isComplete</A></B>()</CODE> |
---|
232 | |
---|
233 | <BR> |
---|
234 | Check if the job is finished or not.</TD> |
---|
235 | </TR> |
---|
236 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
237 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
238 | <CODE> boolean</CODE></FONT></TD> |
---|
239 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#isSuccessful()">isSuccessful</A></B>()</CODE> |
---|
240 | |
---|
241 | <BR> |
---|
242 | Check if the job completed successfully.</TD> |
---|
243 | </TR> |
---|
244 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
245 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
246 | <CODE> void</CODE></FONT></TD> |
---|
247 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#killJob()">killJob</A></B>()</CODE> |
---|
248 | |
---|
249 | <BR> |
---|
250 | Kill the running job.</TD> |
---|
251 | </TR> |
---|
252 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
253 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
254 | <CODE> void</CODE></FONT></TD> |
---|
255 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#killTask(org.apache.hadoop.mapreduce.TaskAttemptID)">killTask</A></B>(<A HREF="../../../../org/apache/hadoop/mapreduce/TaskAttemptID.html" title="class in org.apache.hadoop.mapreduce">TaskAttemptID</A> taskId)</CODE> |
---|
256 | |
---|
257 | <BR> |
---|
258 | Kill indicated task attempt.</TD> |
---|
259 | </TR> |
---|
260 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
261 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
262 | <CODE> float</CODE></FONT></TD> |
---|
263 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#mapProgress()">mapProgress</A></B>()</CODE> |
---|
264 | |
---|
265 | <BR> |
---|
266 | Get the <i>progress</i> of the job's map-tasks, as a float between 0.0 |
---|
267 | and 1.0.</TD> |
---|
268 | </TR> |
---|
269 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
270 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
271 | <CODE> float</CODE></FONT></TD> |
---|
272 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#reduceProgress()">reduceProgress</A></B>()</CODE> |
---|
273 | |
---|
274 | <BR> |
---|
275 | Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0 |
---|
276 | and 1.0.</TD> |
---|
277 | </TR> |
---|
278 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
279 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
280 | <CODE> void</CODE></FONT></TD> |
---|
281 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setCombinerClass(java.lang.Class)">setCombinerClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html" title="class in org.apache.hadoop.mapreduce">Reducer</A>> cls)</CODE> |
---|
282 | |
---|
283 | <BR> |
---|
284 | Set the combiner class for the job.</TD> |
---|
285 | </TR> |
---|
286 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
287 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
288 | <CODE> void</CODE></FONT></TD> |
---|
289 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setGroupingComparatorClass(java.lang.Class)">setGroupingComparatorClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io">RawComparator</A>> cls)</CODE> |
---|
290 | |
---|
291 | <BR> |
---|
292 | Define the comparator that controls which keys are grouped together |
---|
293 | for a single call to |
---|
294 | <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html#reduce(KEYIN, java.lang.Iterable, org.apache.hadoop.mapreduce.Reducer.Context)"><CODE>Reducer.reduce(Object, Iterable, |
---|
295 | org.apache.hadoop.mapreduce.Reducer.Context)</CODE></A></TD> |
---|
296 | </TR> |
---|
297 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
298 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
299 | <CODE> void</CODE></FONT></TD> |
---|
300 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setInputFormatClass(java.lang.Class)">setInputFormatClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce">InputFormat</A>> cls)</CODE> |
---|
301 | |
---|
302 | <BR> |
---|
303 | Set the <A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputFormat</CODE></A> for the job.</TD> |
---|
304 | </TR> |
---|
305 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
306 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
307 | <CODE> void</CODE></FONT></TD> |
---|
308 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setJarByClass(java.lang.Class)">setJarByClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls)</CODE> |
---|
309 | |
---|
310 | <BR> |
---|
311 | Set the Jar by finding where a given class came from.</TD> |
---|
312 | </TR> |
---|
313 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
314 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
315 | <CODE> void</CODE></FONT></TD> |
---|
316 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setJobName(java.lang.String)">setJobName</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> name)</CODE> |
---|
317 | |
---|
318 | <BR> |
---|
319 | Set the user-specified job name.</TD> |
---|
320 | </TR> |
---|
321 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
322 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
323 | <CODE> void</CODE></FONT></TD> |
---|
324 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setMapOutputKeyClass(java.lang.Class)">setMapOutputKeyClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> theClass)</CODE> |
---|
325 | |
---|
326 | <BR> |
---|
327 | Set the key class for the map output data.</TD> |
---|
328 | </TR> |
---|
329 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
330 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
331 | <CODE> void</CODE></FONT></TD> |
---|
332 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setMapOutputValueClass(java.lang.Class)">setMapOutputValueClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> theClass)</CODE> |
---|
333 | |
---|
334 | <BR> |
---|
335 | Set the value class for the map output data.</TD> |
---|
336 | </TR> |
---|
337 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
338 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
339 | <CODE> void</CODE></FONT></TD> |
---|
340 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setMapperClass(java.lang.Class)">setMapperClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/Mapper.html" title="class in org.apache.hadoop.mapreduce">Mapper</A>> cls)</CODE> |
---|
341 | |
---|
342 | <BR> |
---|
343 | Set the <A HREF="../../../../org/apache/hadoop/mapreduce/Mapper.html" title="class in org.apache.hadoop.mapreduce"><CODE>Mapper</CODE></A> for the job.</TD> |
---|
344 | </TR> |
---|
345 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
346 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
347 | <CODE> void</CODE></FONT></TD> |
---|
348 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setNumReduceTasks(int)">setNumReduceTasks</A></B>(int tasks)</CODE> |
---|
349 | |
---|
350 | <BR> |
---|
351 | Set the number of reduce tasks for the job.</TD> |
---|
352 | </TR> |
---|
353 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
354 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
355 | <CODE> void</CODE></FONT></TD> |
---|
356 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setOutputFormatClass(java.lang.Class)">setOutputFormatClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/OutputFormat.html" title="class in org.apache.hadoop.mapreduce">OutputFormat</A>> cls)</CODE> |
---|
357 | |
---|
358 | <BR> |
---|
359 | Set the <A HREF="../../../../org/apache/hadoop/mapreduce/OutputFormat.html" title="class in org.apache.hadoop.mapreduce"><CODE>OutputFormat</CODE></A> for the job.</TD> |
---|
360 | </TR> |
---|
361 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
362 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
363 | <CODE> void</CODE></FONT></TD> |
---|
364 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setOutputKeyClass(java.lang.Class)">setOutputKeyClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> theClass)</CODE> |
---|
365 | |
---|
366 | <BR> |
---|
367 | Set the key class for the job output data.</TD> |
---|
368 | </TR> |
---|
369 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
370 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
371 | <CODE> void</CODE></FONT></TD> |
---|
372 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setOutputValueClass(java.lang.Class)">setOutputValueClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> theClass)</CODE> |
---|
373 | |
---|
374 | <BR> |
---|
375 | Set the value class for job outputs.</TD> |
---|
376 | </TR> |
---|
377 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
378 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
379 | <CODE> void</CODE></FONT></TD> |
---|
380 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setPartitionerClass(java.lang.Class)">setPartitionerClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/Partitioner.html" title="class in org.apache.hadoop.mapreduce">Partitioner</A>> cls)</CODE> |
---|
381 | |
---|
382 | <BR> |
---|
383 | Set the <A HREF="../../../../org/apache/hadoop/mapreduce/Partitioner.html" title="class in org.apache.hadoop.mapreduce"><CODE>Partitioner</CODE></A> for the job.</TD> |
---|
384 | </TR> |
---|
385 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
386 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
387 | <CODE> void</CODE></FONT></TD> |
---|
388 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setReducerClass(java.lang.Class)">setReducerClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html" title="class in org.apache.hadoop.mapreduce">Reducer</A>> cls)</CODE> |
---|
389 | |
---|
390 | <BR> |
---|
391 | Set the <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html" title="class in org.apache.hadoop.mapreduce"><CODE>Reducer</CODE></A> for the job.</TD> |
---|
392 | </TR> |
---|
393 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
394 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
395 | <CODE> void</CODE></FONT></TD> |
---|
396 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setSortComparatorClass(java.lang.Class)">setSortComparatorClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io">RawComparator</A>> cls)</CODE> |
---|
397 | |
---|
398 | <BR> |
---|
399 | Define the comparator that controls how the keys are sorted before they |
---|
400 | are passed to the <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html" title="class in org.apache.hadoop.mapreduce"><CODE>Reducer</CODE></A>.</TD> |
---|
401 | </TR> |
---|
402 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
403 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
404 | <CODE> void</CODE></FONT></TD> |
---|
405 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#setWorkingDirectory(org.apache.hadoop.fs.Path)">setWorkingDirectory</A></B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dir)</CODE> |
---|
406 | |
---|
407 | <BR> |
---|
408 | Set the current working directory for the default file system.</TD> |
---|
409 | </TR> |
---|
410 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
411 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
412 | <CODE> void</CODE></FONT></TD> |
---|
413 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#submit()">submit</A></B>()</CODE> |
---|
414 | |
---|
415 | <BR> |
---|
416 | Submit the job to the cluster and return immediately.</TD> |
---|
417 | </TR> |
---|
418 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
419 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
420 | <CODE> boolean</CODE></FONT></TD> |
---|
421 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapreduce/Job.html#waitForCompletion(boolean)">waitForCompletion</A></B>(boolean verbose)</CODE> |
---|
422 | |
---|
423 | <BR> |
---|
424 | Submit the job to the cluster and wait for it to finish.</TD> |
---|
425 | </TR> |
---|
426 | </TABLE> |
---|
427 | <A NAME="methods_inherited_from_class_org.apache.hadoop.mapreduce.JobContext"><!-- --></A> |
---|
428 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
429 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
430 | <TH ALIGN="left"><B>Methods inherited from class org.apache.hadoop.mapreduce.<A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A></B></TH> |
---|
431 | </TR> |
---|
432 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
433 | <TD><CODE><A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getCombinerClass()">getCombinerClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getConfiguration()">getConfiguration</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getGroupingComparator()">getGroupingComparator</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getInputFormatClass()">getInputFormatClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getJobID()">getJobID</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getJobName()">getJobName</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getMapOutputKeyClass()">getMapOutputKeyClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getMapOutputValueClass()">getMapOutputValueClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getMapperClass()">getMapperClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getNumReduceTasks()">getNumReduceTasks</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getOutputFormatClass()">getOutputFormatClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getOutputKeyClass()">getOutputKeyClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getOutputValueClass()">getOutputValueClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getPartitionerClass()">getPartitionerClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getReducerClass()">getReducerClass</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getSortComparator()">getSortComparator</A>, <A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getWorkingDirectory()">getWorkingDirectory</A></CODE></TD> |
---|
434 | </TR> |
---|
435 | </TABLE> |
---|
436 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
437 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
438 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
439 | <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> |
---|
440 | </TR> |
---|
441 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
442 | <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> |
---|
443 | </TR> |
---|
444 | </TABLE> |
---|
445 | |
---|
446 | <P> |
---|
447 | |
---|
448 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
449 | |
---|
450 | <A NAME="constructor_detail"><!-- --></A> |
---|
451 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
452 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
453 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
454 | <B>Constructor Detail</B></FONT></TH> |
---|
455 | </TR> |
---|
456 | </TABLE> |
---|
457 | |
---|
458 | <A NAME="Job()"><!-- --></A><H3> |
---|
459 | Job</H3> |
---|
460 | <PRE> |
---|
461 | public <B>Job</B>() |
---|
462 | 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> |
---|
463 | <DL> |
---|
464 | <DL> |
---|
465 | |
---|
466 | <DT><B>Throws:</B> |
---|
467 | <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> |
---|
468 | </DL> |
---|
469 | <HR> |
---|
470 | |
---|
471 | <A NAME="Job(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
472 | Job</H3> |
---|
473 | <PRE> |
---|
474 | public <B>Job</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf) |
---|
475 | 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> |
---|
476 | <DL> |
---|
477 | <DL> |
---|
478 | |
---|
479 | <DT><B>Throws:</B> |
---|
480 | <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> |
---|
481 | </DL> |
---|
482 | <HR> |
---|
483 | |
---|
484 | <A NAME="Job(org.apache.hadoop.conf.Configuration, java.lang.String)"><!-- --></A><H3> |
---|
485 | Job</H3> |
---|
486 | <PRE> |
---|
487 | public <B>Job</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
488 | <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> jobName) |
---|
489 | 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> |
---|
490 | <DL> |
---|
491 | <DL> |
---|
492 | |
---|
493 | <DT><B>Throws:</B> |
---|
494 | <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> |
---|
495 | </DL> |
---|
496 | |
---|
497 | <!-- ============ METHOD DETAIL ========== --> |
---|
498 | |
---|
499 | <A NAME="method_detail"><!-- --></A> |
---|
500 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
501 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
502 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
503 | <B>Method Detail</B></FONT></TH> |
---|
504 | </TR> |
---|
505 | </TABLE> |
---|
506 | |
---|
507 | <A NAME="setNumReduceTasks(int)"><!-- --></A><H3> |
---|
508 | setNumReduceTasks</H3> |
---|
509 | <PRE> |
---|
510 | public void <B>setNumReduceTasks</B>(int tasks) |
---|
511 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
512 | <DL> |
---|
513 | <DD>Set the number of reduce tasks for the job. |
---|
514 | <P> |
---|
515 | <DD><DL> |
---|
516 | <DT><B>Parameters:</B><DD><CODE>tasks</CODE> - the number of reduce tasks |
---|
517 | <DT><B>Throws:</B> |
---|
518 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
519 | </DD> |
---|
520 | </DL> |
---|
521 | <HR> |
---|
522 | |
---|
523 | <A NAME="setWorkingDirectory(org.apache.hadoop.fs.Path)"><!-- --></A><H3> |
---|
524 | setWorkingDirectory</H3> |
---|
525 | <PRE> |
---|
526 | public void <B>setWorkingDirectory</B>(<A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> dir) |
---|
527 | 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> |
---|
528 | <DL> |
---|
529 | <DD>Set the current working directory for the default file system. |
---|
530 | <P> |
---|
531 | <DD><DL> |
---|
532 | <DT><B>Parameters:</B><DD><CODE>dir</CODE> - the new current working directory. |
---|
533 | <DT><B>Throws:</B> |
---|
534 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted |
---|
535 | <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> |
---|
536 | </DD> |
---|
537 | </DL> |
---|
538 | <HR> |
---|
539 | |
---|
540 | <A NAME="setInputFormatClass(java.lang.Class)"><!-- --></A><H3> |
---|
541 | setInputFormatClass</H3> |
---|
542 | <PRE> |
---|
543 | public void <B>setInputFormatClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce">InputFormat</A>> cls) |
---|
544 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
545 | <DL> |
---|
546 | <DD>Set the <A HREF="../../../../org/apache/hadoop/mapreduce/InputFormat.html" title="class in org.apache.hadoop.mapreduce"><CODE>InputFormat</CODE></A> for the job. |
---|
547 | <P> |
---|
548 | <DD><DL> |
---|
549 | <DT><B>Parameters:</B><DD><CODE>cls</CODE> - the <code>InputFormat</code> to use |
---|
550 | <DT><B>Throws:</B> |
---|
551 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
552 | </DD> |
---|
553 | </DL> |
---|
554 | <HR> |
---|
555 | |
---|
556 | <A NAME="setOutputFormatClass(java.lang.Class)"><!-- --></A><H3> |
---|
557 | setOutputFormatClass</H3> |
---|
558 | <PRE> |
---|
559 | public void <B>setOutputFormatClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/OutputFormat.html" title="class in org.apache.hadoop.mapreduce">OutputFormat</A>> cls) |
---|
560 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
561 | <DL> |
---|
562 | <DD>Set the <A HREF="../../../../org/apache/hadoop/mapreduce/OutputFormat.html" title="class in org.apache.hadoop.mapreduce"><CODE>OutputFormat</CODE></A> for the job. |
---|
563 | <P> |
---|
564 | <DD><DL> |
---|
565 | <DT><B>Parameters:</B><DD><CODE>cls</CODE> - the <code>OutputFormat</code> to use |
---|
566 | <DT><B>Throws:</B> |
---|
567 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
568 | </DD> |
---|
569 | </DL> |
---|
570 | <HR> |
---|
571 | |
---|
572 | <A NAME="setMapperClass(java.lang.Class)"><!-- --></A><H3> |
---|
573 | setMapperClass</H3> |
---|
574 | <PRE> |
---|
575 | public void <B>setMapperClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/Mapper.html" title="class in org.apache.hadoop.mapreduce">Mapper</A>> cls) |
---|
576 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
577 | <DL> |
---|
578 | <DD>Set the <A HREF="../../../../org/apache/hadoop/mapreduce/Mapper.html" title="class in org.apache.hadoop.mapreduce"><CODE>Mapper</CODE></A> for the job. |
---|
579 | <P> |
---|
580 | <DD><DL> |
---|
581 | <DT><B>Parameters:</B><DD><CODE>cls</CODE> - the <code>Mapper</code> to use |
---|
582 | <DT><B>Throws:</B> |
---|
583 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
584 | </DD> |
---|
585 | </DL> |
---|
586 | <HR> |
---|
587 | |
---|
588 | <A NAME="setJarByClass(java.lang.Class)"><!-- --></A><H3> |
---|
589 | setJarByClass</H3> |
---|
590 | <PRE> |
---|
591 | public void <B>setJarByClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls)</PRE> |
---|
592 | <DL> |
---|
593 | <DD>Set the Jar by finding where a given class came from. |
---|
594 | <P> |
---|
595 | <DD><DL> |
---|
596 | <DT><B>Parameters:</B><DD><CODE>cls</CODE> - the example class</DL> |
---|
597 | </DD> |
---|
598 | </DL> |
---|
599 | <HR> |
---|
600 | |
---|
601 | <A NAME="getJar()"><!-- --></A><H3> |
---|
602 | getJar</H3> |
---|
603 | <PRE> |
---|
604 | public <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>getJar</B>()</PRE> |
---|
605 | <DL> |
---|
606 | <DD>Get the pathname of the job's jar. |
---|
607 | <P> |
---|
608 | <DD><DL> |
---|
609 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html#getJar()">getJar</A></CODE> in class <CODE><A HREF="../../../../org/apache/hadoop/mapreduce/JobContext.html" title="class in org.apache.hadoop.mapreduce">JobContext</A></CODE></DL> |
---|
610 | </DD> |
---|
611 | <DD><DL> |
---|
612 | |
---|
613 | <DT><B>Returns:</B><DD>the pathname</DL> |
---|
614 | </DD> |
---|
615 | </DL> |
---|
616 | <HR> |
---|
617 | |
---|
618 | <A NAME="setCombinerClass(java.lang.Class)"><!-- --></A><H3> |
---|
619 | setCombinerClass</H3> |
---|
620 | <PRE> |
---|
621 | public void <B>setCombinerClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html" title="class in org.apache.hadoop.mapreduce">Reducer</A>> cls) |
---|
622 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
623 | <DL> |
---|
624 | <DD>Set the combiner class for the job. |
---|
625 | <P> |
---|
626 | <DD><DL> |
---|
627 | <DT><B>Parameters:</B><DD><CODE>cls</CODE> - the combiner to use |
---|
628 | <DT><B>Throws:</B> |
---|
629 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
630 | </DD> |
---|
631 | </DL> |
---|
632 | <HR> |
---|
633 | |
---|
634 | <A NAME="setReducerClass(java.lang.Class)"><!-- --></A><H3> |
---|
635 | setReducerClass</H3> |
---|
636 | <PRE> |
---|
637 | public void <B>setReducerClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html" title="class in org.apache.hadoop.mapreduce">Reducer</A>> cls) |
---|
638 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
639 | <DL> |
---|
640 | <DD>Set the <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html" title="class in org.apache.hadoop.mapreduce"><CODE>Reducer</CODE></A> for the job. |
---|
641 | <P> |
---|
642 | <DD><DL> |
---|
643 | <DT><B>Parameters:</B><DD><CODE>cls</CODE> - the <code>Reducer</code> to use |
---|
644 | <DT><B>Throws:</B> |
---|
645 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
646 | </DD> |
---|
647 | </DL> |
---|
648 | <HR> |
---|
649 | |
---|
650 | <A NAME="setPartitionerClass(java.lang.Class)"><!-- --></A><H3> |
---|
651 | setPartitionerClass</H3> |
---|
652 | <PRE> |
---|
653 | public void <B>setPartitionerClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/mapreduce/Partitioner.html" title="class in org.apache.hadoop.mapreduce">Partitioner</A>> cls) |
---|
654 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
655 | <DL> |
---|
656 | <DD>Set the <A HREF="../../../../org/apache/hadoop/mapreduce/Partitioner.html" title="class in org.apache.hadoop.mapreduce"><CODE>Partitioner</CODE></A> for the job. |
---|
657 | <P> |
---|
658 | <DD><DL> |
---|
659 | <DT><B>Parameters:</B><DD><CODE>cls</CODE> - the <code>Partitioner</code> to use |
---|
660 | <DT><B>Throws:</B> |
---|
661 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
662 | </DD> |
---|
663 | </DL> |
---|
664 | <HR> |
---|
665 | |
---|
666 | <A NAME="setMapOutputKeyClass(java.lang.Class)"><!-- --></A><H3> |
---|
667 | setMapOutputKeyClass</H3> |
---|
668 | <PRE> |
---|
669 | public void <B>setMapOutputKeyClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> theClass) |
---|
670 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
671 | <DL> |
---|
672 | <DD>Set the key class for the map output data. This allows the user to |
---|
673 | specify the map output key class to be different than the final output |
---|
674 | value class. |
---|
675 | <P> |
---|
676 | <DD><DL> |
---|
677 | <DT><B>Parameters:</B><DD><CODE>theClass</CODE> - the map output key class. |
---|
678 | <DT><B>Throws:</B> |
---|
679 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
680 | </DD> |
---|
681 | </DL> |
---|
682 | <HR> |
---|
683 | |
---|
684 | <A NAME="setMapOutputValueClass(java.lang.Class)"><!-- --></A><H3> |
---|
685 | setMapOutputValueClass</H3> |
---|
686 | <PRE> |
---|
687 | public void <B>setMapOutputValueClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> theClass) |
---|
688 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
689 | <DL> |
---|
690 | <DD>Set the value class for the map output data. This allows the user to |
---|
691 | specify the map output value class to be different than the final output |
---|
692 | value class. |
---|
693 | <P> |
---|
694 | <DD><DL> |
---|
695 | <DT><B>Parameters:</B><DD><CODE>theClass</CODE> - the map output value class. |
---|
696 | <DT><B>Throws:</B> |
---|
697 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
698 | </DD> |
---|
699 | </DL> |
---|
700 | <HR> |
---|
701 | |
---|
702 | <A NAME="setOutputKeyClass(java.lang.Class)"><!-- --></A><H3> |
---|
703 | setOutputKeyClass</H3> |
---|
704 | <PRE> |
---|
705 | public void <B>setOutputKeyClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> theClass) |
---|
706 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
707 | <DL> |
---|
708 | <DD>Set the key class for the job output data. |
---|
709 | <P> |
---|
710 | <DD><DL> |
---|
711 | <DT><B>Parameters:</B><DD><CODE>theClass</CODE> - the key class for the job output data. |
---|
712 | <DT><B>Throws:</B> |
---|
713 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
714 | </DD> |
---|
715 | </DL> |
---|
716 | <HR> |
---|
717 | |
---|
718 | <A NAME="setOutputValueClass(java.lang.Class)"><!-- --></A><H3> |
---|
719 | setOutputValueClass</H3> |
---|
720 | <PRE> |
---|
721 | public void <B>setOutputValueClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> theClass) |
---|
722 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
723 | <DL> |
---|
724 | <DD>Set the value class for job outputs. |
---|
725 | <P> |
---|
726 | <DD><DL> |
---|
727 | <DT><B>Parameters:</B><DD><CODE>theClass</CODE> - the value class for job outputs. |
---|
728 | <DT><B>Throws:</B> |
---|
729 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
730 | </DD> |
---|
731 | </DL> |
---|
732 | <HR> |
---|
733 | |
---|
734 | <A NAME="setSortComparatorClass(java.lang.Class)"><!-- --></A><H3> |
---|
735 | setSortComparatorClass</H3> |
---|
736 | <PRE> |
---|
737 | public void <B>setSortComparatorClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io">RawComparator</A>> cls) |
---|
738 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
739 | <DL> |
---|
740 | <DD>Define the comparator that controls how the keys are sorted before they |
---|
741 | are passed to the <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html" title="class in org.apache.hadoop.mapreduce"><CODE>Reducer</CODE></A>. |
---|
742 | <P> |
---|
743 | <DD><DL> |
---|
744 | <DT><B>Parameters:</B><DD><CODE>cls</CODE> - the raw comparator |
---|
745 | <DT><B>Throws:</B> |
---|
746 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
747 | </DD> |
---|
748 | </DL> |
---|
749 | <HR> |
---|
750 | |
---|
751 | <A NAME="setGroupingComparatorClass(java.lang.Class)"><!-- --></A><H3> |
---|
752 | setGroupingComparatorClass</H3> |
---|
753 | <PRE> |
---|
754 | public void <B>setGroupingComparatorClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/RawComparator.html" title="interface in org.apache.hadoop.io">RawComparator</A>> cls) |
---|
755 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
756 | <DL> |
---|
757 | <DD>Define the comparator that controls which keys are grouped together |
---|
758 | for a single call to |
---|
759 | <A HREF="../../../../org/apache/hadoop/mapreduce/Reducer.html#reduce(KEYIN, java.lang.Iterable, org.apache.hadoop.mapreduce.Reducer.Context)"><CODE>Reducer.reduce(Object, Iterable, |
---|
760 | org.apache.hadoop.mapreduce.Reducer.Context)</CODE></A> |
---|
761 | <P> |
---|
762 | <DD><DL> |
---|
763 | <DT><B>Parameters:</B><DD><CODE>cls</CODE> - the raw comparator to use |
---|
764 | <DT><B>Throws:</B> |
---|
765 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
766 | </DD> |
---|
767 | </DL> |
---|
768 | <HR> |
---|
769 | |
---|
770 | <A NAME="setJobName(java.lang.String)"><!-- --></A><H3> |
---|
771 | setJobName</H3> |
---|
772 | <PRE> |
---|
773 | public void <B>setJobName</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> name) |
---|
774 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
---|
775 | <DL> |
---|
776 | <DD>Set the user-specified job name. |
---|
777 | <P> |
---|
778 | <DD><DL> |
---|
779 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - the job's new name. |
---|
780 | <DT><B>Throws:</B> |
---|
781 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the job is submitted</DL> |
---|
782 | </DD> |
---|
783 | </DL> |
---|
784 | <HR> |
---|
785 | |
---|
786 | <A NAME="getTrackingURL()"><!-- --></A><H3> |
---|
787 | getTrackingURL</H3> |
---|
788 | <PRE> |
---|
789 | public <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>getTrackingURL</B>()</PRE> |
---|
790 | <DL> |
---|
791 | <DD>Get the URL where some job progress information will be displayed. |
---|
792 | <P> |
---|
793 | <DD><DL> |
---|
794 | |
---|
795 | <DT><B>Returns:</B><DD>the URL where some job progress information will be displayed.</DL> |
---|
796 | </DD> |
---|
797 | </DL> |
---|
798 | <HR> |
---|
799 | |
---|
800 | <A NAME="mapProgress()"><!-- --></A><H3> |
---|
801 | mapProgress</H3> |
---|
802 | <PRE> |
---|
803 | public float <B>mapProgress</B>() |
---|
804 | 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> |
---|
805 | <DL> |
---|
806 | <DD>Get the <i>progress</i> of the job's map-tasks, as a float between 0.0 |
---|
807 | and 1.0. When all map tasks have completed, the function returns 1.0. |
---|
808 | <P> |
---|
809 | <DD><DL> |
---|
810 | |
---|
811 | <DT><B>Returns:</B><DD>the progress of the job's map-tasks. |
---|
812 | <DT><B>Throws:</B> |
---|
813 | <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> |
---|
814 | </DD> |
---|
815 | </DL> |
---|
816 | <HR> |
---|
817 | |
---|
818 | <A NAME="reduceProgress()"><!-- --></A><H3> |
---|
819 | reduceProgress</H3> |
---|
820 | <PRE> |
---|
821 | public float <B>reduceProgress</B>() |
---|
822 | 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> |
---|
823 | <DL> |
---|
824 | <DD>Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0 |
---|
825 | and 1.0. When all reduce tasks have completed, the function returns 1.0. |
---|
826 | <P> |
---|
827 | <DD><DL> |
---|
828 | |
---|
829 | <DT><B>Returns:</B><DD>the progress of the job's reduce-tasks. |
---|
830 | <DT><B>Throws:</B> |
---|
831 | <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> |
---|
832 | </DD> |
---|
833 | </DL> |
---|
834 | <HR> |
---|
835 | |
---|
836 | <A NAME="isComplete()"><!-- --></A><H3> |
---|
837 | isComplete</H3> |
---|
838 | <PRE> |
---|
839 | public boolean <B>isComplete</B>() |
---|
840 | 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> |
---|
841 | <DL> |
---|
842 | <DD>Check if the job is finished or not. |
---|
843 | This is a non-blocking call. |
---|
844 | <P> |
---|
845 | <DD><DL> |
---|
846 | |
---|
847 | <DT><B>Returns:</B><DD><code>true</code> if the job is complete, else <code>false</code>. |
---|
848 | <DT><B>Throws:</B> |
---|
849 | <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> |
---|
850 | </DD> |
---|
851 | </DL> |
---|
852 | <HR> |
---|
853 | |
---|
854 | <A NAME="isSuccessful()"><!-- --></A><H3> |
---|
855 | isSuccessful</H3> |
---|
856 | <PRE> |
---|
857 | public boolean <B>isSuccessful</B>() |
---|
858 | 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> |
---|
859 | <DL> |
---|
860 | <DD>Check if the job completed successfully. |
---|
861 | <P> |
---|
862 | <DD><DL> |
---|
863 | |
---|
864 | <DT><B>Returns:</B><DD><code>true</code> if the job succeeded, else <code>false</code>. |
---|
865 | <DT><B>Throws:</B> |
---|
866 | <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> |
---|
867 | </DD> |
---|
868 | </DL> |
---|
869 | <HR> |
---|
870 | |
---|
871 | <A NAME="killJob()"><!-- --></A><H3> |
---|
872 | killJob</H3> |
---|
873 | <PRE> |
---|
874 | public void <B>killJob</B>() |
---|
875 | 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> |
---|
876 | <DL> |
---|
877 | <DD>Kill the running job. Blocks until all job tasks have been |
---|
878 | killed as well. If the job is no longer running, it simply returns. |
---|
879 | <P> |
---|
880 | <DD><DL> |
---|
881 | |
---|
882 | <DT><B>Throws:</B> |
---|
883 | <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> |
---|
884 | </DD> |
---|
885 | </DL> |
---|
886 | <HR> |
---|
887 | |
---|
888 | <A NAME="getTaskCompletionEvents(int)"><!-- --></A><H3> |
---|
889 | getTaskCompletionEvents</H3> |
---|
890 | <PRE> |
---|
891 | public <A HREF="../../../../org/apache/hadoop/mapred/TaskCompletionEvent.html" title="class in org.apache.hadoop.mapred">TaskCompletionEvent</A>[] <B>getTaskCompletionEvents</B>(int startFrom) |
---|
892 | 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> |
---|
893 | <DL> |
---|
894 | <DD>Get events indicating completion (success/failure) of component tasks. |
---|
895 | <P> |
---|
896 | <DD><DL> |
---|
897 | <DT><B>Parameters:</B><DD><CODE>startFrom</CODE> - index to start fetching events from |
---|
898 | <DT><B>Returns:</B><DD>an array of <A HREF="../../../../org/apache/hadoop/mapred/TaskCompletionEvent.html" title="class in org.apache.hadoop.mapred"><CODE>TaskCompletionEvent</CODE></A>s |
---|
899 | <DT><B>Throws:</B> |
---|
900 | <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> |
---|
901 | </DD> |
---|
902 | </DL> |
---|
903 | <HR> |
---|
904 | |
---|
905 | <A NAME="killTask(org.apache.hadoop.mapreduce.TaskAttemptID)"><!-- --></A><H3> |
---|
906 | killTask</H3> |
---|
907 | <PRE> |
---|
908 | public void <B>killTask</B>(<A HREF="../../../../org/apache/hadoop/mapreduce/TaskAttemptID.html" title="class in org.apache.hadoop.mapreduce">TaskAttemptID</A> taskId) |
---|
909 | 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> |
---|
910 | <DL> |
---|
911 | <DD>Kill indicated task attempt. |
---|
912 | <P> |
---|
913 | <DD><DL> |
---|
914 | <DT><B>Parameters:</B><DD><CODE>taskId</CODE> - the id of the task to be terminated. |
---|
915 | <DT><B>Throws:</B> |
---|
916 | <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> |
---|
917 | </DD> |
---|
918 | </DL> |
---|
919 | <HR> |
---|
920 | |
---|
921 | <A NAME="failTask(org.apache.hadoop.mapreduce.TaskAttemptID)"><!-- --></A><H3> |
---|
922 | failTask</H3> |
---|
923 | <PRE> |
---|
924 | public void <B>failTask</B>(<A HREF="../../../../org/apache/hadoop/mapreduce/TaskAttemptID.html" title="class in org.apache.hadoop.mapreduce">TaskAttemptID</A> taskId) |
---|
925 | 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> |
---|
926 | <DL> |
---|
927 | <DD>Fail indicated task attempt. |
---|
928 | <P> |
---|
929 | <DD><DL> |
---|
930 | <DT><B>Parameters:</B><DD><CODE>taskId</CODE> - the id of the task to be terminated. |
---|
931 | <DT><B>Throws:</B> |
---|
932 | <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> |
---|
933 | </DD> |
---|
934 | </DL> |
---|
935 | <HR> |
---|
936 | |
---|
937 | <A NAME="getCounters()"><!-- --></A><H3> |
---|
938 | getCounters</H3> |
---|
939 | <PRE> |
---|
940 | public <A HREF="../../../../org/apache/hadoop/mapreduce/Counters.html" title="class in org.apache.hadoop.mapreduce">Counters</A> <B>getCounters</B>() |
---|
941 | 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> |
---|
942 | <DL> |
---|
943 | <DD>Gets the counters for this job. |
---|
944 | <P> |
---|
945 | <DD><DL> |
---|
946 | |
---|
947 | <DT><B>Returns:</B><DD>the counters for this job. |
---|
948 | <DT><B>Throws:</B> |
---|
949 | <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> |
---|
950 | </DD> |
---|
951 | </DL> |
---|
952 | <HR> |
---|
953 | |
---|
954 | <A NAME="submit()"><!-- --></A><H3> |
---|
955 | submit</H3> |
---|
956 | <PRE> |
---|
957 | public void <B>submit</B>() |
---|
958 | 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>, |
---|
959 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A>, |
---|
960 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></PRE> |
---|
961 | <DL> |
---|
962 | <DD>Submit the job to the cluster and return immediately. |
---|
963 | <P> |
---|
964 | <DD><DL> |
---|
965 | |
---|
966 | <DT><B>Throws:</B> |
---|
967 | <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> |
---|
968 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE> |
---|
969 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></CODE></DL> |
---|
970 | </DD> |
---|
971 | </DL> |
---|
972 | <HR> |
---|
973 | |
---|
974 | <A NAME="waitForCompletion(boolean)"><!-- --></A><H3> |
---|
975 | waitForCompletion</H3> |
---|
976 | <PRE> |
---|
977 | public boolean <B>waitForCompletion</B>(boolean verbose) |
---|
978 | 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>, |
---|
979 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A>, |
---|
980 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></PRE> |
---|
981 | <DL> |
---|
982 | <DD>Submit the job to the cluster and wait for it to finish. |
---|
983 | <P> |
---|
984 | <DD><DL> |
---|
985 | <DT><B>Parameters:</B><DD><CODE>verbose</CODE> - print the progress to the user |
---|
986 | <DT><B>Returns:</B><DD>true if the job succeeded |
---|
987 | <DT><B>Throws:</B> |
---|
988 | <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> - thrown if the communication with the |
---|
989 | <code>JobTracker</code> is lost |
---|
990 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE> |
---|
991 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></CODE></DL> |
---|
992 | </DD> |
---|
993 | </DL> |
---|
994 | <!-- ========= END OF CLASS DATA ========= --> |
---|
995 | <HR> |
---|
996 | |
---|
997 | |
---|
998 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
999 | <A NAME="navbar_bottom"><!-- --></A> |
---|
1000 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
1001 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
1002 | <TR> |
---|
1003 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
1004 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
1005 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
1006 | <TR ALIGN="center" VALIGN="top"> |
---|
1007 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
1008 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
1009 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
1010 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Job.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
1011 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
1012 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
1013 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
1014 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
1015 | </TR> |
---|
1016 | </TABLE> |
---|
1017 | </TD> |
---|
1018 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
1019 | </EM> |
---|
1020 | </TD> |
---|
1021 | </TR> |
---|
1022 | |
---|
1023 | <TR> |
---|
1024 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
1025 | <A HREF="../../../../org/apache/hadoop/mapreduce/InputSplit.html" title="class in org.apache.hadoop.mapreduce"><B>PREV CLASS</B></A> |
---|
1026 | <A HREF="../../../../org/apache/hadoop/mapreduce/Job.JobState.html" title="enum in org.apache.hadoop.mapreduce"><B>NEXT CLASS</B></A></FONT></TD> |
---|
1027 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
1028 | <A HREF="../../../../index.html?org/apache/hadoop/mapreduce/Job.html" target="_top"><B>FRAMES</B></A> |
---|
1029 | <A HREF="Job.html" target="_top"><B>NO FRAMES</B></A> |
---|
1030 | <SCRIPT type="text/javascript"> |
---|
1031 | <!-- |
---|
1032 | if(window==top) { |
---|
1033 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
1034 | } |
---|
1035 | //--> |
---|
1036 | </SCRIPT> |
---|
1037 | <NOSCRIPT> |
---|
1038 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
1039 | </NOSCRIPT> |
---|
1040 | |
---|
1041 | |
---|
1042 | </FONT></TD> |
---|
1043 | </TR> |
---|
1044 | <TR> |
---|
1045 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
1046 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_org.apache.hadoop.mapreduce.JobContext">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
1047 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
1048 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
1049 | </TR> |
---|
1050 | </TABLE> |
---|
1051 | <A NAME="skip-navbar_bottom"></A> |
---|
1052 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
1053 | |
---|
1054 | <HR> |
---|
1055 | Copyright © 2009 The Apache Software Foundation |
---|
1056 | </BODY> |
---|
1057 | </HTML> |
---|