Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E6391971A for ; Mon, 25 Apr 2016 22:45:13 +0000 (UTC) Received: (qmail 21790 invoked by uid 500); 25 Apr 2016 22:45:13 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 21740 invoked by uid 500); 25 Apr 2016 22:45:13 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 21686 invoked by uid 99); 25 Apr 2016 22:45:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2016 22:45:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EB4142C1F5D for ; Mon, 25 Apr 2016 22:45:12 +0000 (UTC) Date: Mon, 25 Apr 2016 22:45:12 +0000 (UTC) From: "huaxiang sun (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-15706) HFilePrettyPrinter should print out nicely formatted tags MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-15706?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] huaxiang sun updated HBASE-15706: --------------------------------- Description:=20 When I was using HFile to print out a rows with tags, the output is like: {code} 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:disable= d K: b/b:b/1461608231279/Maximum/vlen=3D0/seqid=3D0 V:=20 K: b/b:b/1461608231278/Put/vlen=3D1/seqid=3D0 V: b T[0]: =EF=BF=BD Scanned kv count -> 2 {code} With attached patch, the print is now like: {code} 2016-04-25 11:57:05,849 INFO [main] hfile.CacheConfig: CacheConfig:disable= d K: b/b:b/1461609876838/Maximum/vlen=3D0/seqid=3D0 V:=20 K: b/b:b/1461609876837/Put/vlen=3D1/seqid=3D0 V: b T[0]: [Tag type : 8, val= ue : \x00\x0E\xEE\xEE] Scanned kv count -> 2 {code} was: When I was using HFile to print out a rows with tags, the output is like: {noformat} 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:disable= d K: b/b:b/1461608231279/Maximum/vlen=3D0/seqid=3D0 V:=20 K: b/b:b/1461608231278/Put/vlen=3D1/seqid=3D0 V: b T[0]: =EF=BF=BD Scanned kv count -> 2 {noformat} With attached patch, the print is now like: {noformat} 2016-04-25 11:57:05,849 INFO [main] hfile.CacheConfig: CacheConfig:disable= d K: b/b:b/1461609876838/Maximum/vlen=3D0/seqid=3D0 V:=20 K: b/b:b/1461609876837/Put/vlen=3D1/seqid=3D0 V: b T[0]: [Tag type : 8, val= ue : \x00\x0E\xEE\xEE] Scanned kv count -> 2 {noformat} > HFilePrettyPrinter should print out nicely formatted tags > --------------------------------------------------------- > > Key: HBASE-15706 > URL: https://issues.apache.org/jira/browse/HBASE-15706 > Project: HBase > Issue Type: Improvement > Components: HFile > Affects Versions: 2.0.0 > Reporter: huaxiang sun > Priority: Minor > Attachments: HBASE-15706-v001.patch > > > When I was using HFile to print out a rows with tags, the output is like: > {code} > hsun-MBP:hbase-2.0.0-SNAPSHOT hsun$ hbase org.apache.hadoop.hbase.io.hfil= e.HFile -f /tmp/71afa45b1cb94ea1858a99f31197274f -p > 2016-04-25 11:40:40,409 WARN [main] util.NativeCodeLoader: Unable to loa= d native-hadoop library for your platform... using builtin-java classes whe= re applicable > 2016-04-25 11:40:40,580 INFO [main] hfile.CacheConfig: CacheConfig:disab= led > K: b/b:b/1461608231279/Maximum/vlen=3D0/seqid=3D0 V:=20 > K: b/b:b/1461608231278/Put/vlen=3D1/seqid=3D0 V: b T[0]: =EF=BF=BD > Scanned kv count -> 2 > {code} > With attached patch, the print is now like: > {code} > 2016-04-25 11:57:05,849 INFO [main] hfile.CacheConfig: CacheConfig:disab= led > K: b/b:b/1461609876838/Maximum/vlen=3D0/seqid=3D0 V:=20 > K: b/b:b/1461609876837/Put/vlen=3D1/seqid=3D0 V: b T[0]: [Tag type : 8, v= alue : \x00\x0E\xEE\xEE] > Scanned kv count -> 2 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)