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
Copy file name to clipboardExpand all lines: UsingMQwithKafkaConnect.md
+23-24Lines changed: 23 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -33,61 +33,60 @@ It is assumed that you have installed MQ, you're logged in as a user authorized
33
33
crtmqm -p 1414 MYQM
34
34
```
35
35
36
-
1. Start the queue manager:
36
+
2. Start the queue manager:
37
37
``` shell
38
38
strmqm MYQM
39
39
```
40
40
41
-
1. Start the `runmqsc` tool to configure the queue manager:
41
+
3. Start the `runmqsc` tool to configure the queue manager:
42
42
``` shell
43
43
runmqsc MYQM
44
44
```
45
45
46
-
1. In `runmqsc`, create a server-connection channel:
46
+
4. In `runmqsc`, create a server-connection channel:
47
47
```
48
48
DEFINE CHANNEL(MYSVRCONN) CHLTYPE(SVRCONN)
49
49
```
50
50
51
-
1. Set the channel authentication rules to accept connections requiring userid and password:
51
+
5. Set the channel authentication rules to accept connections requiring userid and password:
52
52
```
53
53
SET CHLAUTH(MYSVRCONN) TYPE(BLOCKUSER) USERLIST('nobody')
54
54
SET CHLAUTH('*') TYPE(ADDRESSMAP) ADDRESS('*') USERSRC(NOACCESS)
55
55
SET CHLAUTH(MYSVRCONN) TYPE(ADDRESSMAP) ADDRESS('*') USERSRC(CHANNEL) CHCKCLNT(REQUIRED)
56
56
```
57
57
58
-
1. Set the identity of the client connections based on the supplied context, the user ID:
58
+
6. Set the identity of the client connections based on the supplied context, the user ID:
59
59
```
60
60
ALTER AUTHINFO(SYSTEM.DEFAULT.AUTHINFO.IDPWOS) AUTHTYPE(IDPWOS) ADOPTCTX(YES)
61
61
```
62
62
63
-
1. Refresh the connection authentication information:
63
+
7. Refresh the connection authentication information:
64
64
```
65
65
REFRESH SECURITY TYPE(CONNAUTH)
66
66
```
67
67
68
-
1. Create a queue for the connector to use:
68
+
8. Create a queue for the connector to use:
69
69
```
70
70
DEFINE QLOCAL(MYQSOURCE)
71
71
```
72
72
73
-
1. Authorize `alice` to connect to and inquire the queue manager:
73
+
9. Authorize `alice` to connect to and inquire the queue manager:
74
74
```
75
75
SET AUTHREC OBJTYPE(QMGR) PRINCIPAL('alice') AUTHADD(CONNECT,INQ)
76
76
```
77
77
78
-
1. Finally authorize `alice` to use the queue:
78
+
10. Finally authorize `alice` to use the queue:
79
79
```
80
80
SET AUTHREC PROFILE(MYQSOURCE) OBJTYPE(QUEUE) PRINCIPAL('alice') AUTHADD(ALLMQI)
81
81
```
82
82
83
-
1. End `runmqsc`:
83
+
11. End `runmqsc`:
84
84
```
85
85
END
86
86
```
87
87
88
88
The queue manager is now ready to accept connection from Kafka Connect connectors.
89
89
90
-
91
90
### Set up Apache Kafka
92
91
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.
93
92
@@ -96,11 +95,11 @@ These instructions assume you have Apache Kafka downloaded and running locally.
@@ -133,18 +132,18 @@ Configure and run the connector:
133
132
cp config/mq-source.properties ~
134
133
```
135
134
136
-
1. Edit the following properties in the `~/mq-source.properties` file to match the configuration so far:
137
-
```
138
-
mq.queue.manager=MYQM
139
-
mq.connection.name.list=localhost(1414)
140
-
mq.channel.name=MYSVRCONN
141
-
mq.queue=MYQSOURCE
142
-
mq.user.name=alice
143
-
mq.password=passw0rd
144
-
topic=TSOURCE
145
-
```
135
+
2. Edit the following properties in the `~/mq-source.properties` file to match the configuration so far:
136
+
```
137
+
topic=TSOURCE
138
+
mq.queue.manager=MYQM
139
+
mq.connection.name.list=localhost(1414)
140
+
mq.channel.name=MYSVRCONN
141
+
mq.queue=MYQSOURCE
142
+
mq.user.name=alice
143
+
mq.password=passw0rd
144
+
```
146
145
147
-
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:
146
+
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:
0 commit comments