In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces Hbase Shell how to build Docker test environment and what are the common commands. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
Installation and configuration of the test environment: docker search hbase # pull stable edition docker pull harisekhon/hbase:1.3 docker run-d-h app.hbase.com-p 2181-p 8080808080808080808080808080808080808080808080808080808080808080808080808085-p 909090-p 9095VOL9095-p 16020RV 16020-p 16301RH 16301-p 16000MUR 16000-p 16010RZ 16010-p 16201201-p 16030 app.hbase.com 16030 / Users/val/Documents/my/hbase/data:/hbase-data -- name hbase harisekhon/hbase:1.3-h app.hbase.com is the domain name Can be configured in / etc/hosts * Note,-h cannot use localhost, there will be a problem The java program can not connect # View web admin http://app.hbase.com:16010/master-status http://app.hbase.com:16030/rs-status # enter the client hbase shellHbase Shell management command # to see which tables exist list # create table create 'table name', 'column name 1' column name 2 'column name N' # delete table: first shield the table Then drop disable 'table name' drop 'table name' # View delete help help delete # view server status status # view version version # get table description describe 'table name' add column family alter 'table name', 'Family' # delete column family alter' table name', {NAME = > 'Family'' METHOD = > 'delete'} # enable / disable table is_enabled' table name 'is_disabled' table name'# check whether the table exists exists' table name 'Hbase Shell addition, deletion, modification and query # add / overwrite record put' table name', 'RowKey','Family:Qualifier',' value' put 'tweak productstores,' 321 entries, 'hbase is strongly typed Here is to put a decimal put'tasking productions, '321 percent,' pposition widthpieces, '5.3' # hbase is strongly typed Here is put a string # according to rowKey view record get 'table name', 'RowKey' get' table name', 'RowKey','Family' # view table record' table name', 'scan' table name', {COLUMN= > 'Family'} scan' table name', {COLUMN= > 'Family:Qualifier'} # limit number of entries / version / start line view scan' table name' {STARTROW = > 'RowKey', LIMIT= > 1, VERSIONS= > 1} # complex condition filtering scan' table name', {FILTER= > "ValueFilter (=, 'Qualifier:QualifierValue')"} # column value contains scan' table name', {FILTER= > "ColumnPrefixFilter ('QualifierValue')"} # column name prefix scan' table name', {FILTER= > "ColumnPrefixFilter ('QualifierValue') AND ValueFilter ValueFilter (= 'Qualifier:QualifierValue') "} # AND / OR build complex filtering scan' table name', {FILTER= >" PrefixFilter ('RowKey') "} # RowKey prefix # View a table column record scan' table name', 'Family:Qualifier' # view table records count' table name'# delete records delete 'table name', 'RowKey'' based on rowKey, family and qualifier 'Family:Qualifier' # Delete the whole row of deleteall' table name', 'RowKey' shares here about how Hbase Shell builds the Docker test environment and what common commands are. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.