HBase Shell基本操作

一、进入Hbase Shell客户端

先在Linux Shell命令行终端执行start-dfs.sh脚本启动HDFS,再执行start-hbase.sh脚本启动HBase。如果Linux系统已配置HBase环境变量,可直接在任意目录下执行hbase shell脚本命令,就可进入HBase Shell的命令行终端环境,exit可以退出HBase Shell(我安装的是伪分布式的HBase)。

(1) help帮助命令(或者help '命令名称'查看某一具体命令的使用方法)

hbase:055:0> help
HBase Shell, version 2.5.6, r6bac842797dc26bedb7adc0759358e4c8fd5a992, Sat Oct 14 23:36:46 PDT 2023
Type 'help "COMMAND"', (e.g. 'help "get"' -- the quotes are necessary) for help on a specific command.
Commands are grouped. Type 'help "COMMAND_GROUP"', (e.g. 'help "general"') for help on a command group.

COMMAND GROUPS:
  Group name: general
  Commands: processlist, status, table_help, version, whoami

  Group name: ddl
  Commands: alter, alter_async, alter_status, clone_table_schema, create, describe, disable, disable_all, drop, drop_all, enable, enable_all, exists, get_table, is_disabled, is_enabled, list, list_regions, locate_region, show_filters

  Group name: namespace
  Commands: alter_namespace, create_namespace, describe_namespace, drop_namespace, list_namespace, list_namespace_tables

  Group name: dml
  Commands: append, count, delete, deleteall, get, get_counter, get_splits, incr, put, scan, truncate, truncate_preserve

二、General通用操作命令

(1)status:查看HBase集群状态

hbase:051:0> status
1 active master, 0 backup masters, 1 servers, 0 dead, 5.0000 average load
Took 2.3419 seconds 

(2)version:查看HBase版本信息

hbase:052:0> version
2.5.6, r6bac842797dc26bedb7adc0759358e4c8fd5a992, Sat Oct 14 23:36:46 PDT 2023
Took 0.0029 seconds 

(3)whoami:查看当前登录HBase的系统用户信息

hbase:053:0> whoami
root (auth:SIMPLE)
    groups: root
Took 0.1906 seconds 

(4)table_help:查看HBase数据表操作的帮助信息

table_help
Help for table-reference commands.

You can either create a table via 'create' and then manipulate the table via commands like 'put', 'get', etc.
See the standard help information for how to use each of these commands.

三、Namespace操作

namespace(命名空间)是HBase对数据表的逻辑分组,用于数据表的业务划分。例如上层应用可以不同业务的数据表分别放置在不同的名字空间,以实现不同业务数据表之间的数据隔离。命名空间和数据表是一对多关系,命名空间可以包含多张数据表,一张数据表只能属于一个名字空间。HBase数据库中的NameSpace类似于MySQL数据库中的database。 命名空间是HBASE对数据表的逻辑分组,用于数据表的业务划分。

(1)list_namespace:查询所有命名空间
hbase:036:0> list_namespace
NAMESPACE                                                                                      
default                                                                                        
hbase                                                                                          
ns1                                                                                            
3 row(s)
Took 0.0654 seconds 
(2)list_namespace_tables : 查询指定命名空间的表
hbase:038:0> list_namespace_tables 'ns1'
TABLE                                                                                          
t1                                                                                             
1 row(s)
Took 0.1958 seconds                                                                            
=> ["t1"]
(3)create_namespace : 创建指定的命名空间
hbase:039:0> create_namespace 'ns2'
Took 0.4516 seconds 
(4)describe_namespace : 查询指定命名空间的结构
hbase:041:0> describe_namespace 'ns2'
DESCRIPTION                                                                                    
{NAME => 'ns2'} 
(5)alter_namespace :修改命名空间的结构
hbase:045:0> alter_namespace 'ns2',{METHOD=>'set','name'=>'new'}
Took 1.6665 seconds                                                                            
hbase:046:0> describe_namespace 'ns2'
DESCRIPTION                                                                                    
{NAME => 'ns2', name => 'new'}                                                                 
Quota is disabled
Took 0.2023 seconds
hbase:047:0> alter_namespace 'ns2',{METHOD=>'unset','NAME'=>'name'}
Took 0.1602 seconds                                                                            
hbase:048:0> describe_namespace 'ns2'
DESCRIPTION                                                                                    
{NAME => 'ns2'}                                                                                
Quota is disabled
Took 0.0878 seconds 
(6)drop_namespace:删除命名空间
hbase:049:0> drop_namespace 'ns2'
Took 0.4194 seconds                                                                            
hbase:050:0> list_namespace
NAMESPACE                                                                                      
default                                                                                        
hbase                                                                                          
ns1                                                                                            
3 row(s)
Took 0.0610 seconds

四、DDL操作命令

DDL分组中包含的操作命令很多,主要用于对HBase数据库表的相关管理操作,主要包括创建表、修改表、删除表、列出表、启用表、禁用表等操作。

(1)create:建表(建表的时候,必须至少指定一个列族名称)

在默认的命名空间中,创建表students,并包含一个名为info的列族,列族属性默认。

#如果保留默认的列族设置,建表时直接写列族的名字就可以了
hbase:070:0> create 'students','info'
2024-03-21 00:25:59,140 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:postOperationResult(3591)) - Operation: CREATE, Table Name: default:students, procId: 131 completed
Created table students
Took 3.4314 seconds                                                                            
=> Hbase::Table - students

 在指定的ns1命名空间中,创建表t1,并包含一个名为f1的列族,列族属性自定义。

#建表的同时指定列族属性
hbase:071:0> create 'ns1:t1',{NAME=>'f1',VERSIONS=>5}
2024-03-21 00:28:43,872 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:postOperationResult(3591)) - Operation: CREATE, Table Name: ns1:t1, procId: 134 completed
Created table ns1:t1
Took 2.3465 seconds                                                                            
=> Hbase::Table - ns1:t1

(2)list : 查询所有的表
hbase:072:0> list
TABLE                                                                                          
students                                                                                       
ns1:t1                                                                                         
2 row(s)
Took 0.2459 seconds                                                                            
=> ["students", "ns1:t1"]
(3)describe/desc : 查询表结构
hbase:074:0> describe 'students'
Table students is ENABLED                                                                      
students, {TABLE_ATTRIBUTES => {METADATA => {'hbase.store.file-tracker.impl' => DEFAULT'}}}   
COLUMN FAMILIES DESCRIPTION                                                                    
{NAME => 'info', INDEX_BLOCK_ENCODING => 'NONE', VERSIONS => '1', KEEP_DELETED_CELLS => 'FALSE'
, DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', MIN_VERSIONS => '0', REPLICATION_SCOPE => '0
', BLOOMFILTER => 'ROW', IN_MEMORY => 'false', COMPRESSION => 'NONE', BLOCKCACHE => 'true', BLO
CKSIZE => '65536 B (64KB)'}                                                                    
1 row(s)
Quota is disabled
Took 1.1379 seconds

(4)exists : 判断指定表明是否存在

hbase:075:0> exists 'ns1:t1'
Table ns1:t1 does exist                                                                        
Took 0.0714 seconds                                                                            
=> true
(5)alter:修改表,添加、修改、删除列簇信息

为students表格,增加一个列族score。

hbase:076:0> alter 'students','score'
Updating all regions with the new schema...
1/1 regions updated.
Done.
Took 3.8994 seconds                                                                            
hbase:077:0> desc 'students'
Table students is ENABLED                                                                      
students, {TABLE_ATTRIBUTES => {METADATA => {'hbase.store.file-tracker.impl' => 'DEFAULT'}}}   
COLUMN FAMILIES DESCRIPTION                                                                    
{NAME => 'info', INDEX_BLOCK_ENCODING => 'NONE', VERSIONS => '1', KEEP_DELETED_CELLS => 'FALSE'
, DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', MIN_VERSIONS => '0', REPLICATION_SCOPE => '0
', BLOOMFILTER => 'ROW', IN_MEMORY => 'false', COMPRESSION => 'NONE', BLOCKCACHE => 'true', BLO
CKSIZE => '65536 B (64KB)'}                                                                    

{NAME => 'score', INDEX_BLOCK_ENCODING => 'NONE', VERSIONS => '1', KEEP_DELETED_CELLS => 'FALSE
', DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', MIN_VERSIONS => '0', REPLICATION_SCOPE => '
0', BLOOMFILTER => 'ROW', IN_MEMORY => 'false', COMPRESSION => 'NONE', BLOCKCACHE => 'true', BL
OCKSIZE => '65536 B (64KB)'}                                                                   

2 row(s)
Quota is disabled
Took 0.0753 seconds

修改表格students的列族score的属性VERSIONS的值为5。

hbase:078:0> alter 'students',NAME=>'score',VERSIONS=>5
Updating all regions with the new schema...
1/1 regions updated.
Done.
Took 1.9776 seconds

删除表格表格students的列族score。

hbase:079:0> alter 'students',NAME=>'score',METHOD=>'delete'
Updating all regions with the new schema...
1/1 regions updated.
Done.
Took 2.5517 seconds                                                                            
hbase:080:0> desc 'students'
Table students is ENABLED                                                                      
students, {TABLE_ATTRIBUTES => {METADATA => {'hbase.store.file-tracker.impl' =>'DEFAULT'}}}   
COLUMN FAMILIES DESCRIPTION                                                                    
{NAME => 'info', INDEX_BLOCK_ENCODING => 'NONE', VERSIONS => '1', KEEP_DELETED_CELLS => 'FALSE'
, DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', MIN_VERSIONS => '0', REPLICATION_SCOPE => '0
', BLOOMFILTER => 'ROW', IN_MEMORY => 'false', COMPRESSION => 'NONE', BLOCKCACHE => 'true', BLO
CKSIZE => '65536 B (64KB)'}                                                                    
1 row(s)
Quota is disabled
Took 0.2625 seconds 

(6)disable:禁用表格

hbase:083:0> disable 'students'
2024-03-21 00:52:29,298 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:rpcCall(926)) - Started disable of students
2024-03-21 00:52:29,810 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:postOperationResult(3591)) - Operation: DISABLE, Table Name: default:students, procId: 158 completed
Took 0.5354 seconds

(7)enable:启用表格

hbase:084:0> enable 'students'
2024-03-21 00:52:51,239 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:rpcCall(866)) - Started enable of students
2024-03-21 00:52:51,882 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:postOperationResult(3591)) - Operation: ENABLE, Table Name: default:students, procId: 161 completed
Took 0.6636 seconds 

