HBASE shell 操作命令大全

 


COMMAND GROUPS:
  Group name: general
  Commands: processlist, status, table_help, version, whoami

  Group name: ddl
  Commands: alter, alter_async, alter_status, clone_table_schema, create, describe, 
            disable, disable_all, drop, drop_all, enable, enable_all, exists, 
			get_table, is_disabled, is_enabled, list, list_regions, locate_region, show_filters

  Group name: namespace
  Commands: alter_namespace, create_namespace, describe_namespace, drop_namespace, 
            list_namespace, list_namespace_tables

  Group name: dml
  Commands: append, count, delete, deleteall, get, get_counter, get_splits, incr, 
            put, scan, truncate, truncate_preserve

  Group name: tools
  Commands: assign, balance_switch, balancer, balancer_enabled, catalogjanitor_enabled, 
            catalogjanitor_run, catalogjanitor_switch, cleaner_chore_enabled, cleaner_chore_run, 
			cleaner_chore_switch, clear_block_cache, clear_compaction_queues, clear_deadservers, 
			close_region, compact, compact_rs, compaction_state, flush, is_in_maintenance_mode, 
			list_deadservers, major_compact, merge_region, move, normalize, normalizer_enabled, 
			normalizer_switch, split, splitormerge_enabled, splitormerge_switch, stop_master, 
			stop_regionserver, trace, unassign, wal_roll, zk_dump

  Group name: replication
  Commands: add_peer, append_peer_namespaces, append_peer_tableCFs, disable_peer, 
            disable_table_replication, enable_peer, enable_table_replication, get_peer_config, 
			list_peer_configs, list_peers, list_replicated_tables, remove_peer, 
			remove_peer_namespaces, remove_peer_tableCFs, set_peer_bandwidth, 
			set_peer_exclude_namespaces, set_peer_exclude_tableCFs, set_peer_namespaces, 
			set_peer_replicate_all, set_peer_serial, set_peer_tableCFs, show_peer_tableCFs, 
			update_peer_config

  Group name: snapshots
  Commands: clone_snapshot, delete_all_snapshot, delete_snapshot, delete_table_snapshots, 
            list_snapshots, list_table_snapshots, restore_snapshot, snapshot

  Group name: configuration
  Commands: update_all_config, update_config

  Group name: quotas
  Commands: list_quota_snapshots, list_quota_table_sizes, list_quotas, list_snapshot_sizes, set_quota

  Group name: security
  Commands: grant, list_security_capabilities, revoke, user_permission

  Group name: procedures
  Commands: list_locks, list_procedures

  Group name: visibility labels
  Commands: add_labels, clear_auths, get_auths, list_labels, set_auths, set_visibility

  Group name: rsgroup
  Commands: add_rsgroup, balance_rsgroup, get_rsgroup, get_server_rsgroup, get_table_rsgroup, 
            list_rsgroups, move_namespaces_rsgroup, move_servers_namespaces_rsgroup, 
			move_servers_rsgroup, move_servers_tables_rsgroup, move_tables_rsgroup, 
			remove_rsgroup, remove_servers_rsgroup

删除表:  disable   'tableName'      +   drop   'tableName'

清空表: truncate   'tableName'

显示所有表:  list

显示表结构: describe  'tableName'

查看表是否在启用状态:  is_enabled   'tableName'

扫描数据:scan   'tableName',{LIMIT=>10,COLUMN=>'XXX'}  

表记录行数:  count   'tableName'

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

langeldep

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值