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

Text class should provide method to return byte array of getLength()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 0.20.2
    • None
    • util
    • None

    Description

      People would use the following code to convert Text to String:
      String valueString = new String(valueText.getBytes(), "UTF-8");

      However, if Text is reused, the above call would return String of monotonically increasing length.
      From 'Hadoop and XML' discussion thread:
      The problem I am seeing is between the Map phase and the
      Reduce phase, the XML is getting munged. For Example:
      </PrivateRate>
      </PrivateRateSet>te>

      Text should provide method to return byte array of getLength() length.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ted_yu Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: