1

I want to use FileChannel in Hadoop Reducer for fast retrieval the data from file. With it, I can use MappedByteBuffer to map parts of file to memory. It is faster than other APIs when reading data (At least much faster than DataInputStream). However, I cannot find any solution to get FileChannel object from Hadoop API. Currently, I only find FSDataInputStream to read data from file.

How can I solve that?

Manjunath Ballur
  • 6,287
  • 3
  • 37
  • 48
user3677630
  • 635
  • 6
  • 14

0 Answers0