(8)drop:删除表格(先要disable表,再删除表

hbase:085:0> disable 'ns1:t1'
2024-03-21 00:53:34,360 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:rpcCall(926)) - Started disable of ns1:t1
2024-03-21 00:53:34,727 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:postOperationResult(3591)) - Operation: DISABLE, Table Name: ns1:t1, procId: 164 completed
Took 0.3910 seconds                                                                            
hbase:086:0> drop 'ns1:t1'
2024-03-21 00:53:43,300 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:postOperationResult(3591)) - Operation: DELETE, Table Name: ns1:t1, procId: 167 completed
Took 0.7044 seconds                                                                            
hbase:087:0> list
TABLE                                                                                          
students                                                                                       
1 row(s)
Took 0.0301 seconds                                                                            
=> ["students"]

五、DML操作命令

DML包含的操作命令很多,主要用于对数据表中的数据进行操作,主要包括全表扫描、读取单行数据、写入数据和删除数据等操作。

(1)put:插入数据(put命令,不能一次性插入多条)

往students表格的info列族,增加2条数据:

行键为s001,列限定符name,单元格值Jack;行键为s001,列限定符age,单元格值20;

往students表格的score列族,增加2条数据:

行键为s001,列限定符Chinese,单元格值90;行键为s001,列限定符Math,单元格值85;

