You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars George (JIRA)" <ji...@apache.org> on 2015/03/27 21:18:53 UTC
[jira] [Created] (HBASE-13353) [Shell] get_counter is asking for
too many parameters
Lars George created HBASE-13353:
-----------------------------------
Summary: [Shell] get_counter is asking for too many parameters
Key: HBASE-13353
URL: https://issues.apache.org/jira/browse/HBASE-13353
Project: HBase
Issue Type: Bug
Components: shell
Affects Versions: 1.0.0
Reporter: Lars George
Trying:
{code}
hbase(main):036:0> get_counter 'counters', '20150101', 'daily:hits'
{code}
and getting
{code}
ERROR: wrong number of arguments (3 for 4)
...
hbase> get_counter 'ns1:t1', 'r1', 'c1'
hbase> get_counter 't1', 'r1', 'c1'
{code}
It is asking for another, undocumented parameter. The issue is that there is a "can be nil" markup missing in get_counter.rb:
{code}
39 def command(table, row, column, value)
40 get_counter(table(table), row, column, value)
41 end
{code}
The first line should be:
{code}
39 def command(table, row, column, value = nil)
{code}
Easy fix, but makes me wonder why this is not caught anywhere or reported.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)