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

HFilePrettyPrinter should print out nicely formatted tags

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: HFile
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When I was using HFile to print out a rows with tags, the output is like:

      hsun-MBP:hbase-2.0.0-SNAPSHOT hsun$ hbase org.apache.hadoop.hbase.io.hfile.HFile -f /tmp/71afa45b1cb94ea1858a99f31197274f -p
      2016-04-25 11:40:40,409 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      2016-04-25 11:40:40,580 INFO  [main] hfile.CacheConfig: CacheConfig:disabled
      K: b/b:b/1461608231279/Maximum/vlen=0/seqid=0 V: 
      K: b/b:b/1461608231278/Put/vlen=1/seqid=0 V: b T[0]: �
      Scanned kv count -> 2
      

      With attached patch, the print is now like:

      2016-04-25 11:57:05,849 INFO  [main] hfile.CacheConfig: CacheConfig:disabled
      K: b/b:b/1461609876838/Maximum/vlen=0/seqid=0 V: 
      K: b/b:b/1461609876837/Put/vlen=1/seqid=0 V: b T[0]: [Tag type : 8, value : \x00\x0E\xEE\xEE]
      Scanned kv count -> 2
      

        Attachments

        1. HBASE-15706-v001.patch
          0.8 kB
          Hua Xiang
        2. HBASE-15706-v002.patch
          2 kB
          Hua Xiang

          Activity

            People

            • Assignee:
              huaxiang Hua Xiang
              Reporter:
              huaxiang Hua Xiang
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: