运行hbase

       在运行hbase之前需要保证hdfs已经成功启动。此时,只需要在namenode(即hbase Master)上运行start-hbase.sh既可。

hbase shell 操作命令

hbase shell 操作命令

hbase shell 操作命令

命令行命令介绍:

    1)显示所有的表   :hbase(main):001:0> list

    2)创建表 :create 'test-xwh','c1','c2'

    3)表中添加数据: put 'test-xwh','r1','c1:1','value1-1/1'

    4)查看表中的数据: scan 'test-xwh'

       hbase shell 操作命令

   5) 获取表中的指定数据: get 'test-xwh','r1',{COLUMN=>'c2:2'}

       hbase shell 操作命令

  6)删除表:drop 'test-xwh'

     在删除表的时候如果表是启用的删除不掉,要先禁用这个表

      查看表启用的状态:is_enabled

      查看表禁用的状态:is_disable

      禁用表 :disable 'test-xwh'

相关文章:

  • 2021-10-18
  • 2021-12-10
  • 2021-12-10
  • 2021-11-04
  • 2021-12-10
  • 2021-12-10
  • 2021-12-10
猜你喜欢
  • 2021-12-10
  • 2021-12-08
  • 2021-12-10
  • 2021-10-26
  • 2021-12-10
  • 2021-04-11
  • 2021-11-07
相关资源
相似解决方案