Description
Trying:
hbase(main):036:0> get_counter 'counters', '20150101', 'daily:hits'
and getting
ERROR: wrong number of arguments (3 for 4) ... hbase> get_counter 'ns1:t1', 'r1', 'c1' hbase> get_counter 't1', 'r1', 'c1'
It is asking for another, undocumented parameter. The issue is that there is a "can be nil" markup missing in get_counter.rb:
39 def command(table, row, column, value) 40 get_counter(table(table), row, column, value) 41 end
The first line should be:
39 def command(table, row, column, value = nil)
Easy fix, but makes me wonder why this is not caught anywhere or reported.
Attachments
Issue Links
- duplicates
-
HBASE-10728 get_counter value is never used.
- Closed