Doris常用命令

连接Doris

1
mysql -h doris-fe -P 9030 -uroot

默认root密码为空。

节点管理

增加Backend

1
ALTER SYSTEM ADD BACKEND "be_host:heartbeat-service_port";

heartbeat-service_port默认为9050,即:

1
ALTER SYSTEM ADD BACKEND "be_host:9050";

查看Backend

1
SHOW PROC '/backends'

增加Broker

1
ALTER SYSTEM ADD BROKER broker_name "broker_host1:broker_ipc_port1","broker_host2:broker_ipc_port2",...;

启动服务

启动FE

1
bin/start_fe.sh --daemon

启动BE

1
bin/start_be.sh --daemon

启动Broker

1
bin/start_broker.sh --daemon


转载请注明出处:Doris常用命令
原文地址:https://www.xiaotanzhu.com/%E6%95%B0%E6%8D%AE%E4%BB%93%E5%BA%93/2022-07-31-doris-commands.html