Closed skate9819 closed 5 years ago
Oh. I found a solution: ans_1, err1 := cluster.ListAcls(sarama.AclFilter{ ResourceType: sarama.AclResourceAny, ResourcePatternTypeFilter: sarama.AclPatternLiteral, Version: 1, Principal: &User, Operation: sarama.AclOperationAny, PermissionType: sarama.AclPermissionAny, })
Versions
Sarama Version:1.22.1 Kafka Version:V2_2_0_0 Go Version:1.12.5
Configuration
Logs
When filing an issue please provide logs from Sarama and Kafka if at all possible. You can set
sarama.Logger
to alog.Logger
to capture Sarama debug output.Problem Description
i want to get acls of user. I'm running this code: ` config := sarama.NewConfig() config.Version = sarama.V2_2_00 timeout, := time.ParseDuration("20s") config.Net.DialTimeout = timeout
It returns an empty list ans_1. When i use confluent-5.2.1, and run
./kafka-acls --authorizer kafka.security.auth.SimpleAclAuthorizer --authorizer-properties zookeeper.connect=MY_ZOOKEEPER_HOST --principal User:bpm --list
, Then it works perfectly!What could be the problem?