Apache kafka 执行ACL命令时出错:处于状态时等待连接超时:正在连接

Apache kafka 执行ACL命令时出错:处于状态时等待连接超时:正在连接,apache-kafka,apache-zookeeper,Apache Kafka,Apache Zookeeper,更新ACL规则时出现ZK连接问题 ./bin/kafka-acls.sh --authorizer kafka.security.auth.SimpleAclAuthorizer --authorizer-properties zookeeper.connect=xxx.xxx.xx3:2181,xxx.xxx.xx2:2181,xxx.xxx.xx1:2181 --add --allow-principal User:xxxxxxxx --operation Read --topic xxxx

更新ACL规则时出现ZK连接问题

./bin/kafka-acls.sh --authorizer kafka.security.auth.SimpleAclAuthorizer --authorizer-properties zookeeper.connect=xxx.xxx.xx3:2181,xxx.xxx.xx2:2181,xxx.xxx.xx1:2181 --add --allow-principal User:xxxxxxxx --operation Read --topic xxxxxxxxxx
错误间歇性发生,无法确定根本原因

于2020年6月4日添加 在localhost上运行似乎太慢,无法超时

./bin/kafka-acls.sh --authorizer kafka.security.auth.SimpleAclAuthorizer --authorizer-properties zookeeper.connect=localhost:2181 --add --allow-principal User:xxxxxxx --operation Read --topic xxxxxxx
./bin/kafka-acls.sh --authorizer kafka.security.auth.SimpleAclAuthorizer --authorizer-properties zookeeper.connect=hostxxxx001:2181,hostxxxx002:2181 --add --allow-principal User:xxxxxxx --operation Read --topic xxxxxxx
但是,导致超时的原因是针对集合运行

./bin/kafka-acls.sh --authorizer kafka.security.auth.SimpleAclAuthorizer --authorizer-properties zookeeper.connect=localhost:2181 --add --allow-principal User:xxxxxxx --operation Read --topic xxxxxxx
./bin/kafka-acls.sh --authorizer kafka.security.auth.SimpleAclAuthorizer --authorizer-properties zookeeper.connect=hostxxxx001:2181,hostxxxx002:2181 --add --allow-principal User:xxxxxxx --operation Read --topic xxxxxxx