Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8084 Sundry mapreduce improvements
  3. HBASE-7995

Export$Exporter could be replaced with IdentityTableMapper

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.1
    • mapreduce
    • None
    • Reviewed

    Description

      The Mapper implementation in Export looks identical to IdentityTableMapper, except for the (poor) exception handling. I'd like to consolidate on IdentityTableMapper, but I'm looking for some historical perspective before doing so (cc stack)

      Export$Exporter's map method:

          public void map(ImmutableBytesWritable row, Result value, Context context)
          throws IOException {
            try {
              context.write(row, value);
            } catch (InterruptedException e) {
              e.printStackTrace();
            }
          }
      

      IdentityTableMapper's map method:

        public void map(ImmutableBytesWritable key, Result value, Context context)
        throws IOException, InterruptedException {
          context.write(key, value);
        }
      

      Attachments

        Activity

          People

            ndimiduk Nick Dimiduk
            ndimiduk Nick Dimiduk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: