Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-735

The underlying data structure, ByteArrayOutputStream, for buffer type of Hadoop record is inappropriate

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.11.0
    • Component/s: record
    • Labels:
      None

      Description

      With ByteArrayOutputStream as the underlying data structure for a buffer, the user is forced to convert it into a byte [] object in order to do any operations other than sequence append on the buffer. The convertion will create a new copy of bytes. That will cause huge performance problem.

      It seems BytesWritable is a better replacement.

        Attachments

        1. BytesWritable.patch
          33 kB
          Milind Bhandarkar

          Activity

            People

            • Assignee:
              milindb Milind Bhandarkar
              Reporter:
              runping Runping Qi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: