Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How does Hbase Shell build Docker test environment and what are the common commands?

Shulou Source: shulou.com Published: 2022-06-02 00:13:48 10月03日 Update

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.

Tags: Name command environment test help common complex content prefix more version type configuration good interest domain name character string customer client Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno vpn macOS Xiaomi MySQL