@itentialopensource/adapter-kafkav2 0.22.2 → 0.22.4
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/AUTH.md +22 -10
- package/CHANGELOG.md +16 -0
- package/SUMMARY.md +8 -0
- package/SYSTEMINFO.md +26 -0
- package/TAB1.md +11 -0
- package/TAB2.md +117 -0
- package/compliance-report.json +9 -0
- package/compliance-report.txt +5 -0
- package/metadata.json +31 -7
- package/package.json +7 -6
- package/propertiesSchema.json +0 -65
- package/refs?service=git-upload-pack +0 -0
- package/sampleProperties.json +44 -8
package/AUTH.md
CHANGED
|
@@ -1,26 +1,38 @@
|
|
|
1
|
-
## Authenticating Kafka Adapter
|
|
1
|
+
## Authenticating Kafka v2 Adapter
|
|
2
2
|
|
|
3
|
-
This document will go through the steps for authenticating the
|
|
3
|
+
This document will go through the steps for authenticating the Kafka v2 adapter with. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://docs.itential.com/opensource/docs/authentication" target="_blank">HERE</a>.
|
|
4
4
|
|
|
5
5
|
### Library Authentication
|
|
6
|
-
The Kafka adapter supports SASL Authentication for Kafka server. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
|
|
6
|
+
The Kafka v2 adapter supports SASL Authentication for Kafka v2 server. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
|
|
7
7
|
|
|
8
8
|
STEPS
|
|
9
|
-
1. Ensure you have access to a Kafka server and that it is running
|
|
9
|
+
1. Ensure you have access to a Kafka v2 server and that it is running
|
|
10
10
|
2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
|
|
11
11
|
3. Use the properties below for the ```properties.client.sasl``` field
|
|
12
|
+
4. Kafka v2 adapter supports both PLAIN and SCRAM-SHA authentication mechanism
|
|
13
|
+
|
|
14
|
+
#### PLAIN
|
|
12
15
|
```json
|
|
13
16
|
"sasl": {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
"mechanism": "PLAIN",
|
|
18
|
+
"username": "username",
|
|
19
|
+
"password": "password"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
18
22
|
|
|
23
|
+
#### SCRAM-SHA
|
|
24
|
+
```json
|
|
25
|
+
"sasl": {
|
|
26
|
+
"mechanism": "scram-sha-512",
|
|
27
|
+
"username": "username",
|
|
28
|
+
"password": "password"
|
|
29
|
+
}
|
|
19
30
|
```
|
|
20
|
-
For more details on sasl authentication follow the
|
|
31
|
+
For more details on sasl authentication follow the README.md
|
|
21
32
|
4. Restart the adapter. If your properties were set correctly, the adapter should go online.
|
|
22
33
|
|
|
23
34
|
### Troubleshooting
|
|
24
35
|
- Make sure you copied over the correct username and password.
|
|
25
36
|
- Turn on debug level logs for the adapter in IAP Admin Essentials.
|
|
26
|
-
- Investigate the logs
|
|
37
|
+
- Investigate the logs
|
|
38
|
+
- Credentials should be ** masked ** by the adapter so make sure you verify the username and password - including that there are erroneous spaces at the front or end.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.22.4 [07-29-2024]
|
|
3
|
+
|
|
4
|
+
* Patch/movemigration
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!27
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.22.3 [07-29-2024]
|
|
11
|
+
|
|
12
|
+
* Manual migration updates
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!26
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.22.2 [03-14-2024]
|
|
3
19
|
|
|
4
20
|
* Update metadata.json
|
package/SUMMARY.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
This adapter is used to integrate the Itential Automation Platform (IAP) with the Kafka System. The adapter utilizes the KafkaJS client to integrate with Apache Kafka. The ReadMe file is intended to provide information on this adapter it is generated from various other Markdown files.
|
|
3
|
+
|
|
4
|
+
>**Note**: It is possible that some integrations will be supported through the KafkaV2 adapter while other integrations will not.
|
|
5
|
+
|
|
6
|
+
Itential provides information on all of its product adapters in the Customer Knowledge Base. Information in the <a href="https://itential.atlassian.net/servicedesk/customer/portals" target="_blank">Customer Knowledge Base</a> is consistently maintained and goes through documentation reviews. As a result, it should be the first place to go for information.
|
|
7
|
+
|
|
8
|
+
For opensourced and custom built adapters, the ReadMe is a starting point to understand what you have built, provide the information for you to be able to update the adapter, and assist you with deploying the adapter into IAP.
|
package/SYSTEMINFO.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Kafka v2
|
|
2
|
+
|
|
3
|
+
Vendor: Apache Kafka
|
|
4
|
+
Homepage: https://kafka.apache.org/
|
|
5
|
+
|
|
6
|
+
Product: Kafka
|
|
7
|
+
Product Page: https://kafka.apache.org/
|
|
8
|
+
|
|
9
|
+
## Introduction
|
|
10
|
+
|
|
11
|
+
We classify Kafka v2 into the Notifications domain as Kafka v2 is used to send message between systems. There is an alternate Kafka adapter which uses an older Kafka library.
|
|
12
|
+
|
|
13
|
+
Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
|
|
14
|
+
|
|
15
|
+
"Deliver messages at network limited throughput using a cluster of machines with latencies as low as 2ms."
|
|
16
|
+
"Store streams of data safely in a distributed, durable, fault-tolerant cluster."
|
|
17
|
+
|
|
18
|
+
## Why Integrate
|
|
19
|
+
The Kafka v2 adapter from Itential is used to integrate the Itential Automation Platform (IAP) with Kafka. With this adapter you have the ability to perform operations with Kafka on items such as:
|
|
20
|
+
|
|
21
|
+
- Produce/Publish messages onto message topics for others to consume
|
|
22
|
+
- Listen, receive and process messages placed on topics by other systems
|
|
23
|
+
|
|
24
|
+
## Additional Product Documentation
|
|
25
|
+
The [Kafka Documentation](https://kafka.apache.org/documentation/)
|
|
26
|
+
The [Kafkajs Node Library Documentation](https://www.npmjs.com/package/kafkajs)
|
package/TAB1.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
This adapter is used to integrate the Itential Automation Platform (IAP) with the Kafka System. The adapter utilizes the KafkaJS client to integrate with Apache Kafka. The ReadMe file is intended to provide information on this adapter it is generated from various other Markdown files.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Details
|
|
6
|
+
The Kafka v2 adapter from Itential is used to integrate the Itential Automation Platform (IAP) with Kafka. With this adapter you have the ability to perform operations with Kafka on items such as:
|
|
7
|
+
|
|
8
|
+
- Produce/Publish messages onto message topics for others to consume
|
|
9
|
+
- Listen, receive and process messages placed on topics by other systems
|
|
10
|
+
|
|
11
|
+
For further technical details on how to install and use this adapter, please click the Technical Documentation tab.
|
package/TAB2.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Kafka v2
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
|
|
5
|
+
- [Specific Adapter Information](#specific-adapter-information)
|
|
6
|
+
- [Authentication](#authentication)
|
|
7
|
+
- [Sample Properties](#sample-properties)
|
|
8
|
+
- [Swagger](#swagger)
|
|
9
|
+
- [Generic Adapter Information](#generic-adapter-information)
|
|
10
|
+
|
|
11
|
+
## Specific Adapter Information
|
|
12
|
+
### Authentication
|
|
13
|
+
|
|
14
|
+
This document will go through the steps for authenticating the Kafka v2 adapter with. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://docs.itential.com/opensource/docs/authentication" target="_blank">HERE</a>.
|
|
15
|
+
|
|
16
|
+
#### Library Authentication
|
|
17
|
+
The Kafka v2 adapter supports SASL Authentication for Kafka v2 server. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
|
|
18
|
+
|
|
19
|
+
STEPS
|
|
20
|
+
1. Ensure you have access to a Kafka v2 server and that it is running
|
|
21
|
+
2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
|
|
22
|
+
3. Use the properties below for the ```properties.client.sasl``` field
|
|
23
|
+
4. Kafka v2 adapter supports both PLAIN and SCRAM-SHA authentication mechanism
|
|
24
|
+
|
|
25
|
+
##### PLAIN
|
|
26
|
+
```json
|
|
27
|
+
"sasl": {
|
|
28
|
+
"mechanism": "PLAIN",
|
|
29
|
+
"username": "username",
|
|
30
|
+
"password": "password"
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
##### SCRAM-SHA
|
|
35
|
+
```json
|
|
36
|
+
"sasl": {
|
|
37
|
+
"mechanism": "scram-sha-512",
|
|
38
|
+
"username": "username",
|
|
39
|
+
"password": "password"
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
For more details on sasl authentication follow the README.md
|
|
43
|
+
4. Restart the adapter. If your properties were set correctly, the adapter should go online.
|
|
44
|
+
|
|
45
|
+
#### Troubleshooting
|
|
46
|
+
- Make sure you copied over the correct username and password.
|
|
47
|
+
- Turn on debug level logs for the adapter in IAP Admin Essentials.
|
|
48
|
+
- Investigate the logs
|
|
49
|
+
- Credentials should be ** masked ** by the adapter so make sure you verify the username and password - including that there are erroneous spaces at the front or end.
|
|
50
|
+
### Sample Properties
|
|
51
|
+
|
|
52
|
+
Sample Properties can be used to help you configure the adapter in the Itential Automation Platform. You will need to update connectivity information such as the host, port, protocol and credentials.
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
"properties": {
|
|
56
|
+
"registry_url": "",
|
|
57
|
+
"interval_time": 5000,
|
|
58
|
+
"stub": false,
|
|
59
|
+
"parseMessage": true,
|
|
60
|
+
"wrapMessage": "myKey",
|
|
61
|
+
"check_iap_apps": true,
|
|
62
|
+
"check_wfe_status": true,
|
|
63
|
+
"check_ops_manager_status": false,
|
|
64
|
+
"fromBeginning": false,
|
|
65
|
+
"iap_apps_check_interval": 15000,
|
|
66
|
+
"client": {
|
|
67
|
+
"brokers": [
|
|
68
|
+
"broker:9093"
|
|
69
|
+
],
|
|
70
|
+
"clientId": "my-app",
|
|
71
|
+
"logLevel": "INFO",
|
|
72
|
+
"ssl": {
|
|
73
|
+
"enableTrace": true,
|
|
74
|
+
"ca": "/path/to/crt.pem",
|
|
75
|
+
"rejectUnauthorized": true
|
|
76
|
+
},
|
|
77
|
+
"sasl": {
|
|
78
|
+
"username": "my-user",
|
|
79
|
+
"password": "my-password",
|
|
80
|
+
"mechanism": "scram-sha-512"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"producer": {
|
|
84
|
+
"requireAcks": 1,
|
|
85
|
+
"ackTimeoutMs": 100,
|
|
86
|
+
"partitionerType": 0
|
|
87
|
+
},
|
|
88
|
+
"consumer": {
|
|
89
|
+
"groupId": "kafka-node-group"
|
|
90
|
+
},
|
|
91
|
+
"topics": [
|
|
92
|
+
{
|
|
93
|
+
"name": "t1",
|
|
94
|
+
"always": true,
|
|
95
|
+
"subscriberInfo": [
|
|
96
|
+
{
|
|
97
|
+
"subname": "default",
|
|
98
|
+
"filters": [
|
|
99
|
+
"PIXI",
|
|
100
|
+
"DRED",
|
|
101
|
+
"[abc]",
|
|
102
|
+
"F: (\\w+), L: (\\w+)",
|
|
103
|
+
"\\d{3,4}"
|
|
104
|
+
],
|
|
105
|
+
"rabbit": "kafka",
|
|
106
|
+
"throttle": {}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
### Swagger
|
|
114
|
+
|
|
115
|
+
Note: The content for this section may be missing as its corresponding .json file is unavailable. This sections will be updated once adapter-openapi.json file is added.
|
|
116
|
+
## [Generic Adapter Information](https://gitlab.com/itentialopensource/adapters/notification-messaging/adapter-kafkav2/-/blob/master/README.md)
|
|
117
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
---------------------------------------------------------------------------------------------
|
|
2
|
+
**** Project Compliance Summary ****
|
|
3
|
+
0 project(s) are not valid
|
|
4
|
+
0 project(s) are valid
|
|
5
|
+
---------------------------------------------------------------------------------------------
|
package/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapter-kafkav2",
|
|
3
|
-
"webName": "Adapter for Integration to Kafka
|
|
3
|
+
"webName": "Adapter for Integration to Kafka using kafkajs",
|
|
4
4
|
"vendor": "Kafka",
|
|
5
5
|
"product": "Kafka v2",
|
|
6
6
|
"osVersion": [],
|
|
@@ -20,26 +20,50 @@
|
|
|
20
20
|
"Notifications & Ticket Management"
|
|
21
21
|
],
|
|
22
22
|
"useCases": [
|
|
23
|
-
"
|
|
23
|
+
"Produce a message",
|
|
24
|
+
"Consume a message"
|
|
24
25
|
],
|
|
25
26
|
"deprecated": {
|
|
26
27
|
"isDeprecated": false
|
|
27
28
|
},
|
|
28
29
|
"brokerSince": "",
|
|
30
|
+
"authMethods": [
|
|
31
|
+
{
|
|
32
|
+
"type": "SASL",
|
|
33
|
+
"subtypes": [],
|
|
34
|
+
"primary": true
|
|
35
|
+
}
|
|
36
|
+
],
|
|
29
37
|
"documentation": {
|
|
30
38
|
"storeLink": "",
|
|
31
39
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-kafkav2",
|
|
32
|
-
"repoLink": "https://gitlab.com/itentialopensource/adapters/
|
|
40
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-kafkav2",
|
|
33
41
|
"docLink": "",
|
|
34
42
|
"demoLinks": [],
|
|
35
|
-
"trainingLinks": [
|
|
43
|
+
"trainingLinks": [
|
|
44
|
+
{
|
|
45
|
+
"title": "Itential Academy",
|
|
46
|
+
"link": "https://www.itential.com/itential-academy/"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
36
49
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
37
50
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
38
51
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
39
52
|
"webLink": "",
|
|
40
|
-
"vendorLink": "",
|
|
41
|
-
"productLink": "",
|
|
42
|
-
"apiLinks": [
|
|
53
|
+
"vendorLink": "https://kafka.apache.org/",
|
|
54
|
+
"productLink": "https://kafka.apache.org/",
|
|
55
|
+
"apiLinks": [
|
|
56
|
+
{
|
|
57
|
+
"title": "Kafka Documentation",
|
|
58
|
+
"link": "https://kafka.apache.org/documentation/",
|
|
59
|
+
"public": true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"title": "Kafkajs Node Library Documentation",
|
|
63
|
+
"link": "https://www.npmjs.com/package/kafkajs",
|
|
64
|
+
"public": true
|
|
65
|
+
}
|
|
66
|
+
]
|
|
43
67
|
},
|
|
44
68
|
"assets": [],
|
|
45
69
|
"relatedItems": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-kafkav2",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.4",
|
|
4
4
|
"description": "Itential adapter to connect to kafka",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.35.0",
|
|
@@ -33,14 +33,15 @@
|
|
|
33
33
|
],
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": ">=14.0.0",
|
|
37
|
+
"npm": ">=6.0.0"
|
|
37
38
|
},
|
|
38
39
|
"repository": {
|
|
39
40
|
"type": "git",
|
|
40
|
-
"url": "git@gitlab.com:itentialopensource/adapters/
|
|
41
|
+
"url": "git@gitlab.com:itentialopensource/adapters/adapter-kafkav2.git"
|
|
41
42
|
},
|
|
42
43
|
"author": "Itential",
|
|
43
|
-
"homepage": "https://gitlab.com/itentialopensource/adapters/
|
|
44
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-kafkav2",
|
|
44
45
|
"dependencies": {
|
|
45
46
|
"ajv": "^8.12.0",
|
|
46
47
|
"avro-schema-registry": "^2.1.0",
|
|
@@ -60,9 +61,9 @@
|
|
|
60
61
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
61
62
|
"eslint-plugin-import": "^2.27.5",
|
|
62
63
|
"eslint-plugin-json": "^3.1.0",
|
|
63
|
-
"mocha": "^
|
|
64
|
+
"mocha": "^10.7.0",
|
|
64
65
|
"testdouble": "^3.18.0",
|
|
65
|
-
"winston": "^3.
|
|
66
|
+
"winston": "^3.13.1"
|
|
66
67
|
},
|
|
67
68
|
"private": false
|
|
68
69
|
}
|
package/propertiesSchema.json
CHANGED
|
@@ -2,71 +2,6 @@
|
|
|
2
2
|
"$id": "adapter-kafkav2",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
-
"oneOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"host": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "hostname of the server",
|
|
12
|
-
"default": "localhost",
|
|
13
|
-
"examples": [
|
|
14
|
-
"systemx.customer.com"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"port": {
|
|
18
|
-
"type": "integer",
|
|
19
|
-
"description": "port on which to connect to the server",
|
|
20
|
-
"default": 9092,
|
|
21
|
-
"minimum": 1,
|
|
22
|
-
"maximum": 65535
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"required": [
|
|
26
|
-
"host",
|
|
27
|
-
"port"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"type": "object",
|
|
32
|
-
"properties": {
|
|
33
|
-
"hostList": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "A string of kafka broker/host combination delimited by comma",
|
|
36
|
-
"default": "localhost:9092",
|
|
37
|
-
"examples": [
|
|
38
|
-
"kafka-1.us-east-1.myapp.com:9093,kafka-2.us-east-1.myapp.com:9093,kafka-3.us-east-1.myapp.com:9093",
|
|
39
|
-
"kafka-1.us-east-1.myapp.com:9093"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"required": [
|
|
44
|
-
"hostList"
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"if": {
|
|
49
|
-
"not": {
|
|
50
|
-
"anyOf": [
|
|
51
|
-
{
|
|
52
|
-
"required": ["host"]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"required": ["hostList"]
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"then": {
|
|
61
|
-
"properties": {
|
|
62
|
-
"host": {
|
|
63
|
-
"default": "localhost"
|
|
64
|
-
},
|
|
65
|
-
"port": {
|
|
66
|
-
"default": 9092
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
5
|
"properties": {
|
|
71
6
|
"registry_url": {
|
|
72
7
|
"type": "string",
|
|
Binary file
|
package/sampleProperties.json
CHANGED
|
@@ -2,24 +2,60 @@
|
|
|
2
2
|
"type": "Kafkav2",
|
|
3
3
|
"id": "kafkav2",
|
|
4
4
|
"properties": {
|
|
5
|
-
"host": "localhost",
|
|
6
|
-
"port": 9092,
|
|
7
5
|
"registry_url": "",
|
|
8
|
-
"topics": [],
|
|
9
6
|
"interval_time": 5000,
|
|
10
7
|
"stub": false,
|
|
8
|
+
"parseMessage": true,
|
|
9
|
+
"wrapMessage": "myKey",
|
|
10
|
+
"check_iap_apps": true,
|
|
11
|
+
"check_wfe_status": true,
|
|
12
|
+
"check_ops_manager_status": false,
|
|
13
|
+
"fromBeginning": false,
|
|
14
|
+
"iap_apps_check_interval": 15000,
|
|
11
15
|
"client": {
|
|
12
16
|
"brokers": [
|
|
13
|
-
"
|
|
17
|
+
"broker:9093"
|
|
14
18
|
],
|
|
15
|
-
"clientId": "my-app"
|
|
19
|
+
"clientId": "my-app",
|
|
20
|
+
"logLevel": "INFO",
|
|
21
|
+
"ssl": {
|
|
22
|
+
"enableTrace": true,
|
|
23
|
+
"ca": "/path/to/crt.pem",
|
|
24
|
+
"rejectUnauthorized": true
|
|
25
|
+
},
|
|
26
|
+
"sasl": {
|
|
27
|
+
"username": "my-user",
|
|
28
|
+
"password": "my-password",
|
|
29
|
+
"mechanism": "scram-sha-512"
|
|
30
|
+
}
|
|
16
31
|
},
|
|
17
32
|
"producer": {
|
|
18
33
|
"requireAcks": 1,
|
|
19
|
-
"ackTimeoutMs": 100
|
|
34
|
+
"ackTimeoutMs": 100,
|
|
35
|
+
"partitionerType": 0
|
|
20
36
|
},
|
|
21
37
|
"consumer": {
|
|
22
38
|
"groupId": "kafka-node-group"
|
|
23
|
-
}
|
|
39
|
+
},
|
|
40
|
+
"topics": [
|
|
41
|
+
{
|
|
42
|
+
"name": "t1",
|
|
43
|
+
"always": true,
|
|
44
|
+
"subscriberInfo": [
|
|
45
|
+
{
|
|
46
|
+
"subname": "default",
|
|
47
|
+
"filters": [
|
|
48
|
+
"PIXI",
|
|
49
|
+
"DRED",
|
|
50
|
+
"[abc]",
|
|
51
|
+
"F: (\\w+), L: (\\w+)",
|
|
52
|
+
"\\d{3,4}"
|
|
53
|
+
],
|
|
54
|
+
"rabbit": "kafka",
|
|
55
|
+
"throttle": {}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
24
60
|
}
|
|
25
|
-
}
|
|
61
|
+
}
|