Can I use Kafka in KRaft mode on AWS MSK?

0

I would like to use Kafka in KRaft mode instead of Zookeeper on AWS, since Kraft mode seems to be the future of Kafka. As I understand, basic solution from AWS for Kafka is AWS MSK. But in MSK documentation I see that they mention that they use Zookeeper under the hood of their infrastructure - https://aws.amazon.com/msk/faqs/ :

... With a few clicks in the console, you can create an Amazon MSK cluster. From there, Amazon MSK replaces unhealthy brokers, automatically replicates data for high availability, manages Apache ZooKeeper nodes, automatically deploys hardware patches as needed, manages the integrations with AWS services, makes important metrics visible through the console, and supports Apache Kafka version upgrades so you can take advantage of improvements to the open-source version of Apache Kafka. ...

So is there a way to use AWS MSK with Kafka in KRaft mode?

I suppose, that I can run Kafka in KRaft mode during the Create Topic step in AWS MSK guide, but I am not sure that the whole infrastructure will be set up and work the proper way after that.

I am new with AWS MSK and will be appreciate for your help. Probably I need to use some other solutions from AWS for this task. Global idea is to use Kafka in my Java based application with microservices deployed on AWS.

질문됨 일 년 전1308회 조회
2개 답변
0

Amazon MSK currently uses Zookeeper for quorum management and there is no option currently to use KRaft on Amazon MSK. Please, see Supported Apache Kafka versions reference for more details on this.

Regarding the part when you mentioned the Create Topic step in AWS MSK guide, it does not use Kraft mode. Many of the command-line tools that previously used the --zookeeper flags have been updated to use the --bootstrap-server option. More details on the deprecation of the --zookeeper flag on Apache Kafka can be found on this KIP.

AWS
지원 엔지니어
Jaime_S
답변함 일 년 전
-1

On AWS MSK, you can use Kafka in KRaft mode. For managing Kafka clusters, AWS MSK supports both ZooKeeper and KRaft modes.

To create a Kafka cluster in KRaft mode, you can follow the same steps as creating a cluster with ZooKeeper, but with a few modifications.

To do this

Amazon MSK service > Create cluster > Basic configuration > Select Kafka Version > Cluster configuration > select the "KRaft" option for "Configuration type" > Configure the rest of the options for your Kafka cluster

Once your Kafka cluster in KRaft mode is up and running, you can create and manage topics using the Kafka command-line tools or the AWS MSK API.

profile picture
전문가
답변함 일 년 전
  • Hello, thank you for your reply! Could you please provide more details regarding this process? Is there any AWS Guide for it?

    I don't see the "KRaft" option for "Configuration type" when I am in the Create Cluster menu. I see only Amazon MSK Default Configuration and Custom Configuration, that is with empty drop-down menu.

  • There is no such thing as "basic configuration" for MSK cluster. KRaft is not available for MSK.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