hbase:088:0> put 'students','s001','info:name','Jack'
Took 2.2121 seconds 
hbase:092:0> put 'students','s001','info:age','20'
Took 0.0543 seconds 
hbase:096:0> put 'students','s001','score:Chinese','90'
Took 0.0380 seconds                                                                            
hbase:097:0> put 'students','s001','score:Math','85'
Took 0.0148 seconds 

修改students表格的单元格值:行键为s001,列限定符name,单元格值'Jack'修改为'Mike'。

hbase:089:0> put 'students','s001','info:name','Mike'
Took 0.2027 seconds

(2)get:查询数据

查询students表格,行键为s001的所有数据。

hbase:098:0> get 'students','s001'
COLUMN                   CELL                                                                  
 info:age                timestamp=2024-03-21T01:11:05.881, value=20                           
 info:name               timestamp=2024-03-21T01:04:05.318, value=Mike                         
 score:Chinese           timestamp=2024-03-21T01:16:34.006, value=90                           
 score:Math              timestamp=2024-03-21T01:16:48.854, value=85                           
1 row(s)
Took 0.1583 seconds

查询行键为s001,数据列为socre:Chinese的单元格值。

hbase:103:0> get 'students','s001','score:Chinese'
COLUMN                   CELL                                                                  
 score:Chinese           timestamp=2024-03-21T01:16:34.006, value=90                           
1 row(s)
Took 0.0142 seconds

查询学生Mike的多次数学成绩。(确保score列族数学的VERSION版本不止为1)

hbase:108:0> alter 'students',NAME=>'score',VERSIONS=>5
Updating all regions with the new schema...
1/1 regions updated.
Done.
Took 3.6026 seconds

1)写入学生Mike的多次数学成绩

hbase:100:0> put 'students','s001','score:Math','92'
Took 0.0871 seconds                                                                            
hbase:101:0> put 'students','s001','score:Math','100'
Took 0.0158 seconds

2)读取学生Mike最新的一次数学成绩(get命令默认只读出最新写入的单元格值,时间戳版本最大的单元格值内容)。

hbase:102:0> get 'students','s001','score:Math'
COLUMN                   CELL                                                                  
 score:Math              timestamp=2024-03-21T01:23:13.668, value=100                          
1 row(s)
Took 0.0771 seconds 

3)查询学生Mike的3次数学成绩。

hbase:111:0> get 'students','s001',{COLUMN=>'score:Math',VERSIONS=>3}
COLUMN                   CELL                                                                  
 score:Math              timestamp=2024-03-21T01:32:55.629, value=85                           
 score:Math              timestamp=2024-03-21T01:32:35.808, value=92                           
 score:Math              timestamp=2024-03-21T01:23:13.668, value=100                          
1 row(s)
Took 0.2027 seconds

(3)scan:扫描数据(读取所有行的每个列族的所有数据列的最新时间戳版本的单元格值)

1)为了获得更好效果,现在students表中写入多行数据。

hbase:112:0> put 'students','s002','info:name','Tom'                                                                           
hbase:113:0> put 'students','s002','info:age','19'
hbase:114:0> put 'students','s002','score:Chinese','87'                                                                           
hbase:115:0> put 'students','s002','score:Math','70'
hbase:116:0> put 'students','s003','info:name','Lucy'                                                                            
hbase:117:0> put 'students','s003','info:age',18'
hbase:122:0> put 'students','s003','score:Chinese','80'                                                                           
hbase:123:0> put 'students','s003','score:Math','90'

2)对数据表students进行全表扫描。

