You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by "Iermulnik, Georgii" <ge...@sleepnumber.com.INVALID> on 2023/06/01 19:55:45 UTC
[MirrorMaker2] Missing «kafka.connect.mirror:type=MirrorCheckpointConnector» Mbean
Hello,
I had spent a while trying to figure out why I cannot see «kafka.connect.mirror:type=MirrorCheckpointConnector» Mbean and, since I've got stuck, I'm seeking assistance from the community.
My setup:
* MM2 is running inside Docker container (AWS ECS Fargate if that might matter)
* Src and Dst Kafka custers are AWS MSK (if this might matter)
* Base Docker image: public.ecr.aws/bitnami/kafka:latest (INFO Kafka version: 3.4.0)
* ENV JMX_PORT 9010
*
CMD ["/opt/mirrormaker/run.sh"] (run.sh is pretty simple and can be described as /opt/bitnami/kafka/bin/connect-mirror-maker.sh "/opt/mirrormaker/mm2.properties")
mm2.properties file, that is copied into container, with sensitive data replaced is below:
clusters = devsdpuse1msktestsourc, devsdpuse1msktestdest
testsrc.bootstrap.servers = b-3.src[…]:9092,b-2.src[…]:9092,b-1.src[…]:9092
testdst.bootstrap.servers = b-2.dst[…]:9092,b-1.dst[…]:9092,b-3.dst[…]:9092
testsrc->testdst.enabled = true
testsrc->testdst.topics = msk
testsrc->testdst.groups = .*
replication.factor = 3
sync.topic.acls.enabled = false
tasks.max = 1
# Avoid prefixing topics on destination with source cluster name
replication.policy.separator =
source.cluster.alias =
target.cluster.alias =
checkpoints.topic.replication.factor=3
heartbeats.topic.replication.factor=3
offset-syncs.topic.replication.factor=3
offset.storage.replication.factor=3
status.storage.replication.factor=3
config.storage.replication.factor=3
Replication works just fine, though I see only MirrorSourceConnector MBean while MirrorCheckpointConnector MBean is missing:
root@ip-xx-xx-xx-xx:/opt/mirrormaker# ./jmx-dump -p 9010 --dump-all | jq 'with_entries(select(.key | startswith("kafka.connect.mirror:")))'
{
"kafka.connect.mirror:partition=0,topic=msk,type=MirrorSourceConnector": {
"record-count": 2,
"record-age-ms-max": "NaN",
"record-rate": 0,
"record-age-ms": 21,
"replication-latency-ms-avg": "NaN",
"byte-count": 56,
"replication-latency-ms-min": "NaN",
"record-age-ms-avg": "NaN",
"record-age-ms-min": "NaN",
"byte-rate": 0,
"replication-latency-ms-max": "NaN",
"replication-latency-ms": 24
}
}
Side notice: also as you can see MirrorSourceConnector has only "topic" and "partition", despite docu describes "target" as well: https://github.com/apache/kafka/blob/trunk/connect/mirror/README.md#monitoring-an-mm2-process
The main Q is: where is the "MirrorCheckpointConnector" Mbean and why it is missing?
Please let me know if any additional info may be needed.
Also since this is a test setup I can change/adjust it if needed.
Thanks in advance.
--
Georgii Iermulnik
Re: [EXTERNAL] [MirrorMaker2] Missing «kafka.connect.mirror:type=MirrorCheckpointConnector» Mbean
Posted by "Iermulnik, Georgii" <ge...@sleepnumber.com.INVALID>.
Hello,
Is it that no one else encountered such case? =(
________________________________
From: Iermulnik, Georgii <ge...@sleepnumber.com.INVALID>
Sent: 01 June 2023 22:55
To: users@kafka.apache.org <us...@kafka.apache.org>
Subject: [EXTERNAL] [MirrorMaker2] Missing «kafka.connect.mirror:type=MirrorCheckpointConnector» Mbean
CAUTION: External source
Hello,
I had spent a while trying to figure out why I cannot see «kafka.connect.mirror:type=MirrorCheckpointConnector» Mbean and, since I've got stuck, I'm seeking assistance from the community.
My setup:
* MM2 is running inside Docker container (AWS ECS Fargate if that might matter)
* Src and Dst Kafka custers are AWS MSK (if this might matter)
* Base Docker image: public.ecr.aws/bitnami/kafka:latest (INFO Kafka version: 3.4.0)
* ENV JMX_PORT 9010
*
CMD ["/opt/mirrormaker/run.sh"] (run.sh is pretty simple and can be described as /opt/bitnami/kafka/bin/connect-mirror-maker.sh "/opt/mirrormaker/mm2.properties")
mm2.properties file, that is copied into container, with sensitive data replaced is below:
clusters = devsdpuse1msktestsourc, devsdpuse1msktestdest
testsrc.bootstrap.servers = b-3.src[…]:9092,b-2.src[…]:9092,b-1.src[…]:9092
testdst.bootstrap.servers = b-2.dst[…]:9092,b-1.dst[…]:9092,b-3.dst[…]:9092
testsrc->testdst.enabled = true
testsrc->testdst.topics = msk
testsrc->testdst.groups = .*
replication.factor = 3
sync.topic.acls.enabled = false
tasks.max = 1
# Avoid prefixing topics on destination with source cluster name
replication.policy.separator =
source.cluster.alias =
target.cluster.alias =
checkpoints.topic.replication.factor=3
heartbeats.topic.replication.factor=3
offset-syncs.topic.replication.factor=3
offset.storage.replication.factor=3
status.storage.replication.factor=3
config.storage.replication.factor=3
Replication works just fine, though I see only MirrorSourceConnector MBean while MirrorCheckpointConnector MBean is missing:
root@ip-xx-xx-xx-xx:/opt/mirrormaker# ./jmx-dump -p 9010 --dump-all | jq 'with_entries(select(.key | startswith("kafka.connect.mirror:")))'
{
"kafka.connect.mirror:partition=0,topic=msk,type=MirrorSourceConnector": {
"record-count": 2,
"record-age-ms-max": "NaN",
"record-rate": 0,
"record-age-ms": 21,
"replication-latency-ms-avg": "NaN",
"byte-count": 56,
"replication-latency-ms-min": "NaN",
"record-age-ms-avg": "NaN",
"record-age-ms-min": "NaN",
"byte-rate": 0,
"replication-latency-ms-max": "NaN",
"replication-latency-ms": 24
}
}
Side notice: also as you can see MirrorSourceConnector has only "topic" and "partition", despite docu describes "target" as well: https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fkafka%2Fblob%2Ftrunk%2Fconnect%2Fmirror%2FREADME.md%23monitoring-an-mm2-process&data=05%7C01%7Cgeorgii.iermulnik%40sleepnumber.com%7C3e05a95d6ffd40f58aa108db62da6b0f%7Ced8aabd514de49829fb6d6528851af5e%7C0%7C0%7C638212462487808853%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=PE9PBqGmj9rxCcqb9JEkAWaqoFgJIpF%2BOygLzb8G3N8%3D&reserved=0<https://github.com/apache/kafka/blob/trunk/connect/mirror/README.md#monitoring-an-mm2-process>
The main Q is: where is the "MirrorCheckpointConnector" Mbean and why it is missing?
Please let me know if any additional info may be needed.
Also since this is a test setup I can change/adjust it if needed.
Thanks in advance.
--
Georgii Iermulnik