Unable to publish the messages using the producer console getting an error errors.TopicAuthorizationException: Not authorized to access topics #9765
damodarreddy08
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi..
I have created Strimizi Kafka clustering in Azure kubernetes, this is Strimzi operator Kafka and able to started clustering successfully post that i can able to create the kafka users and topics as well, but while pushing the messages using the producer console getting an below error
[xxxxx@zzzzzzz ~]$ kubectl -n kafka run kafka-producer -ti --image=quay.io/strimzi/kafka:0.38.0-kafka-3.5.0 --rm=true --restart=Never -- bin/kafka-console-producer.sh --bootstrap-server service/sims-kafka-cluster-kafka-bootstrap:9092 --topic ravi
If you don't see a command prompt, try pressing enter.
Cluster yaml file:
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: sims-kafka-cluster
spec:
entityOperator:
topicOperator: {}
userOperator: {}
kafka:
authorization:
type: simple
superUsers:
- CN=admin-user
version: 3.5.0
replicas: 3
listeners:
- name: plain
port: 9092
type: internal
tls: false
- name: tls
port: 9094
type: cluster-ip
tls: true
authentication:
type: tls
configuration:
bootstrap:
alternativeNames:
- kafkabootstrap-pilot.xxxx.xxx.net
- kafkabroker-pilot-0.xxxx.xxx.net
- kafkabroker-pilot-1.xxxx.xxx.net
- kafkabroker-pilot-2.xxxx.xxx.net
- kafka-cluster-kafka-tls-bootstrap.kafka.svc
brokers:
- broker: 0
advertisedHost: kafkabroker-pilot-0.xxxx.xxx.net
advertisedPort: 9095
- broker: 1
advertisedHost: kafkabroker-pilot-1.xxxx.xxx.net
advertisedPort: 9096
- broker: 2
advertisedHost: kafkabroker-pilot-2.xxxx.xxx.net
advertisedPort: 9097
config:
offsets.topic.replication.factor: 1
transaction.state.log.replication.factor: 1
transaction.state.log.min.isr: 1
log.message.format.version: "2.4"
storage:
type: persistent-claim
size: 2Gi
deleteClaim: true
zookeeper:
replicas: 3
storage:
type: persistent-claim
size: 1Gi
deleteClaim: true
user yaml file:
apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaUser
metadata:
namespace: kafka
name: kafka-user
labels:
strimzi.io/cluster: sims-kafka-cluster
spec:
authentication:
type: tls
authorization:
type: simple
acls:
- resource:
type: topic
name: ""
patternType: literal
operation: All
- resource:
type: group
name: ""
patternType: literal
operation: All
- resource:
type: cluster
name: ""
patternType: literal
operation: All
- resource:
type: transactionalId
name: ""
patternType: literal
operation: All
Beta Was this translation helpful? Give feedback.
All reactions