hbase:124:0> scan 'students'
ROW                      COLUMN+CELL                                                           
 s001                    column=info:age, timestamp=2024-03-21T01:11:05.881, value=20          
 s001                    column=info:name, timestamp=2024-03-21T01:04:05.318, value=Mike       
 s001                    column=score:Chines, timestamp=2024-03-21T01:16:34.006, value=90      
 s001                    column=score:Math, timestamp=2024-03-21T01:32:55.629, value=85        
 s002                    column=info:Chinese, timestamp=2024-03-21T01:43:05.067, value=89       
 s002                    column=info:Math, timestamp=2024-03-21T01:43:22.209, value=95         
 s002                    column=info:age, timestamp=2024-03-21T01:42:45.619, value=19          
 s002                    column=info:name, timestamp=2024-03-21T01:42:33.917, value=Tom        
 s003                    column=info:age, timestamp=2024-03-21T01:44:16.318, value=18          
 s003                    column=info:name, timestamp=2024-03-21T01:43:45.397, value=Lucy       
 s003                    column=score:Chinese, timestamp=2024-03-21T01:45:40.078, value=80      
 s003                    column=score:Math, timestamp=2024-03-21T01:45:53.743, value=90        
3 row(s)
Took 0.2514 seconds 

3)对数据表students的指定行键范围的数据进行扫描。

#若只指定开始的行键STARTROW,会一直扫描到最后,包含STARTROW和最后一行数据
hbase:135:0> scan 'students',{STARTROW=>'s002'}
ROW                      COLUMN+CELL                                                           
 s002                    column=info:age, timestamp=2024-03-21T01:42:45.619, value=19          
 s002                    column=info:name, timestamp=2024-03-21T01:42:33.917, value=Tom        
 s002                    column=score:Chinese, timestamp=2024-03-21T01:48:44.123, value=87      
 s002                    column=score:Math, timestamp=2024-03-21T01:48:59.578, value=70        
 s003                    column=info:age, timestamp=2024-03-21T01:44:16.318, value=18          
 s003                    column=info:name, timestamp=2024-03-21T01:43:45.397, value=Lucy       
 s003                    column=score:Chinese, timestamp=2024-03-21T01:45:40.078, value=80      
 s003                    column=score:Math, timestamp=2024-03-21T01:45:53.743, value=90        
2 row(s)
Took 0.6646 seconds 
#同时指定STARTROW和STOPROW,行键范围包括STARTROW,但不包含STOPROW的数据
hbase:136:0> scan 'students',{STARTROW=>'s002',STOPROW=>'s003'}
ROW                      COLUMN+CELL                                                           
 s002                    column=info:age, timestamp=2024-03-21T01:42:45.619, value=19          
 s002                    column=info:name, timestamp=2024-03-21T01:42:33.917, value=Tom        
 s002                    column=score:Chinese, timestamp=2024-03-21T01:48:44.123, value=87      
 s002                    column=score:Math, timestamp=2024-03-21T01:48:59.578, value=70        
1 row(s)
Took 0.0566 seconds

4)对数据表students的指定列族info进行扫描。

hbase:137:0> scan 'students',{COLUMNS=>['info']}
ROW                      COLUMN+CELL                                                           
 s001                    column=info:age, timestamp=2024-03-21T01:11:05.881, value=20          
 s001                    column=info:name, timestamp=2024-03-21T01:04:05.318, value=Mike       
 s002                    column=info:age, timestamp=2024-03-21T01:42:45.619, value=19          
 s002                    column=info:name, timestamp=2024-03-21T01:42:33.917, value=Tom        
 s003                    column=info:age, timestamp=2024-03-21T01:44:16.318, value=18          
 s003                    column=info:name, timestamp=2024-03-21T01:43:45.397, value=Lucy       
3 row(s)
Took 0.2538 seconds

5)对数据表students的指定列族info下的name数据列进行扫描。

hbase:138:0> scan 'students',{COLUMNS=>['info:name']}
ROW                      COLUMN+CELL                                                           
 s001                    column=info:name, timestamp=2024-03-21T01:04:05.318, value=Mike       
 s002                    column=info:name, timestamp=2024-03-21T01:42:33.917, value=Tom        
 s003                    column=info:name, timestamp=2024-03-21T01:43:45.397, value=Lucy       
3 row(s)
Took 0.0447 seconds

6)对数据表students的前2行数据进行扫描。

