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
This repository includes a Dockerfile to run Kafka Connect in distributed mode. It also adds in the MQ Sink Connector as an available connector plugin. It uses the default connect-distributed.properties file, to provide a custom one add a `COPY` line to the Dockerfile with your customised connect-distributed.properties file.
1.`docker run -p 8083:8083 kafkaconnect-with-mq-sink:0.0.1`
77
+
78
+
## Deploying to Kubernetes
79
+
80
+
This repository includes a Kubernetes yaml file called `kafka-connect.yaml`. This will create a deployment to run Kafka Connect in distributed mode and a service to access the deployment.
81
+
82
+
The deployment assumes the existence of two ConfigMaps; `connect-distributed-config` and `connect-log4j-config`. These can be created using the default files in your Kafka install, however it is easier to edit them later if comment and whitespace is trimmed before creation.
### Creating Kafka Connect deployment and service in Kubernetes
97
+
98
+
**NOTE:** Remember to [build the Docker image](#running-with-docker) and push it to your Kubernetes image repository. You might need to update the image name in the `kafka-connect.yaml` file.
1.`curl <serviceIP>:<servicePort>/connector-plugins` to see the MQ Sink connector available to use
68
103
69
104
## Data formats
70
105
Kafka Connect is very flexible but it's important to understand the way that it processes messages to end up with a reliable system. When the connector encounters a message that it cannot process, it stops rather than throwing the message away. Therefore, you need to make sure that the configuration you use can handle the messages the connector will process.
@@ -197,6 +232,7 @@ The configuration options for the Kafka Connect sink connector for IBM MQ are as
197
232
| mq.ssl.peer.name | The distinguished name pattern of the TLS (SSL) peer | string || Blank or DN pattern |
198
233
| mq.message.builder.key.header | The JMS message header to set from the Kafka record key | string || JMSCorrelationID |
199
234
| mq.message.builder.value.converter | The class and prefix for message builder's value converter | string || Class implementing Converter |
235
+
| mq.reply.queue | The name of the reply-to queue | string || MQ queue name or queue URI |
200
236
201
237
202
238
### Using a CCDT file
@@ -227,6 +263,10 @@ Update the connector configuration file to reference `secret-key` in the file:
To use a file for the `mq.password` in Kubernetes, you create a Secret using the file as described in [the Kubernetes docs](https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-files-from-a-pod).
269
+
230
270
## Troubleshooting
231
271
232
272
### Unable to connect to Kafka
@@ -241,7 +281,7 @@ For issues relating specifically to this connector, please use the [GitHub issue
241
281
242
282
243
283
## License
244
-
Copyright 2017, 2018 IBM Corporation
284
+
Copyright 2017, 2018, 2019 IBM Corporation
245
285
246
286
Licensed under the Apache License, Version 2.0 (the "License");
247
287
you may not use this file except in compliance with the License.
0 commit comments