HBase是一个分布式、可扩展的非关系型数据库,它是Apache Hadoop生态系统的一部分
hbase shell
create或use命令创建一个新表或选择一个现有表。例如,创建一个名为my_table的表,其中有一个列族cf1:create 'my_table', 'cf1'
put命令将数据插入表中。例如,向my_table表中插入一行数据:put 'my_table', 'row1', 'cf1:column1', 'value1'
这将把row1行、cf1列族和column1列的值设置为value1。
put命令更新表中已有的数据。例如,将my_table表中row1行的column1列的值更新为new_value1:put 'my_table', 'row1', 'cf1:column1', 'new_value1'
get命令查询表中的数据。例如,获取my_table表中row1行的所有数据:get 'my_table', 'row1'
delete命令删除表中的数据。例如,删除my_table表中row1行的column1列的数据:delete 'my_table', 'row1', 'cf1:column1'
drop命令删除整个表。例如,删除my_table表:drop 'my_table'
这只是HBase命令行的一些基本操作。HBase提供了许多其他命令和选项,可以让你更有效地管理和操作数据。要了解更多关于HBase的信息,请参阅官方文档:https://hbase.apache.org/book.html