hbase:139:0> scan 'students',{LIMIT=>2}
ROW                      COLUMN+CELL                                                           
 s001                    column=info:age, timestamp=2024-03-21T01:11:05.881, value=20          
 s001                    column=info:name, timestamp=2024-03-21T01:04:05.318, value=Mike       
 s001                    column=score:Chinese, timestamp=2024-03-21T01:16:34.006, value=90      
 s001                    column=score:Math, timestamp=2024-03-21T01:32:55.629, value=85        
 s002                    column=info:age, timestamp=2024-03-21T01:42:45.619, value=19          
 s002                    column=info:name, timestamp=2024-03-21T01:42:33.917, value=Tom        
 s002                    column=score:Chinese, timestamp=2024-03-21T01:48:44.123, value=87      
 s002                    column=score:Math, timestamp=2024-03-21T01:48:59.578, value=70        
2 row(s)
Took 0.0328 seconds 
(4)count:统计表行数
hbase:141:0> count 'students'
3 row(s)
Took 1.1445 seconds                                                                            
=> 3
(5)delete:删除指定数据列单元格

删除数据表students的指定数据列单元格(删除行键003的列族score下的列限定符Math单元格)。

hbase:143:0> delete 'students','s003','score:Math'
Took 0.0677 seconds                                                                            
hbase:144:0> get 'students','s003'
COLUMN                   CELL                                                                  
 info:age                timestamp=2024-03-21T01:44:16.318, value=18                           
 info:name               timestamp=2024-03-21T01:43:45.397, value=Lucy                         
 score:Chines            timestamp=2024-03-21T01:45:40.078, value=80                           
1 row(s)
Took 0.1472 seconds

(6)deleteall:删除指定数据行

1)删除数据表students的行键为s003的数据。

hbase:145:0> deleteall 'students','s003'
Took 0.1017 seconds                                                                            
hbase:146:0> get 'students','s003'
COLUMN                   CELL                                                                  
0 row(s)
Took 0.0270 seconds 

2)删除数据表students的行键为s002,列名为score:chinese的所有数据。

hbase:148:0> deleteall 'students','s002','score:Chinese'
Took 0.0182 seconds                                                                            
hbase:149:0> get 'students','s002'
COLUMN                   CELL                                                                  
 info:age                timestamp=2024-03-21T01:42:45.619, value=19                           
 info:name               timestamp=2024-03-21T01:42:33.917, value=Tom                          
 score:Math              timestamp=2024-03-21T01:48:59.578, value=70                           
1 row(s)
Took 0.0348 seconds

(7)append:给指定列的单元格追加内容

给行键s002,列名info: name的数据列单元格值Tom后面追加son后变成Tomson。

hbase:007:0> append 'students','s002','info:name','son'
CURRENT VALUE = Tomson
Took 0.9325 seconds 
hbase:008:0> get 'students','s002'
COLUMN                                         CELL                                                                                                                                 
 info:age                                      timestamp=2024-03-21T01:42:45.619, value=19                                                                                          
 info:name                                     timestamp=2024-03-21T06:16:33.838, value=Tomson                                                                                      
 score:Math                                    timestamp=2024-03-21T01:48:59.578, value=70                                                                                          
1 row(s)
Took 0.4914 seconds 

(8)truncate:清空指定数据表的全部数据内容

清空数据表students的内容。

hbase:009:0> truncate 'students'
Truncating 'students' table (it may take a while):
Disabling table...
2024-03-21 06:17:52,730 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:rpcCall(926)) - Started disable of students
2024-03-21 06:17:57,843 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:postOperationResult(3591)) - Operation: DISABLE, Table Name: default:students, procId: 194 completed
Truncating table...
2024-03-21 06:17:57,898 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:rpcCall(806)) - Started truncating students
2024-03-21 06:18:02,439 INFO  [main] client.HBaseAdmin (HBaseAdmin.java:postOperationResult(3591)) - Operation: TRUNCATE, Table Name: default:students, procId: 197 completed
Took 10.4274 seconds                                                                                                                                                                
hbase:010:0> scan 'students'
ROW                                            COLUMN+CELL                                                                                                                          
0 row(s)
Took 6.5341 seconds

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/497046.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

