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

TupleWritable: Lift implicit limit on the number of values that can be stored

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.19.1
    • 0.21.0
    • None
    • None
    • Reviewed

    Description

      TupleWritable uses an instance field of the primitive type, long, which I presume is so that it can quickly determine if a position has been written to in its array of Writables (by using bit-shifting operations on the long field). The problem with this is that it implies that there is a maximum limit of 64 values you can store in a TupleWritable.

      An example of a use-case where I think this would be a problem is if you had two MR jobs with over 64 reduces tasks and you wanted to join the outputs with CompositeInputFormat - this will probably cause unexpected results in the current scheme.

      At the very least, the 64-value limit should be documented in TupleWritable.

      Attachments

        1. HADOOP-5589-1.patch
          9 kB
          Jingkei Ly
        2. HADOOP-5589-2.patch
          10 kB
          Jingkei Ly
        3. HADOOP-5589-3.patch
          10 kB
          Jingkei Ly
        4. HADOOP-5589-4.patch
          14 kB
          Jingkei Ly
        5. HADOOP-5589-4.patch
          14 kB
          Jingkei Ly

        Activity

          People

            jly Jingkei Ly
            jly Jingkei Ly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: