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

Make TableSplit more readable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 0.99.0, 0.98.7
    • None
    • None
    • 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-v1.diff
          2 kB
          Shaohui Liu
        2. HBASE-11877-trunk-v2.diff
          5 kB
          Shaohui Liu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: