This statement is used to operate on nodes in a system. (Administrator only!) Grammar:
Explain:
Host can be hostname or IP address
heartbeat_port is the heartbeat port of the node
Adding and deleting nodes are synchronous operations. These two operations do not take into account the existing data on the node, the node is directly deleted from the metadata, please use cautiously.
Node offline operations are used to secure offline nodes. This operation is asynchronous. If successful, the node will eventually be removed from the metadata. If it fails, the offline will not be completed.
The offline operation of the node can be cancelled manually. See CANCEL DECOMMISSION for details
Load error hub: Currently, two types of Hub are supported: Mysql and Broker. You need to specify “type” = “mysql” or “type” = “broker” in PROPERTIES. If you need to delete the current load error hub, you can set type to null.
Hub of Mysql type needs to specify the following parameters: host: mysql host port: mysql port user: mysql user password: mysql password database mysql database table: mysql table
Modify BE node attributes currently supports the following attributes:
Add a node ALTER SYSTEM ADD BACKEND “host:port”;
Adding an idle node ALTER SYSTEM ADD FREE BACKEND “host:port”;
Delete two nodes ALTER SYSTEM DROP BACKEND “host1:port”, “host2:port”;
offline two nodes ALTER SYSTEM DECOMMISSION BACKEND “host1:port”, “host2:port”;
Add two Hdfs Broker ALTER SYSTEM ADD BROKER hdfs “host1:port”, “host2:port”;
Add a load error hub of Mysql type ALTER SYSTEM SET LOAD ERRORS HUB PROPERTIES (“type”= “mysql”, “host” = “192.168.1.17” “port” = “3306”, “User” = “my” name, “password” = “my_passwd”, “database” = “doris_load”, “table” = “load_errors” );
添加一个 Broker 类型的 load error hub ALTER SYSTEM SET LOAD ERRORS HUB PROPERTIES (“type”= “broker”, “Name” = BOS, “path” = “bos://backup-cmy/logs”, “bos_endpoint” =“http://gz.bcebos.com”, “bos_accesskey” = “069fc278xxxxxx24ddb522”, “bos_secret_accesskey”=“700adb0c6xxxxxx74d59eaa980a” );
Delete the current load error hub ALTER SYSTEM SET LOAD ERRORS HUB PROPERTIES (“type”= “null”);
Modify BE resource tag
ALTER SYSTEM MODIFY BACKEND “host1:9050” SET (“tag.location” = “group_a”);
ALTER SYSTEM MODIFY BACKEND “host1:9050” SET (“disable_query” = “true”);
ALTER SYSTEM MODIFY BACKEND “host1:9050” SET (“disable_load” = “true”);
AGE,SYSTEM,BACKGROUND,BROKER,FREE