Skip to content

Commit 023e533

Browse files
Andrew SchofieldAndrew Schofield
authored andcommitted
Update to version 1.1.1
1 parent ca68ca1 commit 023e533

File tree

6 files changed

+22
-23
lines changed

6 files changed

+22
-23
lines changed

UsingMQwithKafkaConnect.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,60 +34,59 @@ It is assumed that you have installed MQ, you're logged in as a user authorized
3434
crtmqm -p 1414 MYQM
3535
```
3636

37-
1. Start the queue manager:
37+
2. Start the queue manager:
3838
``` shell
3939
strmqm MYQM
4040
```
4141

42-
1. Start the `runmqsc` tool to configure the queue manager:
42+
3. Start the `runmqsc` tool to configure the queue manager:
4343
``` shell
4444
runmqsc MYQM
4545
```
4646

47-
1. In `runmqsc`, create a server-connection channel:
47+
4. In `runmqsc`, create a server-connection channel:
4848
```
4949
DEFINE CHANNEL(MYSVRCONN) CHLTYPE(SVRCONN)
5050
```
5151

52-
1. Set the channel authentication rules to accept connections requiring userid and password:
52+
5. Set the channel authentication rules to accept connections requiring userid and password:
5353
```
5454
SET CHLAUTH(MYSVRCONN) TYPE(BLOCKUSER) USERLIST('nobody')
5555
SET CHLAUTH('*') TYPE(ADDRESSMAP) ADDRESS('*') USERSRC(NOACCESS)
5656
SET CHLAUTH(MYSVRCONN) TYPE(ADDRESSMAP) ADDRESS('*') USERSRC(CHANNEL) CHCKCLNT(REQUIRED)
5757
```
5858

59-
1. Set the identity of the client connections based on the supplied context, the user ID:
59+
6. Set the identity of the client connections based on the supplied context, the user ID:
6060
```
6161
ALTER AUTHINFO(SYSTEM.DEFAULT.AUTHINFO.IDPWOS) AUTHTYPE(IDPWOS) ADOPTCTX(YES)
6262
```
6363

64-
1. Refresh the connection authentication information:
64+
7. Refresh the connection authentication information:
6565
```
6666
REFRESH SECURITY TYPE(CONNAUTH)
6767
```
6868

69-
1. Create a queue for the connector to use:
69+
8. Create a queue for the connector to use:
7070
```
7171
DEFINE QLOCAL(MYQSINK)
7272
```
7373

74-
1. Authorize `alice` to connect to and inquire the queue manager:
74+
9. Authorize `alice` to connect to and inquire the queue manager:
7575
```
7676
SET AUTHREC OBJTYPE(QMGR) PRINCIPAL('alice') AUTHADD(CONNECT,INQ)
7777
```
7878

79-
1. Finally authorize `alice` to use the queue:
79+
10. Finally authorize `alice` to use the queue:
8080
```
8181
SET AUTHREC PROFILE(MYQSINK) OBJTYPE(QUEUE) PRINCIPAL('alice') AUTHADD(ALLMQI)
8282
```
8383

84-
1. End `runmqsc`:
84+
11. End `runmqsc`:
8585
```
8686
END
8787
```
8888

89-
The queue manager is now ready to accept connection from Kafka Connect connectors.
90-
89+
The queue manager is now ready to accept connection from Kafka Connect connectors.
9190

9291
### Download and set up Apache Kafka
9392
These instructions assume you have Apache Kafka downloaded and running locally. See the [Apache Kafka quickstart guide](https://kafka.apache.org/quickstart) for more details.
@@ -97,12 +96,12 @@ These instructions assume you have Apache Kafka downloaded and running locally.
9796
bin/zookeeper-server-start.sh config/zookeeper.properties
9897
```
9998

100-
1. In another terminal, start a Kafka server:
99+
2. In another terminal, start a Kafka server:
101100
``` shell
102101
bin/kafka-server-start.sh config/server.properties
103102
```
104103

105-
1. Create a topic called `TSINK` for the connector to pull event from:
104+
3. Create a topic called `TSINK` for the connector to pull event from:
106105
``` shell
107106
bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic TSINK --partitions 1 --replication-factor 1
108107
```
@@ -134,7 +133,7 @@ Configure and run the connector:
134133
cp config/mq-sink.properties ~
135134
```
136135

137-
1. Edit the following properties in the `~/mq-sink.properties` to match the configuration so far:
136+
2. Edit the following properties in the `~/mq-sink.properties` to match the configuration so far:
138137
```
139138
topics=TSINK
140139
mq.queue.manager=MYQM
@@ -145,7 +144,7 @@ Configure and run the connector:
145144
mq.password=passw0rd
146145
```
147146

148-
1. Change directory to the Kafka root directory. Start the connector worker replacing `<connector-root-directory>` and `<version>` with your directory and the connector version:
147+
3. Change directory to the Kafka root directory. Start the connector worker replacing `<connector-root-directory>` and `<version>` with your directory and the connector version:
149148
``` shell
150149
CLASSPATH=<connector-root-directory>/target/kafka-connect-mq-sink-<version>-jar-with-dependencies.jar ./bin/connect-standalone.sh config/connect-standalone.properties ~/mq-sink.properties
151150
```

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<groupId>com.ibm.eventstreams.connect</groupId>
2121
<artifactId>kafka-connect-mq-sink</artifactId>
2222
<packaging>jar</packaging>
23-
<version>1.1.0</version>
23+
<version>1.1.1</version>
2424
<name>kafka-connect-mq-sink</name>
2525
<organization>
2626
<name>IBM Corporation</name>
@@ -45,13 +45,13 @@
4545
<dependency>
4646
<groupId>org.apache.kafka</groupId>
4747
<artifactId>connect-api</artifactId>
48-
<version>2.0.0</version>
48+
<version>2.3.0</version>
4949
<scope>provided</scope>
5050
</dependency>
5151
<dependency>
5252
<groupId>org.apache.kafka</groupId>
5353
<artifactId>connect-json</artifactId>
54-
<version>2.0.0</version>
54+
<version>2.3.0</version>
5555
<scope>provided</scope>
5656
</dependency>
5757

src/main/java/com/ibm/eventstreams/connect/mqsink/MQSinkConnector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public class MQSinkConnector extends SinkConnector {
107107
public static final String CONFIG_DOCUMENTATION_MQ_REPLY_QUEUE = "The name of the reply-to queue, as a queue name or URI.";
108108
public static final String CONFIG_DISPLAY_MQ_REPLY_QUEUE = "Reply-to queue";
109109

110-
public static String VERSION = "1.1.0";
110+
public static String VERSION = "1.1.1";
111111

112112
private Map<String, String> configProps;
113113

src/main/java/com/ibm/eventstreams/connect/mqsink/MQSinkTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2017, 2018 IBM Corporation
2+
* Copyright 2017, 2018, 2019 IBM Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/test/java/com/ibm/eventstreams/connect/mqsink/MQSinkConnectorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2017, 2018 IBM Corporation
2+
* Copyright 2017, 2018, 2019 IBM Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/test/resources/log4j.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2017 IBM Corporation
2+
# Copyright 2017, 2018, 2019 IBM Corporation
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)