zoukankan      html  css  js  c++  java
  • hbase常用命令

    进入hbase命令行:任意目录

        hbase shell   

    进入命令行后,hbase查看表:list

    查看表中所有数据:scan 'table_name'

        如:scan 'dim_user_city'

    创建表:

        create '表名','别名'

        create 'dim_user_firstcity','cx'

        create 'dim_user_city','cx'

        create 'dim_user_guid','cx'

        create 'user_credit_status','cx'

        

    查询数据:

      get '表名','rowkey'

      如:ge 'dim_user_city','00321:420100'

    插入数据:

        put '表名','rowkey','表别名:字段名',‘字段值’

        如:put 'dim_user_city','00321:420100','cx:count',1

    清空表数据:

    truncate  'user_credit_status'

  • 相关阅读:
    BZOJ 3522 Hotel
    BZOJ 1864 三色二叉树
    396595
    CodeForces
    CodeForces
    CodeForces
    E. 数字串
    算术基本定理总结
    Cyclic Nacklace 杭电3746
    Period
  • 原文地址:https://www.cnblogs.com/ngy0217/p/10054344.html
Copyright © 2011-2022 走看看