- Where Developers Learn, Share, & Build Careers
?
Public class I can get an example of how to use work side effect files LongWritable, Text, Text, IntWritable & gt; {Public Zero Map (LongWritable Key, Text Value, OutputCollector & LT; Text, IntWritable> Production, Reporter Correspondent) Map0t MapReduceBase Implants Mapper Expands IOException {IntWritable A = New IntWritable (1); StringTokenizer tokenizer = New StringTokenizer (value.toString (), ","); String x; String wi; String jade; X = tokenizer.nextToken (); Y = tokenizer.nextToken (); Z = tokenizer.nextToken (); Output.collect (new text (x + "+ z), a);}} In a separate folder in HDF, the new text in the above mapper function + + +, I want to write new text.
I searched, but could not find any examples from how to use work side effect files.
Pls help me.
Thanks in advance!
is not an optimal approach But a By the way I can think that
is open in a file format (in the setup), write in the HDFS, and then map the file in clean (then clean) mapper's setup. () It looks like one to use a unique filename.
Comments
Post a Comment