We have also something similar, it's real easy to use a message handler, in our case we check for a bit to determine if we already copied the event, and change the topic name in dev-mode. You can configure a string to pass to your messageHandler for each instance.
On Wed, Jun 15, 2016 at 1:38 AM Ning Zhang (JIRA) <j...@apache.org> wrote: > > [ > https://issues.apache.org/jira/browse/KAFKA-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15330877#comment-15330877 > ] > > Ning Zhang commented on KAFKA-3841: > ----------------------------------- > > Thanks. This is good to know. As MessageHandler was recently added since > 0.9 (where our production has not been upgraded to there yet), we has been > using our own solution for topic renaming. > > Looks like we may keep using our stuff or adopt the message handler when > upgrading to 0.9 or above. > > Intend to mark this jira as "Resolve". > > > MirrorMaker topic renaming > > -------------------------- > > > > Key: KAFKA-3841 > > URL: https://issues.apache.org/jira/browse/KAFKA-3841 > > Project: Kafka > > Issue Type: New Feature > > Components: tools > > Affects Versions: 0.10.0.0 > > Reporter: Ning Zhang > > > > Our organization (walmart.com) has been a Kafka user since some years > back and MirrorMaker has been a convenient tool to bring our Kafka data > from one Kafka cluster to another cluster. > > In many our use cases, the mirrored topic from the source cluster may > not want to have the same name in the target cluster. This could be a valid > scenario when the same topic name already exists on the target cluster, or > we want to append the name of the data center to the topic name in the > target cluster, such as "grocery_items_mirror_sunnyvale", to explicitly > identify the source (e.g. sunnyvale) and nature (e.g. mirroring) of the > topic. > > We have implemented the MirrorMaker topic renaming feature internally > which has been used for production over a couple of years. While keeping > our internal Kafka fork with the above "renaming" branch across version > upgrade does not cost us too much labor, we think it may be meaningful to > contribute back to the community so that potentially many people may have > the similar expectation and could benefit from this feature. > > > > -- > This message was sent by Atlassian JIRA > (v6.3.4#6332) >