MapReduce源碼解析之InputFormat

導讀        上一篇文章介紹了MapReduce中Map(映射)的實現者Mapper,本章將會介紹MapReduce中的輸入文件的處理者InputFormat。MapReduce程序獲取的數據類型多種多樣,當程序把數據輸入給Mapper時,須要格式化讀取,例如讀取普通文本文件許須要設置 job.setInputFormatClass(TextInputFormat.class)。全部的輸入格
相關文章
相關標籤/搜索