SHOW-CONFIG
SHOW-CONFIG
Name
SHOW CONFIG
Description
该语句用于展示当前集群的配置
语法:
SHOW (FRONTEND|BACKEND) CONFIG [LIKE "pattern"];
查看FE配置项的结果中的各列含义如下:
- Key: 配置项名称
- Value: 配置项值
- Type: 配置项类型
- IsMutable: 是否可以通过 ADMIN SET CONFIG 命令设置
- MasterOnly: 是否仅适用于 Master FE
- Comment: 配置项说明
查看BE配置项的结果中的各列含义如下:
- BackendId: BE ID
- Host: BE的IP地址
- Key: 配置项名称
- Value: 配置项值
- Type: 配置型类型
- IsMutable: 是否可以修改
Example
查看当前FE节点的配置
SHOW FRONTEND CONFIG;
使用like谓词搜索当前Fe节点的配置
mysql> SHOW FRONTEND CONFIG LIKE '%check_java_version%';
+--------------------+-------+---------+-----------+------------+---------+
| Key | Value | Type | IsMutable | MasterOnly | Comment |
+--------------------+-------+---------+-----------+------------+---------+
| check_java_version | true | boolean | false | false | |
+--------------------+-------+---------+-----------+------------+---------+
1 row in set (0.01 sec)查看Be ID为
10001
的BE节点的配置项SHOW BACKEND CONFIG FROM 10001;
使用like谓词查看Be ID为
10001
的配置mysql> SHOW BACKEND CONFIG LIKE "be_port" FROM 10001;
+-----------+---------------+---------+-------+---------+-----------+
| BackendId | Host | Key | Value | Type | IsMutable |
+-----------+---------------+---------+-------+---------+-----------+
| 10001 | xx.xx.xxx.xxx | be_port | 9060 | int32_t | false |
+-----------+---------------+---------+-------+---------+-----------+
Keywords
SHOW, CONFIG