MapReduce工作流程
OutputFormat类
OutputFormat和InputFormat类似,决定了在哪里以及怎样持久化Reduce作业的结果。
OutputFormat定义了三个方法
- getRecordWriter(in context: TaskAttempContext)
- checkOutputSpecs(in context: JobContext)
- getOutputCommitter(in context: TaskAttempContext)
OutputFormat和InputFormat类似,决定了在哪里以及怎样持久化Reduce作业的结果。
OutputFormat定义了三个方法