开发者

Sequential Files in Hadoop

How to read/parse a Sequential File written by previous Map Reduce Job. The keyOut and ValueOut of prev MR Job were Text and ByteWritable. What should be the keyin and valuein for the mapper of my next MR Job. I expect the record 开发者_如何转开发to have key and value as Text.


If your previous running M/R Job has the output k/v of Text and ByteWritable, the Input of your following job is going to be Text and ByteWritable.

So your Mapper definition of the follower job should look similar to this:

xyz extends Mapper<Text, ByteWritable, KEYOUT,VALUEOUT>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