Skip to content

Commit 058bdde

Browse files
Support Kafka 2.0
1 parent 21ecc99 commit 058bdde

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Once built, the output is a single JAR called `target/kafka-connect-mq-source-1.
3232
To run the connector, you must have:
3333
* The JAR from building the connector
3434
* A properties file containing the configuration for the connector
35-
* Apache Kafka, either standalone or included as part of an offering such as IBM Event Streams
35+
* Apache Kafka 1.0 or later, either standalone or included as part of an offering such as IBM Event Streams
3636
* IBM MQ v8 or later, or the IBM MQ on Cloud service
3737

3838
The connector can be run in a Kafka Connect worker in either standalone (single process) or distributed mode. It's a good idea to start in standalone mode.

UsingMQwithKafkaConnect.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Using IBM MQ with Kafka Connect
2-
Many organizations use both IBM MQ and Apache Kafka for their messaging needs. Although they're often used to solve different kinds of messaging problems, people often want to connect them together. When connecting Apache Kafka to other systems, the technology of choice is the Kafka Connect framework.
2+
Many organizations use both IBM MQ and Apache Kafka for their messaging needs. Although they're typically used to solve different kinds of messaging problems, people often want to connect them together. When connecting Apache Kafka to other systems, the technology of choice is the Kafka Connect framework.
33

44
A pair of basic connectors for IBM MQ are available as source code available on GitHub. The source connector (https://github.com/ibm-messaging/kafka-connect-mq-source) is used to take messages from an MQ queue and transfer them to a Kafka topic, while the sink connector (https://github.com/ibm-messaging/kafka-connect-mq-sink) goes the other way. The GitHub projects have instructions for building the connectors, but once you've successfully built the JAR files, what next?
55

6-
These instructions tell you how to set up MQ and Apache Kafka from scratch and use the connectors to transfer messages between them. The instructions are for MQ v9 running on Linux, so if you're using a different version or platform, you might have to adjust them slightly. The instructions also expect Apache Kafka 0.10.2.0 or later.
6+
These instructions tell you how to set up MQ and Apache Kafka from scratch and use the connectors to transfer messages between them. The instructions are for MQ v9 running on Linux, so if you're using a different version or platform, you might have to adjust them slightly. The instructions also expect Apache Kafka 1.0 or later.
77

88

99
## Kafka Connect concepts
@@ -88,7 +88,7 @@ The queue manager is now ready to accept connection from Kafka Connect connector
8888
### Download and set up Apache Kafka
8989
If you do not already have Apache Kafka, you can download it from here: http://kafka.apache.org/downloads. Make sure you have the prerequisites installed, such as Java.
9090

91-
Download the latest .tgz file (called something like `kafka_2.11-1.0.0.tgz`) and unpack it. The top-level directory of the unpacked .tgz file is referred to as the *Kafka root directory*. It contains several directories including `bin` for the Kafka executables and `config` for the configuration files.
91+
Download the latest .tgz file (called something like `kafka_2.11-2.0.0.tgz`) and unpack it. The top-level directory of the unpacked .tgz file is referred to as the *Kafka root directory*. It contains several directories including `bin` for the Kafka executables and `config` for the configuration files.
9292

9393
There are several components required to run a minimal Kafka cluster. It's easiest to run them each in a separate terminal window, starting in the Kafka root directory.
9494

@@ -154,7 +154,7 @@ topic=TSOURCE
154154

155155
Change directory to the Kafka root directory. Start the connector worker replacing `<connector-root-directory>`:
156156
``` shell
157-
CLASSPATH=<connector-root-directory>/target/kafka-connect-mq-source-0.6-SNAPSHOT-jar-with-dependencies.jar bin/connect-standalone.sh config/connect-standalone.properties ~/mq-source.properties
157+
CLASSPATH=<connector-root-directory>/target/kafka-connect-mq-source-1.0-SNAPSHOT-jar-with-dependencies.jar bin/connect-standalone.sh config/connect-standalone.properties ~/mq-source.properties
158158
```
159159

160160
Wait while the worker starts and then prints:
@@ -212,7 +212,7 @@ mq.password=passw0rd
212212

213213
Change directory to the Kafka root directory. Start the connector worker replacing `<connector-root-directory>`:
214214
``` shell
215-
CLASSPATH=<connector-root-directory>/target/kafka-connect-mq-sink-0.6-SNAPSHOT-jar-with-dependencies.jar bin/kafka-connect-standalone config/connect-standalone.properties ~/mq-sink.properties
215+
CLASSPATH=<connector-root-directory>/target/kafka-connect-mq-sink-0.7-SNAPSHOT-jar-with-dependencies.jar bin/kafka-connect-standalone config/connect-standalone.properties ~/mq-sink.properties
216216
```
217217

218218
Wait while the worker starts and then prints:

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
<dependency>
4646
<groupId>org.apache.kafka</groupId>
4747
<artifactId>connect-api</artifactId>
48-
<version>1.1.0</version>
48+
<version>2.0.0</version>
4949
<scope>provided</scope>
5050
</dependency>
5151
<dependency>
5252
<groupId>org.apache.kafka</groupId>
5353
<artifactId>connect-json</artifactId>
54-
<version>1.1.0</version>
54+
<version>2.0.0</version>
5555
<scope>provided</scope>
5656
</dependency>
5757

0 commit comments

Comments
 (0)