You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm struggling to figure out how to properly define producer and consumer configuration for the KafkaMirrorMaker2 CRD, as i can't seem to find any relevant documentation.
I'm trying to replicate a few topics from our source cluster to the target cluster. The caveat is, that a few of the topics contain messages that are larger than 1MB in size.
The topics which contain messages that are smaller than 1MB replicate fine. However, the rest do not.
I found this error in the mirrormaker2-cluster-status topic.
{
"state":"FAILED"
"trace":"org.apache.kafka.connect.errors.ConnectException: Unrecoverable exception from producer send callback at org.apache.kafka.connect.runtime.WorkerSourceTask.maybeThrowProducerSendException(WorkerSourceTask.java:266) at org.apache.kafka.connect.runtime.WorkerSourceTask.sendRecords(WorkerSourceTask.java:320) at org.apache.kafka.connect.runtime.WorkerSourceTask.execute(WorkerSourceTask.java:248) at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:182) at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:231) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.apache.kafka.common.errors.RecordTooLargeException: The message is 2698421 bytes when serialized which is larger than 1048576, which is the value of the max.request.size configuration. "
"worker_id":"ip-adress"
"generation":36
}
We consistently see these errors in the logs from each node
2021-11-23 17:03:46,456 INFO [Consumer clientId=consumer-null-14, groupId=null] Error sending fetch request (sessionId=2115750344, epoch=INITIAL) to node 3: (org.apache.kafka.clients.FetchSessionHandler) [task-thread-source->target.MirrorSourceConnector-0]
org.apache.kafka.common.errors.DisconnectException
2021-11-23 17:03:46,456 INFO [Consumer clientId=consumer-null-14, groupId=null] Error sending fetch request (sessionId=529322538, epoch=INITIAL) to node 6: (org.apache.kafka.clients.FetchSessionHandler) [task-thread-source->target.MirrorSourceConnector-0]
org.apache.kafka.common.errors.DisconnectException
2021-11-23 17:04:13,906 INFO WorkerSourceTask{id=source->target.MirrorSourceConnector-1} flushing 19921 outstanding messages for offset commit (org.apache.kafka.connect.runtime.WorkerSourceTask) [SourceTaskOffsetCommitter-1]
2021-11-23 17:04:18,606 INFO [Consumer clientId=consumer-null-13, groupId=null] Error sending fetch request (sessionId=1000053246, epoch=2) to node 1: (org.apache.kafka.clients.FetchSessionHandler) [task-thread-source->target.MirrorSourceConnector-1]
org.apache.kafka.common.errors.DisconnectException
I've tried to define both producer and consumer configuration in a multitude of ways, with no prevail.
If anyone could offer any advice or point me in the right directly / documentation, that'd be great. Thank you!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I'm struggling to figure out how to properly define producer and consumer configuration for the KafkaMirrorMaker2 CRD, as i can't seem to find any relevant documentation.
I'm trying to replicate a few topics from our source cluster to the target cluster. The caveat is, that a few of the topics contain messages that are larger than 1MB in size.
The topics which contain messages that are smaller than 1MB replicate fine. However, the rest do not.
I found this error in the mirrormaker2-cluster-status topic.
We consistently see these errors in the logs from each node
Here's our CRD configuration.
I've tried to define both producer and consumer configuration in a multitude of ways, with no prevail.
If anyone could offer any advice or point me in the right directly / documentation, that'd be great. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions