zoukankan      html  css  js  c++  java
  • hbase ERROR: wrong number of arguments (3 for 4)


    hbase(main):036:0> get 'ddl', 'example', 'info:age'
    COLUMN                                               CELL
    info:age                                            timestamp=1436787562408, value=x00x00x00x00x00x00x00x03
    1 row(s) in 0.0160 seconds

    hbase(main):037:0> get_counter 'ddl', 'example', 'info:age'

    ERROR: wrong number of arguments (3 for 4)

    Here is some help for this command:
    Return a counter cell value at specified table/row/column coordinates.
    A cell cell should be managed with atomic increment function oh HBase
    and the data should be binary encoded. Example:

      hbase> get_counter 'ns1:t1', 'r1', 'c1'
      hbase> get_counter 't1', 'r1', 'c1'

    The same commands also can be run on a table reference. Suppose you had a reference
    t to table 't1', the corresponding command would be:

      hbase> t.get_counter 'r1', 'c1'


     

    hbase(main):041:0> get_counter 'ddl', 'example', 'info:age', 'dummy'   <----加上dummy就对了
    COUNTER VALUE = 3

    hbase(main):042:0> get 'ddl', 'example', 'info:age'
    COLUMN                                               CELL
    info:age                                            timestamp=1436787562408, value=x00x00x00x00x00x00x00x03
    1 row(s) in 0.0210 seconds

    hbase(main):043:0> truncate 'ddl'
    Truncating 'ddl' table (it may take a while):
    - Disabling table...
    - Dropping table...
    - Creating table...
    0 row(s) in 2.6630 seconds

    hbase(main):044:0>

  • 相关阅读:
    一个纯CSS下拉菜单
    【荐】DIV+CSS仿360buy京东商城导航条
    JS同一个页面布局滑动门和TAB
    很漂亮的蓝色CSS下拉菜单
    用JS已经封装好的滑动门,只需调用就可以用
    set row count
    html块元素与内联元素
    Div的内容自动换行(转载)
    xmlHTTP Status
    FF innerText(转载)
  • 原文地址:https://www.cnblogs.com/justinzhang/p/4643777.html
Copyright © 2011-2022 走看看