MAPREDUCE-579. Streaming slowmatch documentation.

This commit is contained in:
Harsh J 2015-03-25 14:38:12 +05:30
parent 323945b33a
commit b6dea9776b
2 changed files with 9 additions and 0 deletions

View File

@ -256,6 +256,8 @@ Release 2.8.0 - UNRELEASED
IMPROVEMENTS
MAPREDUCE-579. Streaming "slowmatch" documentation. (harsh)
MAPREDUCE-6287. Deprecated methods in org.apache.hadoop.examples.Sort
(Chao Zhang via harsh)

View File

@ -546,6 +546,13 @@ You can use the record reader StreamXmlRecordReader to process XML documents.
Anything found between BEGIN\_STRING and END\_STRING would be treated as one record for map tasks.
The name-value properties that StreamXmlRecordReader understands are:
* (strings) 'begin' - Characters marking beginning of record, and 'end' - Characters marking end of record.
* (boolean) 'slowmatch' - Toggle to look for begin and end characters, but within CDATA instead of regular tags. Defaults to false.
* (integer) 'lookahead' - Maximum lookahead bytes to sync CDATA when using 'slowmatch', should be larger than 'maxrec'. Defaults to 2*'maxrec'.
* (integer) 'maxrec' - Maximum record size to read between each match during 'slowmatch'. Defaults to 50000 bytes.
$H3 How do I update counters in streaming applications?
A streaming process can use the stderr to emit counter information. `reporter:counter:<group>,<counter>,<amount>` should be sent to stderr to update the counter.