Error in configuring MirrorMaker2 between two external clusters on separate VMs with TLS enabled #11072
Replies: 2 comments 1 reply
-
You have TLS authentication configured on the Kafka clusters but not in Mirror Maker 2. So that would be start - to either remove it from the Kafka configuration or add it to the MM2. Please check the docs and examples on GitHub for more details. |
Beta Was this translation helpful? Give feedback.
-
hmm, I've removed the tls authentication from both the kafka clusters and redeployed them, copied the new cert secret from the source cluster vm and deployed it on the target cluster vm in the kafka ns. The mirromaker is also redeployed too with the new port number (32000) for the source ip.
Now the mirrormaker is getting deployed and is running, and in its logs initially some errors are flashed, but eventually I am getting the following logs:
This indicates to me, that the clusters are connected, but when I am trying to send some message from source cluster using cli based kafka producer pod on the topic: However, when I deploy the mirrormaker without tls I am able to use the same producer and consumer and it is working fine there.
But I don't get such a log in the with tls mirrormaker setup.
|
Beta Was this translation helpful? Give feedback.
-
I am trying to establish tls connection between two kafka clusters deployed on two different VMs using kafka Mirrormaker2.
I have made the following deployments:
VM1 (Source kafka cluster) (10.195.29.2)
Kafka-source-cluster.yaml:
VM2 (Target kafka cluster) (10.195.18.193)
Kafka-target-cluster.yaml:
Same as above, just replace
source
bytarget
Kafka-tls-mirrormaker2.yaml: (deployed on the target VM i.e. VM2)
The port 30909 on which tls port of source cluster is forwarded.
For the secret: kafka-source-cluster-ca-cert, I have extracted the yaml file of this secret and used this yaml file to deploy the secret on the VM2 (since mirrormaker requires both the certificates as secrets in the same namespace of the VM2 in which it is deployed.)
The source-secret.yaml file used to deploy the kafka-source-cluster-ca-cert onto kafka namespace of VM2 looks like this:
(I've commented the ownerReference block as I was not able to deploy the secret on the Kafka cluster 2 with it in place, so thought that its unnecessary so removed it.)
I have followed this: #2436 and have included he
ssl.endpoint.identification.algorithm: ""
in the config too, after that when all the things are deployed I am getting the following error in the logs of the deployed mirrormaker2:I tried the whole setup without tls and it was working perfectly, so there is something with tls certs thats causing the issue.
Don’t know what to do, any help is appreciated as it is quite crucial for me!
Kindly reply if any further clarification is required.
@scholzj please help me out with this
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions