AclCommand¶
AclCommand is an administration command-line utility to manage ACLs in a Kafka cluster.
AclCommand can be executed as kafka-acls shell script.
SecurityDisabledException¶
kafka-acls.sh requires Authorizer to be configured on a broker (when executed with --bootstrap-server option) or throws a SecurityDisabledException.
$ ./bin/kafka-acls.sh --list --bootstrap-server :9092
SecurityDisabledException: No Authorizer is configured on the broker
Executing Command¶
main selects the AclCommandService:
AdminClientServicewhen--bootstrap-serveroption is used- AuthorizerService with AclAuthorizer otherwise
In the end, main executes the operation:
addto add ACLsremoveto remove ACLslistto list ACLs for--topic,--groupor--clusterresource types