在HBase中,可以使用以下shell命令進行增刪改查操作:
- 創(chuàng)建表:
hbase shell create 'test_table', 'cf'
- 插入數(shù)據(jù):
hbase shell put 'test_table', 'row1', 'column1', 'value1' put 'test_table', 'row2', 'column2', 'value2'
- 刪除數(shù)據(jù):
hbase shell delete 'test_table', 'row1'
- 更新數(shù)據(jù):
hbase shell update 'test_table', 'row1', 'column1', 'new_value1'
- 查詢數(shù)據(jù):
hbase shell get 'test_table', 'row1'
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。
轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。