OutputFormat

在MapReduce中,OutputFormat描述经reducer处理后输出的数据的格式,将用户提供的key/value键值对写入到特定格式的文件中

TextOutputFormat,输出到纯文本文件,格式为 key + " " + value。

DBOutputFormat,输出到DB

SequenceFileOutputFormat, 输出到sequence file格式文件。

MultipleSequenceFileOutputFormat, MultipleTextOutputFormat,根据key将记录输出到不同的文件。

NullOutputFormat,hadoop中的/dev/null,将输出送进黑洞。

posted on 2020-11-20 09:44  happygril3  阅读(141)  评论(0)    收藏  举报

导航