What is TextInputFormat and KeyValueInputFormat class?

In Hadoop TextInputFormat reads lines of text files and provides the offset of the line as key to the Mapper and actual line as Value to the mapper. Where KeyValueInputFormat Reads text file and parses lines into key, Val pairs. Everything up to the first tab character is sent as key to the Mapper and the remainder of the line is sent as value to the mapper.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.