Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Basic operation of hbase

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. Shell operation

Common commands:

[root@hadoop01 ~] # hbase shell # enter HBASE client hbase (main): 001hbase 0 > help "dml" # prompt to get a set of commands hbase (main): 001hbase 0 > help "put" prompt to get a single command help hbase (main): 001hbase 0 > exit # exit client # View all tables in hbase hbase (main): 001hbase 0 > list

Create a table:

Syntax: create 'table name', 'column cluster 1,' column cluster 2, column cluster 3, column cluster 3.

Example 1: create a table named user, which has two column clusters, info and data, hbase (main): 001main 0 > create 'user',' info','data'hbase (main): 001data 0 > create 'user', {NAME= >' info'}, {NAME= > 'data'}

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report