這篇文章給大家分享的是有關Hadoop2.6.0中InputFormat和OutputFormat的用法示例的內容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。
成都創(chuàng)新互聯(lián)公司專注于三都網(wǎng)站建設服務及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供三都營銷型網(wǎng)站建設,三都網(wǎng)站制作、三都網(wǎng)頁設計、三都網(wǎng)站官網(wǎng)定制、重慶小程序開發(fā)服務,打造三都網(wǎng)絡公司原創(chuàng)品牌,更為您提供三都網(wǎng)站排名全網(wǎng)營銷落地服務。
java.lang.Object org.apache.hadoop.mapreduce.InputFormatorg.apache.hadoop.mapreduce.lib.db.DBInputFormat DataDrivenDBInputFormat OracleDataDrivenDBInputFormat org.apache.hadoop.mapreduce.lib.input.FileInputFormat CombineFileInputFormat CombineSequenceFileInputFormat CombineTextInputFormat FixedLengthInputFormat KeyValueTextInputFormat NLineInputFormat SequenceFileInputFormat TextInputFormat
InputFormat
public abstract class InputFormat{ public abstract List getSplits(JobContext context) throws IOException, InterruptedException; public abstract RecordReader createRecordReader(InputSplit split,TaskAttemptContext context) throws IOException, InterruptedException; }
1、FileInputFormat
1.1 TextInputFormat
1.2 KeyValueTextInputFormat
1.3 SequenceFileInputFormat
1.4 CombineFileInputFormat
1.5 FixedLengthInputFormat
1.6 NLineInputFormat
2、DBInputFormat
2.1 DataDrivenDBInputFormat
2.1.1 OracleDataDrivenDBInputFormat
OutputFormat
public abstract class OutputFormat{ public abstract RecordWriter getRecordWriter(TaskAttemptContext context ) throws IOException, InterruptedException; public abstract RecordWriter getRecordWriter(TaskAttemptContext context ) throws IOException, InterruptedException; public abstract OutputCommitter getOutputCommitter(TaskAttemptContext context ) throws IOException, InterruptedException; }
感謝各位的閱讀!關于“Hadoop2.6.0中InputFormat和OutputFormat的用法示例”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!