0

Usually record reader passes line by line to the mapper or n lines. Can full block be accessed in the mapper? This means the record reader will give full block to the mapper instead of line by line? Does this approach makes sense?

Thanks

shujaat
  • 279
  • 6
  • 17

1 Answers1

1

Need to note that split size is not equal to block size by default. To do what you want you need to implement custom InputFormat and to be more exact method getSplits(JobContext context). And make InputSplit size to be equal to block size.

luminousmen
  • 1,971
  • 1
  • 18
  • 24