Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12929

TableMapReduceUtil.initTableMapperJob unnecessarily limits the types of outputKeyClass and outputValueClass

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0, 1.1.0
    • Component/s: mapreduce
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      The initTableMapperJob methods in TableMapReduceUtil which take multiple scans unnecessarily limit the types of the outputKeyClass and outputValueClass parameters, requiring them to extend WritableComparable and Writable respectively.

      In my specific use case, therefore, I cannot create a mapper job which outputs an hbase.client.Result.

      The methods in the MapReduce API to set map output key and value types do not impose this restriction.

      The other overloads of initTableMapperJob do not have this limitation - the restrictions were removed by https://issues.apache.org/jira/browse/HBASE-7024

        Attachments

        1. HBASE-12929.patch
          2 kB
          Will Temperley

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              willtemperley Will Temperley
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified