TextInputFormat is the default input format of MapReduce in Hadoop. TextInputFormat considers each line of each input file as another record and performs no parsing. This is mainly used for unformatted data or line-based records like log files.
- Key – It is the byte offset of the beginning of the line within the file, so it will be unique if combined with the file name.
- Value – It is the information in the line, excluding line terminators.
If you want to learn Hadoop, I recommend this Hadoop Training program by Intellipaat.
Also, check out this YouTube tutorial on Hadoop: