@itentialopensource/adapter-kafkav2 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.6.6 [05-19-2023]
3
+
4
+ * added support for separate topics files per adapter
5
+
6
+ See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!5
7
+
8
+ ---
9
+
10
+ ## 0.6.5 [05-19-2023]
11
+
12
+ * added support for separate topics files per adapter
13
+
14
+ See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!5
15
+
16
+ ---
17
+
2
18
  ## 0.6.4 [05-19-2023]
3
19
 
4
20
  * added support for separate topics files per adapter
package/README.md CHANGED
@@ -92,6 +92,10 @@ This section defines **all** the properties that are available for the adapter,
92
92
  "check_ops_manager_status": false,
93
93
  "iap_apps_check_interval": 15000,
94
94
  "client": {
95
+ "brokers": [
96
+ "broker:9093"
97
+ ],
98
+ "clientId": "my-app",
95
99
  "connectTimeout": 10000,
96
100
  "requestTimeout": 30000,
97
101
  "autoConnect": true,
@@ -120,6 +124,20 @@ This section defines **all** the properties that are available for the adapter,
120
124
  }
121
125
  }
122
126
  ```
127
+ Sample SSL and SASL properties. In the below example ssl is enabled and needs a CA file, SASL is set to scram-sha-512.
128
+
129
+ ```json
130
+ "ssl": {
131
+ "enableTrace": true,
132
+ "ca": "/path/to/crt.pem",
133
+ "rejectUnauthorized": true
134
+ },
135
+ "sasl": {
136
+ "username": "my-user",
137
+ "password": "my-password",
138
+ "mechanism": "scram-sha-512"
139
+ }
140
+ ```
123
141
 
124
142
  ### Topic Properties
125
143
 
@@ -240,13 +258,11 @@ Note that you can pass multiple partitions to be consumed under the same subscri
240
258
  ### Connection Properties
241
259
 
242
260
  These base properties are used to connect to Kafka upon the adapter initially coming up. It is important to set these properties appropriately.
243
- Kafka server location is set either by providing (host, port) tuple or by providing hostList property
244
261
 
245
262
  | Property | Description |
246
263
  | ------- | ------- |
247
264
  | host | Optional. A fully qualified domain name or IP address.|
248
265
  | port | Required if `host` set. Used to connect to the server.|
249
- | hostList | Optional. A string of kafka broker/host combination delimited by comma|
250
266
  | interval_time | Optional. The Kafka adapter keeps information about topics and offsets in memory in order to be more efficient. In order to work across restarts the adapter must persist the data. So the data is written into the .topics.json file. This write time defines how often to write the file.|
251
267
  | stub | Optional. Slightlu different meaning than normal, this is just telling the adapter whether to run the write topics interval. This should always be false unless you are running standalone tests.|
252
268
 
@@ -261,15 +277,10 @@ The following properties are used to define the Kafka Client. These properties a
261
277
 
262
278
  | Property | Description |
263
279
  | ------- | ------- |
264
- | connectTimeout | ms it takes to wait for a successful connection before moving to the next host.|
265
- | requestTimeout | ms for a kafka request to timeout .|
266
- | autoConnect | automatically connect when KafkaClient is instantiated otherwise you need to manually call connect.|
267
- | connectRetryOptions | object hash that applies to the initial connection.|
268
- | idleConnection | ms before allowing the broker to disconnect an idle connection from a client. |
269
- | reconnectOnIdle | when the connection is closed due to client idling, client will attempt to auto-reconnect.|
270
- | maxAsyncRequests | maximum async operations at a time toward the kafka cluster..|
280
+ | brokers | kafka broker:port list |
281
+ | clientId | Client-id is a logical grouping of clients with a meaningful name chosen by the client application |
271
282
  | ssl | Object, options to be passed to the tls broker sockets, ex. { rejectUnauthorized: false }.|
272
- | sasl | Object, SASL authentication configuration (only SASL/PLAIN is currently supported), ex. { mechanism: 'plain', username: 'foo', password: 'bar' }.|
283
+ | sasl | Object, SASL authentication configuration (Currently, supports PLAIN, SCRAM-SHA-256, SCRAM-SHA-512), ex. { mechanism: 'plain', username: 'foo', password: 'bar' }.|
273
284
 
274
285
  ### Producer Properties
275
286
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-kafkav2",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "Itential adapter to connect to kafka",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.35.0",
Binary file