跳到主要内容

DROP BROKER

描述

该语句是删除 BROKER 节点,(仅限管理员使用)

语法:

删除所有 Broker
ALTER SYSTEM DROP ALL BROKER broker_name
删除某一个 Broker 节点
ALTER SYSTEM DROP BROKER broker_name "host:port"[,"host:port"...];

示例

  1. 删除所有 Broker

    ALTER SYSTEM DROP ALL BROKER broker_name
  2. 删除某一个 Broker 节点

    ALTER SYSTEM DROP BROKER broker_name "host:port"[,"host:port"...];

关键词

ALTER, SYSTEM, DROP, FOLLOWER, ALTER SYSTEM

最佳实践