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 569A8D0BF for ; Wed, 10 Oct 2012 12:35:06 +0000 (UTC) Received: (qmail 24313 invoked by uid 500); 10 Oct 2012 12:35:03 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 24275 invoked by uid 500); 10 Oct 2012 12:35:03 -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 24148 invoked by uid 99); 10 Oct 2012 12:35:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 12:35:03 +0000 Date: Wed, 10 Oct 2012 12:35:03 +0000 (UTC) From: "Michael Drzal (JIRA)" To: issues@hbase.apache.org Message-ID: <1979250038.19454.1349872503686.JavaMail.jiratomcat@arcas> In-Reply-To: <312483772.8701.1300365449624.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-3661) Handle empty qualifier better in shell for increments MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-3661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Drzal updated HBASE-3661: --------------------------------- Status: Patch Available (was: In Progress) > Handle empty qualifier better in shell for increments > ----------------------------------------------------- > > Key: HBASE-3661 > URL: https://issues.apache.org/jira/browse/HBASE-3661 > Project: HBase > Issue Type: Improvement > Components: shell > Affects Versions: 0.92.0 > Reporter: Lars George > Assignee: Michael Drzal > Priority: Minor > Attachments: HBASE-3661.patch > > > When trying to increment a counter using the examples, which specify no *explicit* qualifier you get an error: > {code} > hbase(main):014:0> incr 'testtable', 'cnt1', 'colfam1', 1 > ERROR: org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to contact region server 10.0.0.57:51640 for region testtable,,1300267113942.cd2e7925140eb414d519621e384fb654., row 'cnt1', but failed after 7 attempts. > Exceptions: > java.io.IOException: java.io.IOException: java.lang.NullPointerException > at org.apache.hadoop.hbase.regionserver.ColumnCount.(ColumnCount.java:47) > at org.apache.hadoop.hbase.regionserver.ExplicitColumnTracker.(ExplicitColumnTracker.java:69) > at org.apache.hadoop.hbase.regionserver.ScanQueryMatcher.(ScanQueryMatcher.java:93) > at org.apache.hadoop.hbase.regionserver.StoreScanner.(StoreScanner.java:65) > at org.apache.hadoop.hbase.regionserver.Store.getScanner(Store.java:1436) > at org.apache.hadoop.hbase.regionserver.HRegion$RegionScanner.(HRegion.java:2412) > at org.apache.hadoop.hbase.regionserver.HRegion.instantiateInternalScanner(HRegion.java:1185) > at org.apache.hadoop.hbase.regionserver.HRegion.getScanner(HRegion.java:1171) > at org.apache.hadoop.hbase.regionserver.HRegion.getScanner(HRegion.java:1155) > at org.apache.hadoop.hbase.regionserver.HRegion.getLastIncrement(HRegion.java:3087) > at org.apache.hadoop.hbase.regionserver.HRegion.incrementColumnValue(HRegion.java:3312) > at org.apache.hadoop.hbase.regionserver.HRegionServer.incrementColumnValue(HRegionServer.java:2570) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:309) > at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1060) > Here is some help for this command: > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > {code} > Handle this more gracefully (printing 5 stacktraces is ugly), improve the help to specify what is needed more clearly. Or fix the server side to support this, if this makes sense, and therefore never triggering this issue. > Adding a qualifier makes it work: > {code} > hbase(main):015:0> incr 'testtable', 'cnt1', 'colfam1:test', 1 > COUNTER VALUE = 1 > hbase(main):016:0> incr 'testtable', 'cnt1', 'colfam1:test', 1 > COUNTER VALUE = 2 > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira