shuwenwei opened a new pull request, #16305:
URL: https://github.com/apache/iotdb/pull/16305

   ## Description
   ```
   showConfigurationStatement
       : SHOW (ALL)? CONFIGURATION (ON nodeId=INTEGER_VALUE)? (WITH DESC)?
       ;
   ```
   ## Examples
   ```
   IoTDB> show configuration
   +----------------------------------+---------------+---------------+
   |                              name|          value|  default_value|
   +----------------------------------+---------------+---------------+
   |                      cluster_name| defaultCluster| defaultCluster|
   |               cn_seed_config_node|127.0.0.1:10710|127.0.0.1:10710|
   |               dn_seed_config_node|127.0.0.1:10710|127.0.0.1:10710|
   |               cn_internal_address|      127.0.0.1|      127.0.0.1|
   |                  cn_internal_port|          10710|          10710|
   |                 cn_consensus_port|          10720|          10720|
   |                    dn_rpc_address|        0.0.0.0|        0.0.0.0|
   |                       dn_rpc_port|           6667|           6667|
   |               dn_internal_address|      127.0.0.1|      127.0.0.1|
   |                  dn_internal_port|          10730|          10730|
   |         dn_mpp_data_exchange_port|          10740|          10740|
   |   dn_schema_region_consensus_port|          10750|          10750|
   |     dn_data_region_consensus_port|          10760|          10760|
   |         schema_replication_factor|              1|              1|
   |           data_replication_factor|              1|              1|
   |cn_metric_prometheus_reporter_port|           9091|           9091|
   |dn_metric_prometheus_reporter_port|           9092|           9092|
   +----------------------------------+---------------+---------------+
   Total line number = 17
   It costs 0.186s
   IoTDB> show configuration on 1
   +----------------------------------+---------------+---------------+
   |                              name|          value|  default_value|
   +----------------------------------+---------------+---------------+
   |                      cluster_name| defaultCluster| defaultCluster|
   |               cn_seed_config_node|127.0.0.1:10710|127.0.0.1:10710|
   |               dn_seed_config_node|127.0.0.1:10710|127.0.0.1:10710|
   |               cn_internal_address|      127.0.0.1|      127.0.0.1|
   |                  cn_internal_port|          10710|          10710|
   |                 cn_consensus_port|          10720|          10720|
   |                    dn_rpc_address|        0.0.0.0|        0.0.0.0|
   |                       dn_rpc_port|           6667|           6667|
   |               dn_internal_address|      127.0.0.1|      127.0.0.1|
   |                  dn_internal_port|          10730|          10730|
   |         dn_mpp_data_exchange_port|          10740|          10740|
   |   dn_schema_region_consensus_port|          10750|          10750|
   |     dn_data_region_consensus_port|          10760|          10760|
   |         schema_replication_factor|              1|              1|
   |           data_replication_factor|              1|              1|
   |cn_metric_prometheus_reporter_port|           9091|           9091|
   |dn_metric_prometheus_reporter_port|           9092|           9092|
   +----------------------------------+---------------+---------------+
   Total line number = 17
   It costs 0.014s
   ```
   ```
   IoTDB> show all configuration
   
+---------------------------------------------------------+---------------+-----------------------------------------------------------------+
   |                                                     name|          value|  
                                                  default_value|
   
+---------------------------------------------------------+---------------+-----------------------------------------------------------------+
   |                                             cluster_name| defaultCluster|  
                                                 defaultCluster|
   |                                      cn_seed_config_node|127.0.0.1:10710|  
                                                127.0.0.1:10710|
   |                                      dn_seed_config_node|127.0.0.1:10710|  
                                                127.0.0.1:10710|
   |                                      cn_internal_address|      127.0.0.1|  
                                                      127.0.0.1|
   |                                         cn_internal_port|          10710|  
                                                          10710|
   |                                        cn_consensus_port|          10720|  
                                                          10720|
   |                                           dn_rpc_address|        0.0.0.0|  
                                                        0.0.0.0|
   |                                              dn_rpc_port|           6667|  
                                                           6667|
   |                                      dn_internal_address|      127.0.0.1|  
                                                      127.0.0.1|
   |                                         dn_internal_port|          10730|  
                                                          10730|
   |                                dn_mpp_data_exchange_port|          10740|  
                                                          10740|
   |                          dn_schema_region_consensus_port|          10750|  
                                                          10750|
   |                            dn_data_region_consensus_port|          10760|  
                                                          10760|
   |                        dn_join_cluster_retry_interval_ms|           null|  
                                                           5000|
   |                     config_node_consensus_protocol_class|           null|  
                org.apache.iotdb.consensus.ratis.RatisConsensus|
   |                                schema_replication_factor|              1|  
                                                              1|
   |                   schema_region_consensus_protocol_class|           null|  
                org.apache.iotdb.consensus.ratis.RatisConsensus|
   |                                  data_replication_factor|              1|  
                                                              1|
   |                     data_region_consensus_protocol_class|           null|  
                    org.apache.iotdb.consensus.iot.IoTConsensus|
   ...
   ```
   ```
   IoTDB> show configuration on 1 with desc
   
+----------------------------------+---------------+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   |                              name|          value|  default_value|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                     description|
   
+----------------------------------+---------------+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   |                      cluster_name| defaultCluster| defaultCluster|         
                                                                                
                                                                                
                                                                           Used 
for indicate cluster name and distinguish different cluster. If you need to 
modify the cluster name, it's recommended to use 'set configuration 
"cluster_name=xxx"' sql. Manually modifying configuration file is not 
recommended, which may cause node restart fail.        effectiveMode: 
hot_reload        Datatype: string|
   |               cn_seed_config_node|127.0.0.1:10710|127.0.0.1:10710|For the 
first ConfigNode to start, cn_seed_config_node points to its own 
cn_internal_address:cn_internal_port. For other ConfigNodes that to join the 
cluster, cn_seed_config_node points to any running ConfigNode's 
cn_internal_address:cn_internal_port. Note: After this ConfigNode successfully 
joins the cluster for the first time, this parameter is no longer used. Each 
node automatically maintains the list of ConfigNodes and traverses connections 
when restarting. Format: address:port   e.g. 127.0.0.1:10710        
effectiveMode: first_start        Datatype: String|
   |               dn_seed_config_node|127.0.0.1:10710|127.0.0.1:10710|         
                                                                                
                                                                        
dn_seed_config_node points to any running ConfigNode's 
cn_internal_address:cn_internal_port. Note: After this DataNode successfully 
joins the cluster for the first time, this parameter is no longer used. Each 
node automatically maintains the list of ConfigNodes and traverses connections 
when restarting. Format: address:port   e.g. 127.0.0.1:10710        
effectiveMode: first_start        Datatype: String|
   |               cn_internal_address|      127.0.0.1|      127.0.0.1|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
     Used for RPC communication inside cluster. Could set 127.0.0.1(for local 
test) or ipv4 address.        effectiveMode: first_start        Datatype: 
String|
   |                  cn_internal_port|          10710|          10710|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                             Used for RPC 
communication inside cluster.        effectiveMode: first_start        
Datatype: int|
   |                 cn_consensus_port|          10720|          10720|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                     Used for consensus communication among 
ConfigNodes inside cluster.        effectiveMode: first_start        Datatype: 
int|
   |                    dn_rpc_address|        0.0.0.0|        0.0.0.0|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
Used for connection of IoTDB native clients(Session) Could set 127.0.0.1(for 
local test) or ipv4 address        effectiveMode: restart        Datatype: 
String|
   |                       dn_rpc_port|           6667|           6667|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                              Used for connection of IoTDB native 
clients(Session) Bind with dn_rpc_address        effectiveMode: restart        
Datatype: int|
   |               dn_internal_address|      127.0.0.1|      127.0.0.1|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
         Used for communication inside cluster. could set 127.0.0.1(for local 
test) or ipv4 address.        effectiveMode: first_start        Datatype: 
String|
   |                  dn_internal_port|          10730|          10730|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                   Used for communication inside cluster. Bind 
with dn_internal_address        effectiveMode: first_start        Datatype: int|
   |         dn_mpp_data_exchange_port|          10740|          10740|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                    Port for data exchange among DataNodes inside cluster Bind 
with dn_internal_address        effectiveMode: first_start        Datatype: int|
   |   dn_schema_region_consensus_port|          10750|          10750|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
     port for consensus's communication for schema region inside cluster. Bind 
with dn_internal_address        effectiveMode: first_start        Datatype: int|
   |     dn_data_region_consensus_port|          10760|          10760|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
       port for consensus's communication for data region inside cluster. Bind 
with dn_internal_address        effectiveMode: first_start        Datatype: int|
   |         schema_replication_factor|              1|              1|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                      Default 
number of schema replicas        effectiveMode: first_start        Datatype: 
int|
   |           data_replication_factor|              1|              1|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                        Default 
number of data replicas        effectiveMode: first_start        Datatype: int|
   |cn_metric_prometheus_reporter_port|           9091|           9091|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                           The port of 
prometheus reporter of metric module        effectiveMode: restart        
Datatype: int|
   |dn_metric_prometheus_reporter_port|           9092|           9092|         
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                           The port of 
prometheus reporter of metric module        effectiveMode: restart        
Datatype: int|
   
+----------------------------------+---------------+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   Total line number = 17
   It costs 0.035s
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to