[120] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!--NewPage--> |
---|
| 3 | <HTML> |
---|
| 4 | <HEAD> |
---|
| 5 | <!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:56:57 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | SkipBadRecords (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="SkipBadRecords (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/SkipBadRecords.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/SequenceFileRecordReader.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptContext.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/SkipBadRecords.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="SkipBadRecords.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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.hadoop.mapred</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class SkipBadRecords</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.SkipBadRecords</B> |
---|
| 97 | </PRE> |
---|
| 98 | <HR> |
---|
| 99 | <DL> |
---|
| 100 | <DT><PRE>public class <B>SkipBadRecords</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 | Utility class for skip bad records functionality. It contains various |
---|
| 105 | settings related to skipping of bad records. |
---|
| 106 | |
---|
| 107 | <p>Hadoop provides an optional mode of execution in which the bad records |
---|
| 108 | are detected and skipped in further attempts. |
---|
| 109 | |
---|
| 110 | <p>This feature can be used when map/reduce tasks crashes deterministically on |
---|
| 111 | certain input. This happens due to bugs in the map/reduce function. The usual |
---|
| 112 | course would be to fix these bugs. But sometimes this is not possible; |
---|
| 113 | perhaps the bug is in third party libraries for which the source code is |
---|
| 114 | not available. Due to this, the task never reaches to completion even with |
---|
| 115 | multiple attempts and complete data for that task is lost.</p> |
---|
| 116 | |
---|
| 117 | <p>With this feature, only a small portion of data is lost surrounding |
---|
| 118 | the bad record, which may be acceptable for some user applications. |
---|
| 119 | see <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#setMapperMaxSkipRecords(org.apache.hadoop.conf.Configuration, long)"><CODE>setMapperMaxSkipRecords(Configuration, long)</CODE></A></p> |
---|
| 120 | |
---|
| 121 | <p>The skipping mode gets kicked off after certain no of failures |
---|
| 122 | see <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#setAttemptsToStartSkipping(org.apache.hadoop.conf.Configuration, int)"><CODE>setAttemptsToStartSkipping(Configuration, int)</CODE></A></p> |
---|
| 123 | |
---|
| 124 | <p>In the skipping mode, the map/reduce task maintains the record range which |
---|
| 125 | is getting processed at all times. Before giving the input to the |
---|
| 126 | map/reduce function, it sends this record range to the Task tracker. |
---|
| 127 | If task crashes, the Task tracker knows which one was the last reported |
---|
| 128 | range. On further attempts that range get skipped.</p> |
---|
| 129 | <P> |
---|
| 130 | |
---|
| 131 | <P> |
---|
| 132 | <HR> |
---|
| 133 | |
---|
| 134 | <P> |
---|
| 135 | <!-- =========== FIELD SUMMARY =========== --> |
---|
| 136 | |
---|
| 137 | <A NAME="field_summary"><!-- --></A> |
---|
| 138 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 139 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 140 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 141 | <B>Field Summary</B></FONT></TH> |
---|
| 142 | </TR> |
---|
| 143 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 144 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 145 | <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> |
---|
| 146 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_GROUP">COUNTER_GROUP</A></B></CODE> |
---|
| 147 | |
---|
| 148 | <BR> |
---|
| 149 | Special counters which are written by the application and are |
---|
| 150 | used by the framework for detecting bad records.</TD> |
---|
| 151 | </TR> |
---|
| 152 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 153 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 154 | <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> |
---|
| 155 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_MAP_PROCESSED_RECORDS">COUNTER_MAP_PROCESSED_RECORDS</A></B></CODE> |
---|
| 156 | |
---|
| 157 | <BR> |
---|
| 158 | Number of processed map records.</TD> |
---|
| 159 | </TR> |
---|
| 160 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 161 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 162 | <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> |
---|
| 163 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_REDUCE_PROCESSED_GROUPS">COUNTER_REDUCE_PROCESSED_GROUPS</A></B></CODE> |
---|
| 164 | |
---|
| 165 | <BR> |
---|
| 166 | Number of processed reduce groups.</TD> |
---|
| 167 | </TR> |
---|
| 168 | </TABLE> |
---|
| 169 | |
---|
| 170 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 171 | |
---|
| 172 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 173 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 174 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 175 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 176 | <B>Constructor Summary</B></FONT></TH> |
---|
| 177 | </TR> |
---|
| 178 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 179 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#SkipBadRecords()">SkipBadRecords</A></B>()</CODE> |
---|
| 180 | |
---|
| 181 | <BR> |
---|
| 182 | </TD> |
---|
| 183 | </TR> |
---|
| 184 | </TABLE> |
---|
| 185 | |
---|
| 186 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 187 | |
---|
| 188 | <A NAME="method_summary"><!-- --></A> |
---|
| 189 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 190 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 191 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 192 | <B>Method Summary</B></FONT></TH> |
---|
| 193 | </TR> |
---|
| 194 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 195 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 196 | <CODE>static int</CODE></FONT></TD> |
---|
| 197 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#getAttemptsToStartSkipping(org.apache.hadoop.conf.Configuration)">getAttemptsToStartSkipping</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 198 | |
---|
| 199 | <BR> |
---|
| 200 | Get the number of Task attempts AFTER which skip mode |
---|
| 201 | will be kicked off.</TD> |
---|
| 202 | </TR> |
---|
| 203 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 205 | <CODE>static boolean</CODE></FONT></TD> |
---|
| 206 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#getAutoIncrMapperProcCount(org.apache.hadoop.conf.Configuration)">getAutoIncrMapperProcCount</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 207 | |
---|
| 208 | <BR> |
---|
| 209 | Get the flag which if set to true, |
---|
| 210 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_MAP_PROCESSED_RECORDS"><CODE>COUNTER_MAP_PROCESSED_RECORDS</CODE></A> is incremented |
---|
| 211 | by MapRunner after invoking the map function.</TD> |
---|
| 212 | </TR> |
---|
| 213 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 214 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 215 | <CODE>static boolean</CODE></FONT></TD> |
---|
| 216 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#getAutoIncrReducerProcCount(org.apache.hadoop.conf.Configuration)">getAutoIncrReducerProcCount</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 217 | |
---|
| 218 | <BR> |
---|
| 219 | Get the flag which if set to true, |
---|
| 220 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_REDUCE_PROCESSED_GROUPS"><CODE>COUNTER_REDUCE_PROCESSED_GROUPS</CODE></A> is incremented |
---|
| 221 | by framework after invoking the reduce function.</TD> |
---|
| 222 | </TR> |
---|
| 223 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 224 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 225 | <CODE>static long</CODE></FONT></TD> |
---|
| 226 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#getMapperMaxSkipRecords(org.apache.hadoop.conf.Configuration)">getMapperMaxSkipRecords</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 227 | |
---|
| 228 | <BR> |
---|
| 229 | Get the number of acceptable skip records surrounding the bad record PER |
---|
| 230 | bad record in mapper.</TD> |
---|
| 231 | </TR> |
---|
| 232 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 233 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 234 | <CODE>static long</CODE></FONT></TD> |
---|
| 235 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#getReducerMaxSkipGroups(org.apache.hadoop.conf.Configuration)">getReducerMaxSkipGroups</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 236 | |
---|
| 237 | <BR> |
---|
| 238 | Get the number of acceptable skip groups surrounding the bad group PER |
---|
| 239 | bad group in reducer.</TD> |
---|
| 240 | </TR> |
---|
| 241 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 242 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 243 | <CODE>static <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A></CODE></FONT></TD> |
---|
| 244 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#getSkipOutputPath(org.apache.hadoop.conf.Configuration)">getSkipOutputPath</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
| 245 | |
---|
| 246 | <BR> |
---|
| 247 | Get the directory to which skipped records are written.</TD> |
---|
| 248 | </TR> |
---|
| 249 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 250 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 251 | <CODE>static void</CODE></FONT></TD> |
---|
| 252 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#setAttemptsToStartSkipping(org.apache.hadoop.conf.Configuration, int)">setAttemptsToStartSkipping</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 253 | int attemptsToStartSkipping)</CODE> |
---|
| 254 | |
---|
| 255 | <BR> |
---|
| 256 | Set the number of Task attempts AFTER which skip mode |
---|
| 257 | will be kicked off.</TD> |
---|
| 258 | </TR> |
---|
| 259 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 260 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 261 | <CODE>static void</CODE></FONT></TD> |
---|
| 262 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#setAutoIncrMapperProcCount(org.apache.hadoop.conf.Configuration, boolean)">setAutoIncrMapperProcCount</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 263 | boolean autoIncr)</CODE> |
---|
| 264 | |
---|
| 265 | <BR> |
---|
| 266 | Set the flag which if set to true, |
---|
| 267 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_MAP_PROCESSED_RECORDS"><CODE>COUNTER_MAP_PROCESSED_RECORDS</CODE></A> is incremented |
---|
| 268 | by MapRunner after invoking the map function.</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/SkipBadRecords.html#setAutoIncrReducerProcCount(org.apache.hadoop.conf.Configuration, boolean)">setAutoIncrReducerProcCount</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 274 | boolean autoIncr)</CODE> |
---|
| 275 | |
---|
| 276 | <BR> |
---|
| 277 | Set the flag which if set to true, |
---|
| 278 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_REDUCE_PROCESSED_GROUPS"><CODE>COUNTER_REDUCE_PROCESSED_GROUPS</CODE></A> is incremented |
---|
| 279 | by framework after invoking the reduce function.</TD> |
---|
| 280 | </TR> |
---|
| 281 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 282 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 283 | <CODE>static void</CODE></FONT></TD> |
---|
| 284 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#setMapperMaxSkipRecords(org.apache.hadoop.conf.Configuration, long)">setMapperMaxSkipRecords</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 285 | long maxSkipRecs)</CODE> |
---|
| 286 | |
---|
| 287 | <BR> |
---|
| 288 | Set the number of acceptable skip records surrounding the bad record PER |
---|
| 289 | bad record in mapper.</TD> |
---|
| 290 | </TR> |
---|
| 291 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 292 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 293 | <CODE>static void</CODE></FONT></TD> |
---|
| 294 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#setReducerMaxSkipGroups(org.apache.hadoop.conf.Configuration, long)">setReducerMaxSkipGroups</A></B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 295 | long maxSkipGrps)</CODE> |
---|
| 296 | |
---|
| 297 | <BR> |
---|
| 298 | Set the number of acceptable skip groups surrounding the bad group PER |
---|
| 299 | bad group in reducer.</TD> |
---|
| 300 | </TR> |
---|
| 301 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 302 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 303 | <CODE>static void</CODE></FONT></TD> |
---|
| 304 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#setSkipOutputPath(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path)">setSkipOutputPath</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
| 305 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> path)</CODE> |
---|
| 306 | |
---|
| 307 | <BR> |
---|
| 308 | Set the directory to which skipped records are written.</TD> |
---|
| 309 | </TR> |
---|
| 310 | </TABLE> |
---|
| 311 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 312 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 313 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 314 | <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> |
---|
| 315 | </TR> |
---|
| 316 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 317 | <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> |
---|
| 318 | </TR> |
---|
| 319 | </TABLE> |
---|
| 320 | |
---|
| 321 | <P> |
---|
| 322 | |
---|
| 323 | <!-- ============ FIELD DETAIL =========== --> |
---|
| 324 | |
---|
| 325 | <A NAME="field_detail"><!-- --></A> |
---|
| 326 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 327 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 328 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 329 | <B>Field Detail</B></FONT></TH> |
---|
| 330 | </TR> |
---|
| 331 | </TABLE> |
---|
| 332 | |
---|
| 333 | <A NAME="COUNTER_GROUP"><!-- --></A><H3> |
---|
| 334 | COUNTER_GROUP</H3> |
---|
| 335 | <PRE> |
---|
| 336 | public static final <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>COUNTER_GROUP</B></PRE> |
---|
| 337 | <DL> |
---|
| 338 | <DD>Special counters which are written by the application and are |
---|
| 339 | used by the framework for detecting bad records. For detecting bad records |
---|
| 340 | these counters must be incremented by the application. |
---|
| 341 | <P> |
---|
| 342 | <DL> |
---|
| 343 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.mapred.SkipBadRecords.COUNTER_GROUP">Constant Field Values</A></DL> |
---|
| 344 | </DL> |
---|
| 345 | <HR> |
---|
| 346 | |
---|
| 347 | <A NAME="COUNTER_MAP_PROCESSED_RECORDS"><!-- --></A><H3> |
---|
| 348 | COUNTER_MAP_PROCESSED_RECORDS</H3> |
---|
| 349 | <PRE> |
---|
| 350 | public static final <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>COUNTER_MAP_PROCESSED_RECORDS</B></PRE> |
---|
| 351 | <DL> |
---|
| 352 | <DD>Number of processed map records. |
---|
| 353 | <P> |
---|
| 354 | <DL> |
---|
| 355 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#getAutoIncrMapperProcCount(org.apache.hadoop.conf.Configuration)"><CODE>getAutoIncrMapperProcCount(Configuration)</CODE></A>, |
---|
| 356 | <A HREF="../../../../constant-values.html#org.apache.hadoop.mapred.SkipBadRecords.COUNTER_MAP_PROCESSED_RECORDS">Constant Field Values</A></DL> |
---|
| 357 | </DL> |
---|
| 358 | <HR> |
---|
| 359 | |
---|
| 360 | <A NAME="COUNTER_REDUCE_PROCESSED_GROUPS"><!-- --></A><H3> |
---|
| 361 | COUNTER_REDUCE_PROCESSED_GROUPS</H3> |
---|
| 362 | <PRE> |
---|
| 363 | public static final <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>COUNTER_REDUCE_PROCESSED_GROUPS</B></PRE> |
---|
| 364 | <DL> |
---|
| 365 | <DD>Number of processed reduce groups. |
---|
| 366 | <P> |
---|
| 367 | <DL> |
---|
| 368 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#getAutoIncrReducerProcCount(org.apache.hadoop.conf.Configuration)"><CODE>getAutoIncrReducerProcCount(Configuration)</CODE></A>, |
---|
| 369 | <A HREF="../../../../constant-values.html#org.apache.hadoop.mapred.SkipBadRecords.COUNTER_REDUCE_PROCESSED_GROUPS">Constant Field Values</A></DL> |
---|
| 370 | </DL> |
---|
| 371 | |
---|
| 372 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 373 | |
---|
| 374 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 375 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 376 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 377 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 378 | <B>Constructor Detail</B></FONT></TH> |
---|
| 379 | </TR> |
---|
| 380 | </TABLE> |
---|
| 381 | |
---|
| 382 | <A NAME="SkipBadRecords()"><!-- --></A><H3> |
---|
| 383 | SkipBadRecords</H3> |
---|
| 384 | <PRE> |
---|
| 385 | public <B>SkipBadRecords</B>()</PRE> |
---|
| 386 | <DL> |
---|
| 387 | </DL> |
---|
| 388 | |
---|
| 389 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 390 | |
---|
| 391 | <A NAME="method_detail"><!-- --></A> |
---|
| 392 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 393 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 394 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 395 | <B>Method Detail</B></FONT></TH> |
---|
| 396 | </TR> |
---|
| 397 | </TABLE> |
---|
| 398 | |
---|
| 399 | <A NAME="getAttemptsToStartSkipping(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 400 | getAttemptsToStartSkipping</H3> |
---|
| 401 | <PRE> |
---|
| 402 | public static int <B>getAttemptsToStartSkipping</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 403 | <DL> |
---|
| 404 | <DD>Get the number of Task attempts AFTER which skip mode |
---|
| 405 | will be kicked off. When skip mode is kicked off, the |
---|
| 406 | tasks reports the range of records which it will process |
---|
| 407 | next to the TaskTracker. So that on failures, TT knows which |
---|
| 408 | ones are possibly the bad records. On further executions, |
---|
| 409 | those are skipped. |
---|
| 410 | Default value is 2. |
---|
| 411 | <P> |
---|
| 412 | <DD><DL> |
---|
| 413 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration |
---|
| 414 | <DT><B>Returns:</B><DD>attemptsToStartSkipping no of task attempts</DL> |
---|
| 415 | </DD> |
---|
| 416 | </DL> |
---|
| 417 | <HR> |
---|
| 418 | |
---|
| 419 | <A NAME="setAttemptsToStartSkipping(org.apache.hadoop.conf.Configuration, int)"><!-- --></A><H3> |
---|
| 420 | setAttemptsToStartSkipping</H3> |
---|
| 421 | <PRE> |
---|
| 422 | public static void <B>setAttemptsToStartSkipping</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 423 | int attemptsToStartSkipping)</PRE> |
---|
| 424 | <DL> |
---|
| 425 | <DD>Set the number of Task attempts AFTER which skip mode |
---|
| 426 | will be kicked off. When skip mode is kicked off, the |
---|
| 427 | tasks reports the range of records which it will process |
---|
| 428 | next to the TaskTracker. So that on failures, TT knows which |
---|
| 429 | ones are possibly the bad records. On further executions, |
---|
| 430 | those are skipped. |
---|
| 431 | Default value is 2. |
---|
| 432 | <P> |
---|
| 433 | <DD><DL> |
---|
| 434 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration<DD><CODE>attemptsToStartSkipping</CODE> - no of task attempts</DL> |
---|
| 435 | </DD> |
---|
| 436 | </DL> |
---|
| 437 | <HR> |
---|
| 438 | |
---|
| 439 | <A NAME="getAutoIncrMapperProcCount(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 440 | getAutoIncrMapperProcCount</H3> |
---|
| 441 | <PRE> |
---|
| 442 | public static boolean <B>getAutoIncrMapperProcCount</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 443 | <DL> |
---|
| 444 | <DD>Get the flag which if set to true, |
---|
| 445 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_MAP_PROCESSED_RECORDS"><CODE>COUNTER_MAP_PROCESSED_RECORDS</CODE></A> is incremented |
---|
| 446 | by MapRunner after invoking the map function. This value must be set to |
---|
| 447 | false for applications which process the records asynchronously |
---|
| 448 | or buffer the input records. For example streaming. |
---|
| 449 | In such cases applications should increment this counter on their own. |
---|
| 450 | Default value is true. |
---|
| 451 | <P> |
---|
| 452 | <DD><DL> |
---|
| 453 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration |
---|
| 454 | <DT><B>Returns:</B><DD><code>true</code> if auto increment |
---|
| 455 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_MAP_PROCESSED_RECORDS"><CODE>COUNTER_MAP_PROCESSED_RECORDS</CODE></A>. |
---|
| 456 | <code>false</code> otherwise.</DL> |
---|
| 457 | </DD> |
---|
| 458 | </DL> |
---|
| 459 | <HR> |
---|
| 460 | |
---|
| 461 | <A NAME="setAutoIncrMapperProcCount(org.apache.hadoop.conf.Configuration, boolean)"><!-- --></A><H3> |
---|
| 462 | setAutoIncrMapperProcCount</H3> |
---|
| 463 | <PRE> |
---|
| 464 | public static void <B>setAutoIncrMapperProcCount</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 465 | boolean autoIncr)</PRE> |
---|
| 466 | <DL> |
---|
| 467 | <DD>Set the flag which if set to true, |
---|
| 468 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_MAP_PROCESSED_RECORDS"><CODE>COUNTER_MAP_PROCESSED_RECORDS</CODE></A> is incremented |
---|
| 469 | by MapRunner after invoking the map function. This value must be set to |
---|
| 470 | false for applications which process the records asynchronously |
---|
| 471 | or buffer the input records. For example streaming. |
---|
| 472 | In such cases applications should increment this counter on their own. |
---|
| 473 | Default value is true. |
---|
| 474 | <P> |
---|
| 475 | <DD><DL> |
---|
| 476 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration<DD><CODE>autoIncr</CODE> - whether to auto increment |
---|
| 477 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_MAP_PROCESSED_RECORDS"><CODE>COUNTER_MAP_PROCESSED_RECORDS</CODE></A>.</DL> |
---|
| 478 | </DD> |
---|
| 479 | </DL> |
---|
| 480 | <HR> |
---|
| 481 | |
---|
| 482 | <A NAME="getAutoIncrReducerProcCount(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 483 | getAutoIncrReducerProcCount</H3> |
---|
| 484 | <PRE> |
---|
| 485 | public static boolean <B>getAutoIncrReducerProcCount</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 486 | <DL> |
---|
| 487 | <DD>Get the flag which if set to true, |
---|
| 488 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_REDUCE_PROCESSED_GROUPS"><CODE>COUNTER_REDUCE_PROCESSED_GROUPS</CODE></A> is incremented |
---|
| 489 | by framework after invoking the reduce function. This value must be set to |
---|
| 490 | false for applications which process the records asynchronously |
---|
| 491 | or buffer the input records. For example streaming. |
---|
| 492 | In such cases applications should increment this counter on their own. |
---|
| 493 | Default value is true. |
---|
| 494 | <P> |
---|
| 495 | <DD><DL> |
---|
| 496 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration |
---|
| 497 | <DT><B>Returns:</B><DD><code>true</code> if auto increment |
---|
| 498 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_REDUCE_PROCESSED_GROUPS"><CODE>COUNTER_REDUCE_PROCESSED_GROUPS</CODE></A>. |
---|
| 499 | <code>false</code> otherwise.</DL> |
---|
| 500 | </DD> |
---|
| 501 | </DL> |
---|
| 502 | <HR> |
---|
| 503 | |
---|
| 504 | <A NAME="setAutoIncrReducerProcCount(org.apache.hadoop.conf.Configuration, boolean)"><!-- --></A><H3> |
---|
| 505 | setAutoIncrReducerProcCount</H3> |
---|
| 506 | <PRE> |
---|
| 507 | public static void <B>setAutoIncrReducerProcCount</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 508 | boolean autoIncr)</PRE> |
---|
| 509 | <DL> |
---|
| 510 | <DD>Set the flag which if set to true, |
---|
| 511 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_REDUCE_PROCESSED_GROUPS"><CODE>COUNTER_REDUCE_PROCESSED_GROUPS</CODE></A> is incremented |
---|
| 512 | by framework after invoking the reduce function. This value must be set to |
---|
| 513 | false for applications which process the records asynchronously |
---|
| 514 | or buffer the input records. For example streaming. |
---|
| 515 | In such cases applications should increment this counter on their own. |
---|
| 516 | Default value is true. |
---|
| 517 | <P> |
---|
| 518 | <DD><DL> |
---|
| 519 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration<DD><CODE>autoIncr</CODE> - whether to auto increment |
---|
| 520 | <A HREF="../../../../org/apache/hadoop/mapred/SkipBadRecords.html#COUNTER_REDUCE_PROCESSED_GROUPS"><CODE>COUNTER_REDUCE_PROCESSED_GROUPS</CODE></A>.</DL> |
---|
| 521 | </DD> |
---|
| 522 | </DL> |
---|
| 523 | <HR> |
---|
| 524 | |
---|
| 525 | <A NAME="getSkipOutputPath(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 526 | getSkipOutputPath</H3> |
---|
| 527 | <PRE> |
---|
| 528 | public static <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> <B>getSkipOutputPath</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 529 | <DL> |
---|
| 530 | <DD>Get the directory to which skipped records are written. By default it is |
---|
| 531 | the sub directory of the output _logs directory. |
---|
| 532 | User can stop writing skipped records by setting the value null. |
---|
| 533 | <P> |
---|
| 534 | <DD><DL> |
---|
| 535 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration. |
---|
| 536 | <DT><B>Returns:</B><DD>path skip output directory. Null is returned if this is not set |
---|
| 537 | and output directory is also not set.</DL> |
---|
| 538 | </DD> |
---|
| 539 | </DL> |
---|
| 540 | <HR> |
---|
| 541 | |
---|
| 542 | <A NAME="setSkipOutputPath(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path)"><!-- --></A><H3> |
---|
| 543 | setSkipOutputPath</H3> |
---|
| 544 | <PRE> |
---|
| 545 | public static void <B>setSkipOutputPath</B>(<A HREF="../../../../org/apache/hadoop/mapred/JobConf.html" title="class in org.apache.hadoop.mapred">JobConf</A> conf, |
---|
| 546 | <A HREF="../../../../org/apache/hadoop/fs/Path.html" title="class in org.apache.hadoop.fs">Path</A> path)</PRE> |
---|
| 547 | <DL> |
---|
| 548 | <DD>Set the directory to which skipped records are written. By default it is |
---|
| 549 | the sub directory of the output _logs directory. |
---|
| 550 | User can stop writing skipped records by setting the value null. |
---|
| 551 | <P> |
---|
| 552 | <DD><DL> |
---|
| 553 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration.<DD><CODE>path</CODE> - skip output directory path</DL> |
---|
| 554 | </DD> |
---|
| 555 | </DL> |
---|
| 556 | <HR> |
---|
| 557 | |
---|
| 558 | <A NAME="getMapperMaxSkipRecords(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 559 | getMapperMaxSkipRecords</H3> |
---|
| 560 | <PRE> |
---|
| 561 | public static long <B>getMapperMaxSkipRecords</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 562 | <DL> |
---|
| 563 | <DD>Get the number of acceptable skip records surrounding the bad record PER |
---|
| 564 | bad record in mapper. The number includes the bad record as well. |
---|
| 565 | To turn the feature of detection/skipping of bad records off, set the |
---|
| 566 | value to 0. |
---|
| 567 | The framework tries to narrow down the skipped range by retrying |
---|
| 568 | until this threshold is met OR all attempts get exhausted for this task. |
---|
| 569 | Set the value to Long.MAX_VALUE to indicate that framework need not try to |
---|
| 570 | narrow down. Whatever records(depends on application) get skipped are |
---|
| 571 | acceptable. |
---|
| 572 | Default value is 0. |
---|
| 573 | <P> |
---|
| 574 | <DD><DL> |
---|
| 575 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration |
---|
| 576 | <DT><B>Returns:</B><DD>maxSkipRecs acceptable skip records.</DL> |
---|
| 577 | </DD> |
---|
| 578 | </DL> |
---|
| 579 | <HR> |
---|
| 580 | |
---|
| 581 | <A NAME="setMapperMaxSkipRecords(org.apache.hadoop.conf.Configuration, long)"><!-- --></A><H3> |
---|
| 582 | setMapperMaxSkipRecords</H3> |
---|
| 583 | <PRE> |
---|
| 584 | public static void <B>setMapperMaxSkipRecords</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 585 | long maxSkipRecs)</PRE> |
---|
| 586 | <DL> |
---|
| 587 | <DD>Set the number of acceptable skip records surrounding the bad record PER |
---|
| 588 | bad record in mapper. The number includes the bad record as well. |
---|
| 589 | To turn the feature of detection/skipping of bad records off, set the |
---|
| 590 | value to 0. |
---|
| 591 | The framework tries to narrow down the skipped range by retrying |
---|
| 592 | until this threshold is met OR all attempts get exhausted for this task. |
---|
| 593 | Set the value to Long.MAX_VALUE to indicate that framework need not try to |
---|
| 594 | narrow down. Whatever records(depends on application) get skipped are |
---|
| 595 | acceptable. |
---|
| 596 | Default value is 0. |
---|
| 597 | <P> |
---|
| 598 | <DD><DL> |
---|
| 599 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration<DD><CODE>maxSkipRecs</CODE> - acceptable skip records.</DL> |
---|
| 600 | </DD> |
---|
| 601 | </DL> |
---|
| 602 | <HR> |
---|
| 603 | |
---|
| 604 | <A NAME="getReducerMaxSkipGroups(org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
| 605 | getReducerMaxSkipGroups</H3> |
---|
| 606 | <PRE> |
---|
| 607 | public static long <B>getReducerMaxSkipGroups</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</PRE> |
---|
| 608 | <DL> |
---|
| 609 | <DD>Get the number of acceptable skip groups surrounding the bad group PER |
---|
| 610 | bad group in reducer. The number includes the bad group as well. |
---|
| 611 | To turn the feature of detection/skipping of bad groups off, set the |
---|
| 612 | value to 0. |
---|
| 613 | The framework tries to narrow down the skipped range by retrying |
---|
| 614 | until this threshold is met OR all attempts get exhausted for this task. |
---|
| 615 | Set the value to Long.MAX_VALUE to indicate that framework need not try to |
---|
| 616 | narrow down. Whatever groups(depends on application) get skipped are |
---|
| 617 | acceptable. |
---|
| 618 | Default value is 0. |
---|
| 619 | <P> |
---|
| 620 | <DD><DL> |
---|
| 621 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration |
---|
| 622 | <DT><B>Returns:</B><DD>maxSkipGrps acceptable skip groups.</DL> |
---|
| 623 | </DD> |
---|
| 624 | </DL> |
---|
| 625 | <HR> |
---|
| 626 | |
---|
| 627 | <A NAME="setReducerMaxSkipGroups(org.apache.hadoop.conf.Configuration, long)"><!-- --></A><H3> |
---|
| 628 | setReducerMaxSkipGroups</H3> |
---|
| 629 | <PRE> |
---|
| 630 | public static void <B>setReducerMaxSkipGroups</B>(<A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
| 631 | long maxSkipGrps)</PRE> |
---|
| 632 | <DL> |
---|
| 633 | <DD>Set the number of acceptable skip groups surrounding the bad group PER |
---|
| 634 | bad group in reducer. The number includes the bad group as well. |
---|
| 635 | To turn the feature of detection/skipping of bad groups off, set the |
---|
| 636 | value to 0. |
---|
| 637 | The framework tries to narrow down the skipped range by retrying |
---|
| 638 | until this threshold is met OR all attempts get exhausted for this task. |
---|
| 639 | Set the value to Long.MAX_VALUE to indicate that framework need not try to |
---|
| 640 | narrow down. Whatever groups(depends on application) get skipped are |
---|
| 641 | acceptable. |
---|
| 642 | Default value is 0. |
---|
| 643 | <P> |
---|
| 644 | <DD><DL> |
---|
| 645 | <DT><B>Parameters:</B><DD><CODE>conf</CODE> - the configuration<DD><CODE>maxSkipGrps</CODE> - acceptable skip groups.</DL> |
---|
| 646 | </DD> |
---|
| 647 | </DL> |
---|
| 648 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 649 | <HR> |
---|
| 650 | |
---|
| 651 | |
---|
| 652 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 653 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 654 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 655 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 656 | <TR> |
---|
| 657 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 658 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 659 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 660 | <TR ALIGN="center" VALIGN="top"> |
---|
| 661 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 662 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 663 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 664 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SkipBadRecords.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 665 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 666 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 667 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 668 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 669 | </TR> |
---|
| 670 | </TABLE> |
---|
| 671 | </TD> |
---|
| 672 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 673 | </EM> |
---|
| 674 | </TD> |
---|
| 675 | </TR> |
---|
| 676 | |
---|
| 677 | <TR> |
---|
| 678 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 679 | <A HREF="../../../../org/apache/hadoop/mapred/SequenceFileRecordReader.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
| 680 | <A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptContext.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 681 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 682 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/SkipBadRecords.html" target="_top"><B>FRAMES</B></A> |
---|
| 683 | <A HREF="SkipBadRecords.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 684 | <SCRIPT type="text/javascript"> |
---|
| 685 | <!-- |
---|
| 686 | if(window==top) { |
---|
| 687 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 688 | } |
---|
| 689 | //--> |
---|
| 690 | </SCRIPT> |
---|
| 691 | <NOSCRIPT> |
---|
| 692 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 693 | </NOSCRIPT> |
---|
| 694 | |
---|
| 695 | |
---|
| 696 | </FONT></TD> |
---|
| 697 | </TR> |
---|
| 698 | <TR> |
---|
| 699 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 700 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 701 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 702 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 703 | </TR> |
---|
| 704 | </TABLE> |
---|
| 705 | <A NAME="skip-navbar_bottom"></A> |
---|
| 706 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 707 | |
---|
| 708 | <HR> |
---|
| 709 | Copyright © 2009 The Apache Software Foundation |
---|
| 710 | </BODY> |
---|
| 711 | </HTML> |
---|