Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 91999 invoked from network); 13 Nov 2009 23:36:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Nov 2009 23:36:03 -0000 Received: (qmail 53546 invoked by uid 500); 13 Nov 2009 23:36:03 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 53485 invoked by uid 500); 13 Nov 2009 23:36:03 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 53475 invoked by uid 99); 13 Nov 2009 23:36:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 23:36:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 23:36:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 904AC234C1EF for ; Fri, 13 Nov 2009 15:35:39 -0800 (PST) Message-ID: <386881923.1258155339576.JavaMail.jira@brutus> Date: Fri, 13 Nov 2009 23:35:39 +0000 (UTC) From: "stack (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-1977) Add ts and allow setting VERSIONS when scanning in shell In-Reply-To: <2125368639.1258095819698.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777742#action_12777742 ] stack commented on HBASE-1977: ------------------------------ I backed out this bit: {code} @@ -429,7 +431,7 @@ qualifier = String.from_java_bytes kv.getQualifier() column = family + ':' + qualifier cell = toString(column, kv, maxlength) - @formatter.row([row, "column=%s, %s" % [column, cell]]) + @formatter.row([row, "column=%s, ts=%d, %s" % [column, kv.getTimestamp(), cell]]) end end @formatter.footer(now, count) {code} We already have a 'timestamp='. Above was superfluous. > Add ts and allow setting VERSIONS when scanning in shell > -------------------------------------------------------- > > Key: HBASE-1977 > URL: https://issues.apache.org/jira/browse/HBASE-1977 > Project: Hadoop HBase > Issue Type: Bug > Reporter: stack > Assignee: stack > Fix For: 0.21.0 > > > Small fix: > {code} > Index: bin/HBase.rb > =================================================================== > --- bin/HBase.rb (revision 835748) > +++ bin/HBase.rb (working copy) > @@ -384,6 +384,7 @@ > timestamp = args["TIMESTAMP"] || nil > columns = args["COLUMNS"] || getAllColumns() > cache = args["CACHE_BLOCKS"] || true > + versions = args["VERSIONS"] || 1 > > if columns.class == String > columns = [columns] > @@ -410,6 +411,7 @@ > scan.setTimeStamp(timestamp) > end > scan.setCacheBlocks(cache) > + scan.setMaxVersions(versions) if versions > 1 > else > scan = Scan.new() > end > @@ -429,7 +431,7 @@ > qualifier = String.from_java_bytes kv.getQualifier() > column = family + ':' + qualifier > cell = toString(column, kv, maxlength) > - @formatter.row([row, "column=%s, %s" % [column, cell]]) > + @formatter.row([row, "column=%s, ts=%d, %s" % [column, kv.getTimestamp(), cell]]) > end > end > @formatter.footer(now, count) > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.