kafka 中的zookeeper 命令行这样用!

以  zookeeper的地址:192.168.150.41      端口:2185     为例

hosts记录:   192.168.150.41   zk41

1.连接zoo:

bin/zookeeper-shell.sh     192.168.150.41:2185       或者      bin/zookeeper-shell.sh     zk41:2185 

截图

简单几个命令:

1.ls

ls 命令

2.查看broker信息:

get /brokers/ids/0

查看broker信息

常用命令:

connect host:port

get path [watch]

ls path [watch]

set path data [version]

rmr path

delquota [-n|-b] path

quit

printwatches on|off

create [-s] [-e] path data aclstat path [watch]

close

ls2 path [watch]

history

listquota path

setAcl path acl

getAcl pathsync path

redo cmdno

addauth scheme auth

delete path [version]

setquota -n|-b val path

你可能感兴趣的:(kafka 中的zookeeper 命令行这样用!)