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

Make TableSplit more readable

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 0.99.0, 0.98.7
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When debugging MR jobs reading from hbase table, it's import to figure out which region a map task is reading from.
      But the table split object is hard to read.
      eg:

      2014-09-01 20:58:39,783 INFO [main] org.apache.hadoop.mapred.MapTask: Processing split: lg-hadoop-prc-st40.bj:,0
      

      See: TableSplit.java

        @Override
        public String toString() {
          return m_regionLocation + ":" +
            Bytes.toStringBinary(m_startRow) + "," + Bytes.toStringBinary(m_endRow);
        }
      

      We should make it more readable.

        Attachments

        1. HBASE-11877-trunk-v2.diff
          5 kB
          Shaohui Liu
        2. HBASE-11877-trunk-v1.diff
          2 kB
          Shaohui Liu

          Activity

            People

            • Assignee:
              liushaohui Shaohui Liu
              Reporter:
              liushaohui Shaohui Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: