Sign inSign up

ambuds/mirror-maker

By ambuds

Updated over 9 years ago

Docker image of Kafka Mirror Maker

Image
1

100K+

ambuds/mirror-maker repository overview

docker-kafka-mirror-maker

An HDP 2.5.3 based Docker image for Kafka Mirror Maker. This allows configuration and deployment of Kafka Mirror-Maker in Dockerized environments like Kubernetes/Openshift or AWS ECS.

Build

This image is available from Docker hub however, if you would like to build it yourself here are the steps:

git clone https://github.com/srotya/docker-kafka-mirror-maker.git
cd docker-kafka-mirror-maker
docker build -t mirror-maker:latest .

Note: Docker is expected to be installed where you run the build

Environment Variables
Variable NameDescriptionDefaults
DESTINATIONbootstrap.servers for the Destination Kafka Clusterlocalhost:6667
SOURCEbootstrap.servers for the Source Kafka Clusterlocalhost:6667
WHITELISTTopics to mirror*
SECURITYIf kerberos is enabled, valid options: PLAINTEXT or SASL_PLAINTEXTPLAINTEXT
GROUPIDConsumer group id for Kafka consumer_mirror_maker
PRINCIPALKerberos security principal namekafka/[email protected]
KEYTAB_FILENAMEFile name for Kerberos Keytabmirror.keytab
Volumes

Image requires that the keytab file and krb5.conf be mounted if Kerberos is used when deploying this container.

Keytab files are expected in /etc/security/keytabs location

Krb5.conf file is expected in /etc/krb5.conf location

Non-Kerberized Usage
docker run -it -e DESTINATION=xxx.xxx.com:9092 -e SOURCE=xxx.xxx.com:9092 -e WHITELIST=<TOPIC NAME> mirror-maker:latest
Kerberized Usage
docker run -it -e DESTINATION=xxx.xxx.com:6667 -e SECURITY=SASL_PLAINTEXT -e SOURCE=xxx.xxx.com:6667 -e WHITELIST=<TOPIC NAME> -e KEYTAB_FILENAME=kafka.service.keytab -e PRINCIPAL=kafka/[email protected] -v /etc/security/keytabs/:/etc/security/keytabs/ -v /etc/krb5.conf:/etc/krb5.conf mirror-maker:latest

Note: the image automatically applies Kerberos runtime configuration for Mirror Maker if SASL_PLAINTEXT security is configured

Kubernetes Usage

To deploy this image in Kubernetes here's the template.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: mirror-maker
spec:
  replicas: 3
  template:
    metadata:
      labels:
        name: mirror-maker
    spec:
      containers:
      - name: mirror-maker
        image: ambuds/mirror-maker
        imagePullPolicy: Always
        env:
        - name: "WHITELIST"
          value: "*"
        - name: "DESTINATION"
          value: "localhost:9092"
        - name: "SOURCE"
          value: "localhost:9092"
License

Apache 2.0

Tag summary

Content type

Image

Digest

Size

277.3 MB

Last updated

over 9 years ago

docker pull ambuds/mirror-maker