【JavaWeb】Day22.maven安装介绍

目录 一.初识Maven 什么是maven? Maven的作用 二.Maven概述 1. Maven介绍 2.Maven模型 3. Maven仓库 三. Maven安装 1.下载 2. 安装步骤 1. 解压安装 2. 配置本地仓库 3.配置阿里云私服 4. 配置Maven环境变量 一.初识Maven 什么是maven? Maven是apache旗下的一个…

2024年数字IC秋招-复旦微电子-数字前端/验证-笔试题

文章目录 前言一、基础题/选做题1、什么是DMA,主要优点是什么,为什么这是它的优点2、SV的代码如下,给出$display中变量的值3、列出4bit格雷码编码,画出二进制码转格雷码电路图4、如何从慢时钟域捕获快时钟域脉冲信号,画…

行为管理设置能监控或者检测哪些东西

3 月 27 日,国新办举行“推动高质量发展”系列主题新闻发布会,浙江省省长王浩:全省市场经营主体 1040 万户,相当于平均每 6.5 个浙江人就有 1 个老板。 不由让小编想到,这么多老板,那么老板创办企业也怪不容…

蓝桥杯省三保底代码——数显+按键功能实现

目录 前言 一、为什么能保底省三 二、数显模块的实现 1.数码管显示​编辑 1)断码表 2)位选 3)段选 4)扫描 2.菜单 三、按键功能的实现 1.按键扫描 2.菜单切换 四、完整代码演示 五、结语 前言 上一期介绍全家桶时&…

【容器源码篇】Set容器(HashSet,LinkedHashSet,TreeSet的特点)

文章目录 ⭐容器继承关系&#x1f339;Set容器&#x1f5d2;️HashSet源码解析构造方法public HashSet()public HashSet(Collection<? extends E> c)public HashSet(int initialCapacity, float loadFactor)HashSet(int initialCapacity, float loadFactor, boolean dum…

OpenHarmony实战开发-Web组件的使用

介绍 本篇Codelab使用ArkTS语言实现一个简单的免登录过程&#xff0c;向大家介绍基本的cookie管理操作。主要包含以下功能&#xff1a; 获取指定url对应的cookie的值。设置cookie。清除所有cookie。免登录访问账户中心。 原理说明 本应用旨在说明Web组件中cookie的管理操作。…

蓝桥杯_day6

文章目录 不同路径不同路径II拿金币珠宝的最高价值 不同路径 【题目描述】 一个机器人位于一个 m x n 网格的左上角 &#xff08;起始点在下图中标记为 “Start” &#xff09;。 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角&#xff08;在下图中标记为…

主成成分分析法

问题引入&#xff1a; 公司评价 假设你是一个公司的财务经理&#xff0c;掌握了公司所有数据&#xff0c;如:固定资产、流动资金、借贷的数额和期限、各种税费、工资支出、原料消耗、产值、利润、折扣、职工人数、分工和教育程度等等&#xff0c;你要如何选择关键因素进行汇报…

宝宝灯塔:成都辅助生殖市场研究,海外试管成热门

据宝宝灯塔网介绍&#xff1a;在成都的辅助生殖市场中&#xff0c;生殖医院一直是主体&#xff0c;它们提供专业的医疗服务和治疗&#xff0c;帮助不孕不育人群实现生育梦想。然而&#xff0c;随着科技的进步和市场的变化&#xff0c;互联网企业也开始涉足这一领域&#xff0c;…

盏燕生物科技将出席2024第七届燕窝天然滋补品博览会

参展企业介绍 深圳市盏燕生物科技有限公司&#xff0c;办公室地址位于中国第一个经济特区&#xff0c;鹏城深圳&#xff0c;深圳市龙岗区平湖街道禾花社区富安大道18号亚钢工贸大楼1栋1017A&#xff0c;我公司主要提供一般经营项目是&#xff1a;初级农产品、海产品、化妆品、…

