-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathspec.json
279 lines (279 loc) · 11.9 KB
/
spec.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
{
"documentationUrl": "https://docs.airbyte.com/integrations/sources/kafka",
"supportsIncremental": true,
"supported_source_sync_modes": ["append"],
"connectionSpecification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Kafka Source Spec",
"type": "object",
"required": ["bootstrap_servers", "subscription", "protocol"],
"additionalProperties": true,
"properties": {
"MessageFormat": {
"title": "MessageFormat",
"type": "object",
"description": "The serialization used based on this ",
"oneOf": [
{
"title": "JSON",
"properties": {
"deserialization_type": {
"type": "string",
"const": "JSON"
}
}
},
{
"title": "AVRO",
"properties": {
"deserialization_type": {
"const": "AVRO"
},
"deserialization_strategy": {
"type": "string",
"enum": [
"TopicNameStrategy",
"RecordNameStrategy",
"TopicRecordNameStrategy"
],
"default": "TopicNameStrategy"
},
"schema_registry_url": {
"type": "string",
"examples": ["http://localhost:8081"]
},
"schema_registry_username": {
"type": "string",
"default": ""
},
"schema_registry_password": {
"type": "string",
"default": "",
"airbyte_secret": true
}
}
}
]
},
"bootstrap_servers": {
"title": "Bootstrap Servers",
"description": "A list of host/port pairs to use for establishing the initial connection to the Kafka cluster. The client will make use of all servers irrespective of which servers are specified here for bootstrapping—this list only impacts the initial hosts used to discover the full set of servers. This list should be in the form <code>host1:port1,host2:port2,...</code>. Since these servers are just used for the initial connection to discover the full cluster membership (which may change dynamically), this list need not contain the full set of servers (you may want more than one, though, in case a server is down).",
"type": "string",
"examples": ["kafka-broker1:9092,kafka-broker2:9092"]
},
"subscription": {
"title": "Subscription Method",
"type": "object",
"description": "You can choose to manually assign a list of partitions, or subscribe to all topics matching specified pattern to get dynamically assigned partitions.",
"oneOf": [
{
"title": "Manually assign a list of partitions",
"required": ["subscription_type", "topic_partitions"],
"properties": {
"subscription_type": {
"description": "Manually assign a list of partitions to this consumer. This interface does not allow for incremental assignment and will replace the previous assignment (if there is one).\nIf the given list of topic partitions is empty, it is treated the same as unsubscribe().",
"type": "string",
"const": "assign"
},
"topic_partitions": {
"title": "List of topic:partition Pairs",
"type": "string",
"examples": ["sample.topic:0, sample.topic:1"]
}
}
},
{
"title": "Subscribe to all topics matching specified pattern",
"required": ["subscription_type", "topic_pattern"],
"properties": {
"subscription_type": {
"description": "The Topic pattern from which the records will be read.",
"type": "string",
"const": "subscribe"
},
"topic_pattern": {
"title": "Topic Pattern",
"type": "string",
"examples": ["sample.topic"]
}
}
}
]
},
"test_topic": {
"title": "Test Topic",
"description": "The Topic to test in case the Airbyte can consume messages.",
"type": "string",
"examples": ["test.topic"]
},
"group_id": {
"title": "Group ID",
"description": "The Group ID is how you distinguish different consumer groups.",
"type": "string",
"examples": ["group.id"]
},
"max_poll_records": {
"title": "Max Poll Records",
"description": "The maximum number of records returned in a single call to poll(). Note, that max_poll_records does not impact the underlying fetching behavior. The consumer will cache the records from each fetch request and returns them incrementally from each poll.",
"type": "integer",
"default": 500
},
"polling_time": {
"title": "Polling Time",
"description": "Amount of time in milliseconds Kafka connector should try to poll for messages.",
"type": "integer",
"default": 100
},
"protocol": {
"title": "Protocol",
"type": "object",
"description": "The Protocol used to communicate with brokers.",
"oneOf": [
{
"title": "PLAINTEXT",
"required": ["security_protocol"],
"properties": {
"security_protocol": {
"type": "string",
"const": "PLAINTEXT"
}
}
},
{
"title": "SASL PLAINTEXT",
"required": [
"security_protocol",
"sasl_mechanism",
"sasl_jaas_config"
],
"properties": {
"security_protocol": {
"type": "string",
"const": "SASL_PLAINTEXT"
},
"sasl_mechanism": {
"title": "SASL Mechanism",
"description": "The SASL mechanism used for client connections. This may be any mechanism for which a security provider is available.",
"type": "string",
"const": "PLAIN"
},
"sasl_jaas_config": {
"title": "SASL JAAS Config",
"description": "The JAAS login context parameters for SASL connections in the format used by JAAS configuration files.",
"type": "string",
"default": "",
"airbyte_secret": true
}
}
},
{
"title": "SASL SSL",
"required": [
"security_protocol",
"sasl_mechanism",
"sasl_jaas_config"
],
"properties": {
"security_protocol": {
"type": "string",
"const": "SASL_SSL"
},
"sasl_mechanism": {
"title": "SASL Mechanism",
"description": "The SASL mechanism used for client connections. This may be any mechanism for which a security provider is available.",
"type": "string",
"default": "GSSAPI",
"enum": [
"GSSAPI",
"OAUTHBEARER",
"SCRAM-SHA-256",
"SCRAM-SHA-512",
"PLAIN"
]
},
"sasl_jaas_config": {
"title": "SASL JAAS Config",
"description": "The JAAS login context parameters for SASL connections in the format used by JAAS configuration files.",
"type": "string",
"default": "",
"airbyte_secret": true
},
"oauthbearer_token_endpoint_url": {
"title": "OAUTHBEARER token endpoint URL",
"type": "string",
"description": "Endpoint for requesting tokens if setting SASL Mechanism to OAUTHBEARER",
"default": ""
}
}
}
]
},
"client_id": {
"title": "Client ID",
"description": "An ID string to pass to the server when making requests. The purpose of this is to be able to track the source of requests beyond just ip/port by allowing a logical application name to be included in server-side request logging.",
"type": "string",
"examples": ["airbyte-consumer"]
},
"enable_auto_commit": {
"title": "Enable Auto Commit",
"description": "If true, the consumer's offset will be periodically committed in the background.",
"type": "boolean",
"default": true
},
"auto_commit_interval_ms": {
"title": "Auto Commit Interval, ms",
"description": "The frequency in milliseconds that the consumer offsets are auto-committed to Kafka if enable.auto.commit is set to true.",
"type": "integer",
"default": 5000
},
"client_dns_lookup": {
"title": "Client DNS Lookup",
"description": "Controls how the client uses DNS lookups. If set to use_all_dns_ips, connect to each returned IP address in sequence until a successful connection is established. After a disconnection, the next IP is used. Once all IPs have been used once, the client resolves the IP(s) from the hostname again. If set to resolve_canonical_bootstrap_servers_only, resolve each bootstrap address into a list of canonical names. After the bootstrap phase, this behaves the same as use_all_dns_ips. If set to default (deprecated), attempt to connect to the first IP address returned by the lookup, even if the lookup returns multiple IP addresses.",
"type": "string",
"default": "use_all_dns_ips",
"enum": [
"default",
"use_all_dns_ips",
"resolve_canonical_bootstrap_servers_only"
]
},
"retry_backoff_ms": {
"title": "Retry Backoff, ms",
"description": "The amount of time to wait before attempting to retry a failed request to a given topic partition. This avoids repeatedly sending requests in a tight loop under some failure scenarios.",
"type": "integer",
"default": 100
},
"request_timeout_ms": {
"title": "Request Timeout, ms",
"description": "The configuration controls the maximum amount of time the client will wait for the response of a request. If the response is not received before the timeout elapses the client will resend the request if necessary or fail the request if retries are exhausted.",
"type": "integer",
"default": 30000
},
"receive_buffer_bytes": {
"title": "Receive Buffer, bytes",
"description": "The size of the TCP receive buffer (SO_RCVBUF) to use when reading data. If the value is -1, the OS default will be used.",
"type": "integer",
"default": 32768
},
"auto_offset_reset": {
"title": "Auto Offset Reset",
"description": "What to do when there is no initial offset in Kafka or if the current offset does not exist any more on the server - earliest: automatically reset the offset to the earliest offset, latest: automatically reset the offset to the latest offset, none: throw exception to the consumer if no previous offset is found for the consumer's group, anything else: throw exception to the consumer.",
"type": "string",
"default": "latest",
"enum": ["latest", "earliest", "none"]
},
"repeated_calls": {
"title": "Repeated Calls",
"description": "The number of repeated calls to poll() if no messages were received.",
"type": "integer",
"default": 3
},
"max_records_process": {
"title": "Maximum Records",
"description": "The Maximum to be processed per execution",
"type": "integer",
"default": 100000
}
}
}
}