今天小编就为大家分享一篇HBASE 常用shell命令,增删改查方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧..
1、首先给出本次操作的数据
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
2、首先执行,创建表,增加数据操作,执行脚本 /bin/hbase shell ./student.txt,然后查看内容 scan ‘student'
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
3、修改操作 也是用put命令,就是重新添加内容把,把以前的内容覆盖。
1 |
|
1 |
|
1 2 3 4 5 6 7 8 9 |
|
4、删除操作,分为删除单元格的内容,和整行删除
单元格
1 2 3 4 5 6 7 8 9 10 |
|
整行
1 2 3 4 5 6 |
|
5、查询
单行查询
1 2 3 4 5 6 7 8 |
|
指定列族
1 2 3 4 5 6 |
|
指定列名
1 2 3 4 |
|
使用scan,指定startrow
1 2 3 4 5 6 7 8 9 |
|
scan指定过滤
1 2 3 4 |
|
以上这篇HBASE 常用shell命令,增删改查方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
原文链接:https://blog.csdn.net/qq_22222499/article/details/69808525