低代码开发能用在哪些行业?

低代码开发平台&#xff08;Low code development platform&#xff09;是无需编码&#xff08;0代码&#xff09;或通过少量代码就可以快速生成应用程序的开发平台。通过可视化进行应用程序开发的方法&#xff0c;使具有不同经验水平的开发人员可以通过图形化的用户界面&#…

computed计算属性、watch侦听器、生命周期

计算属性 点击查看 Vue文档 基础语法 多次使用计算属性&#xff0c;计算属性方法也只执行一次&#xff0c; 调用计算属性的方法不能加() 直接修改计算数学的值 计算属性不能通过双向绑定修改&#xff08;默认不能改&#xff09; 想要修改计算属性&#xff0c;就必须使用计…

夜晚水闸3D可视化:科技魔法点亮水利新纪元

在宁静的夜晚&#xff0c;当城市的霓虹灯逐渐暗淡&#xff0c;你是否曾想过&#xff0c;那些默默守护着城市安全的水闸&#xff0c;在科技的魔力下&#xff0c;正焕发出别样的光彩&#xff1f;今天&#xff0c;就让我们一起走进夜晚水闸3D模型&#xff0c;感受科技为水利带来的…

包子凑数(蓝桥杯,闫氏DP分析法)

题目描述&#xff1a; 小明几乎每天早晨都会在一家包子铺吃早餐。 他发现这家包子铺有 N 种蒸笼&#xff0c;其中第 i 种蒸笼恰好能放 Ai 个包子。 每种蒸笼都有非常多笼&#xff0c;可以认为是无限笼。 每当有顾客想买 X 个包子&#xff0c;卖包子的大叔就会迅速选出若干笼…

计算机网络——29ISP之间的路由选择:BGP

ISP之间的路由选择&#xff1a;BGP 层次路由 一个平面的路由 一个网络中的所有路由器的地位一样通过LS&#xff0c;DV&#xff0c;或者其他路由算法&#xff0c;所有路由器都要知道其他所有路由器&#xff08;子网&#xff09;如何走所有路由器在一个平面 平面路由的问题 …

Liunx安装Nacos

Liunx安装Nacos 1、镜像下载 curl -O https://github.com/alibaba/nacos/releases/download/2.3.1/nacos-server-2.3.1.tar.gz2、解压到指定目录 tar -zxvf nacos-server-2.3.1.tar.gz -C /usr/local3、进入bin文件启动startup.sh文件 cd /usr/local/nacos/binsh startup.s…

精灵传信系统 匿名性系统 支持网站+小程序双端源码

精灵传信支持在线提交发送短信&#xff0c;查看回复短信&#xff0c;在线购买额度&#xff0c;自定义对接易支付&#xff0c;设置违禁词&#xff0c;支持网站小程序双端。 项目 地 址 &#xff1a; runruncode.com/php/19720.html 环境要求: PHP > 73 MySQL>5.6 Ngi…

Redis中的客户端(三)

客户端 身份验证 客户端状态的authenticated属性用于记录客户端是否通过了身份验证: typedef struct redisClient {// ...int authenticated;// ... } redisClient;如果authnticated的值为0&#xff0c;那么表示客户端未通过身份验证&#xff1b;如果authenticated的值为1&a…

分布式处理

前言 大家好&#xff0c;我是jiantaoyab&#xff0c;这是我作为学习笔记原理篇的最后一章&#xff0c;一台计算机在数据中心里是不够的。因为如果只有一台计算机&#xff0c;我们会遇到三个核心问题。第一个核心问题&#xff0c;叫作垂直扩展和水平扩展的选择问题&#xff0c;…

两年测开经历分享的测试开发学习路线

路线大纲 该学习路线一共是7个阶段&#xff0c;循序渐进&#xff0c;学习路线相对比较平缓图片 阶段0 : 前言 路线特点 适用于想转行做功能测试与测试开发的同学 给出目标、学习建议、关键知识点、最优资源以及各类资源推荐&#xff08;视频、书籍、文档、项目、工具等&am…