Local machine cannot access to aws MSK

0

I followed "public access" to set up the configuration. I have two goals, Firstly, I want to create topic from local terminal by using this command line "<path-to-your-kafka-installation>/bin/kafka-topics.sh --create --zookeeper ZookeeperConnectString --replication-factor 3 --partitions 1 --topic ExampleTopicName", but it always return "the broker is not available". Secondly, I want to connect MKS from local .Net Application. However, it seams cannot connect to the MKS successfully.

This is my some configuration that attach on my MKS

  1. Create public subnet 172.31.0.0/20 and 172.31.16.0/20 and attach an Internet Gateway
  2. Close unauthenticated access control off and turn on SASL/SCRAM access-control methods. Besides, I attached an secret for this authentication and add allow.everyone.if.no.acl.found to false to cluster's configuration.
  3. Turn on public access
  4. Cluster configuration Enter image description here
  5. Producer ConfigurationEnter image description here
  6. Security GroupEnter image description here

Does anyone can give me some advice or hints? I do some research that not sure I have to add listeners in my cluster configuration? Thanks for your time and consideration.

1개 답변
0

Hi , This seems to be a connection issue to your broker. Can you check the following:

  1. Your inbound security group should allow traffic (on port 9196) from the public ipv4 address of your local machine.
  2. Your client secret is associated with the cluster
  3. Your client has the necessary kafka-acl permissions to perform create topic operation

Hope this helps.

AWS
답변함 2년 전

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

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

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

관련 콘텐츠