Kafka SASL zookeeper authentication

I found the issue by increasing the log level to DEBUG. Basically follow the steps below. I don’t use SSL but you will integrate it without any issue. Following are my configuration files: server.properties security.inter.broker.protocol=SASL_PLAINTEXT sasl.mechanism.inter.broker.protocol=PLAIN sasl.enabled.mechanisms=PLAIN authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer allow.everyone.if.no.acl.found=true auto.create.topics.enable=false broker.id=0 listeners=SASL_PLAINTEXT://localhost:9092 advertised.listeners=SASL_PLAINTEXT://localhost:9092 num.network.threads=3 num.io.threads=8 socket.send.buffer.bytes=102400 socket.receive.buffer.bytes=102400 socket.request.max.bytes=104857600 advertised.host.name=localhost num.partitions=1 num.recovery.threads.per.data.dir=1 log.flush.interval.messages=30000000 log.flush.interval.ms=1800000 log.retention.minutes=30 log.segment.bytes=1073741824 … Read more

How to create a Topic in Kafka through Java

Edit – Zookeeper is not required in newer version of Kafka. Please see answer by @Neeleshkumar Srinivasan Mannur for API version 0.11.0+ Original answer I fixed it.. After a long research.. ZkClient zkClient = new ZkClient(“localhost:2181”, 10000, 10000); AdminUtils.createTopic(zkClient, myTopic, 10, 1, new Properties()); From the above code, ZkClient will create a topic but this … Read more