开发者社区> 问答> 正文

HBase中的ddl操作的步骤是什么?

HBase中的ddl操作的步骤是什么?

展开
收起
游客k7rjnht6hbtk6 2021-12-06 16:45:10 343 0
1 条回答
写回答
取消 提交回答
  • 1、 创建一个表

    create ‘table1’, ‘tab1_id’, ‘tab1_add’, ‘tab1_info’

    2、 列出所有的表

    3、 获得表的描述

    describe “table1”

    4、 删除一个列族 disable alter enable 注意删除前,需要先把表disable

    disable ‘table1’

    alter ‘table1’, {NAME=>’tab1_add’, METHOD=>’delete’}

    enable ‘table1’

    5、 查看表是否存在 exists ‘table2’

    6、 判断表是否为‘enable’

    is_enabled ‘table1’

    7、 删除一个表

    disable ‘table1’

    drop ‘table1’

    2021-12-06 16:45:31
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
大数据时代的存储 ——HBase的实践与探索 立即下载
Hbase在滴滴出行的应用场景和最佳实践 立即下载
阿里云HBase主备双活 立即下载