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
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,60 +34,59 @@ It is assumed that you have installed MQ, you're logged in as a user authorized
34
34
crtmqm -p 1414 MYQM
35
35
```
36
36
37
-
1. Start the queue manager:
37
+
2. Start the queue manager:
38
38
``` shell
39
39
strmqm MYQM
40
40
```
41
41
42
-
1. Start the `runmqsc` tool to configure the queue manager:
42
+
3. Start the `runmqsc` tool to configure the queue manager:
43
43
``` shell
44
44
runmqsc MYQM
45
45
```
46
46
47
-
1. In `runmqsc`, create a server-connection channel:
47
+
4. In `runmqsc`, create a server-connection channel:
48
48
```
49
49
DEFINE CHANNEL(MYSVRCONN) CHLTYPE(SVRCONN)
50
50
```
51
51
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:
53
53
```
54
54
SET CHLAUTH(MYSVRCONN) TYPE(BLOCKUSER) USERLIST('nobody')
55
55
SET CHLAUTH('*') TYPE(ADDRESSMAP) ADDRESS('*') USERSRC(NOACCESS)
56
56
SET CHLAUTH(MYSVRCONN) TYPE(ADDRESSMAP) ADDRESS('*') USERSRC(CHANNEL) CHCKCLNT(REQUIRED)
57
57
```
58
58
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:
60
60
```
61
61
ALTER AUTHINFO(SYSTEM.DEFAULT.AUTHINFO.IDPWOS) AUTHTYPE(IDPWOS) ADOPTCTX(YES)
62
62
```
63
63
64
-
1. Refresh the connection authentication information:
64
+
7. Refresh the connection authentication information:
65
65
```
66
66
REFRESH SECURITY TYPE(CONNAUTH)
67
67
```
68
68
69
-
1. Create a queue for the connector to use:
69
+
8. Create a queue for the connector to use:
70
70
```
71
71
DEFINE QLOCAL(MYQSINK)
72
72
```
73
73
74
-
1. Authorize `alice` to connect to and inquire the queue manager:
74
+
9. Authorize `alice` to connect to and inquire the queue manager:
75
75
```
76
76
SET AUTHREC OBJTYPE(QMGR) PRINCIPAL('alice') AUTHADD(CONNECT,INQ)
77
77
```
78
78
79
-
1. Finally authorize `alice` to use the queue:
79
+
10. Finally authorize `alice` to use the queue:
80
80
```
81
81
SET AUTHREC PROFILE(MYQSINK) OBJTYPE(QUEUE) PRINCIPAL('alice') AUTHADD(ALLMQI)
82
82
```
83
83
84
-
1. End `runmqsc`:
84
+
11. End `runmqsc`:
85
85
```
86
86
END
87
87
```
88
88
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.
91
90
92
91
### Download and set up Apache Kafka
93
92
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.
@@ -134,7 +133,7 @@ Configure and run the connector:
134
133
cp config/mq-sink.properties ~
135
134
```
136
135
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:
138
137
```
139
138
topics=TSINK
140
139
mq.queue.manager=MYQM
@@ -145,7 +144,7 @@ Configure and run the connector:
145
144
mq.password=passw0rd
146
145
```
147
146
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:
0 commit comments