-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathspline.default.yaml
323 lines (273 loc) · 12.1 KB
/
spline.default.yaml
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
#
# Copyright 2017 ABSA Group Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ===================================================================================================
# THIS FILE CONTAINS DEFAULT SPLINE SPARK AGENT PROPERTIES.
# ===================================================================================================
spline:
# Spline mode: ENABLED|DISABLED
mode: ENABLED
# The version of UUID that is used for ExecutionPlan ID
# (DON'T MODIFY UNLESS YOU UNDERSTAND THE IMPLICATIONS)
internal.execPlan.uuid.version: 5
# Should the agent capture failed executions:
# - NONE (only capture successful executions)
# - NON_FATAL (capture successful executions, and failed executions, but only when the error is non-fatal)
# - ALL (capture all executions regardless of the error type)
sql.failure.capture: NON_FATAL
# Strategy for dealing with writes in ignore mode that doesn't provide info whether the file was actually written
IWDStrategy:
~: default
default:
className: za.co.absa.spline.harvester.iwd.DefaultIgnoredWriteDetectionStrategy
# Options: CAPTURE_LINEAGE | IGNORE_LINEAGE
onMissingMetrics: IGNORE_LINEAGE
# ===========================================
# Lineage Dispatchers
# ===========================================
# Root lineage dispatcher.
# Use one the logical dispatchers names registered below (http, kafka, console etc), or your custom dispatcher name
lineageDispatcher:
~: http
# -------------------------------------------
# HTTP dispatcher
# -------------------------------------------
http:
className: za.co.absa.spline.harvester.dispatcher.HttpLineageDispatcher
# Base URL of the Spline Producer REST API endpoint
producer.url:
timeout.connection: 2000
timeout.read: 120000
disableSslValidation: false
# Spline Producer API version to use.
# If unspecified, the protocol version is determined from the endpoint handshake response.
# If unspecified and a custom (non-Spline) endpoint is used, the Producer API version is automatically set to 1 (the oldest one supported).
apiVersion: # 1 | 1.1 | LATEST
# Should the payload be compressed.
# If unspecified, the request compression is negotiated with the endpoint, otherwise it's disabled.
requestCompression: # true | false
# Authentication config
authentication:
type: NONE # NONE | OAUTH
# For the OAUTH type the following properties should be set:
# ---
# grantType: client_credentials
# clientId: <client id>
# clientSecret: <secret>
# scope: <scope> (optional)
# tokenUrl: <token url>
# Additional http headers to be sent by dispatcher
header:
# X-CUSTOM-HEADER: custom-header-value
# -------------------------------------------
# Kafka dispatcher
# -------------------------------------------\
kafka:
className: za.co.absa.spline.harvester.dispatcher.KafkaLineageDispatcher
# Spline Producer API version
apiVersion: "1.2"
# producer configs as defined by kafka (bootstrap.servers, key.serializer, etc) all kafka configs are supported
producer.bootstrap.servers:
producer.key.serializer: org.apache.kafka.common.serialization.StringSerializer
producer.value.serializer: org.apache.kafka.common.serialization.StringSerializer
producer.max.in.flight.requests.per.connection: 1
# topic name
topic:
# -------------------------------------------
# Console dispatcher
# -------------------------------------------
console:
className: za.co.absa.spline.harvester.dispatcher.ConsoleLineageDispatcher
# (OUT | ERR) - whether the lineage data should be sent to standard output or standard error
stream: OUT
# -------------------------------------------
# Logging dispatcher
# -------------------------------------------
logging:
className: za.co.absa.spline.harvester.dispatcher.LoggingLineageDispatcher
# (ERROR | WARN | INFO | DEBUG | TRACE) - the logging level on which the lineage data should be logged
level: INFO
# -------------------------------------------
# Composite dispatcher
# -------------------------------------------
composite:
className: za.co.absa.spline.harvester.dispatcher.CompositeLineageDispatcher
# A comma separated logical dispatcher names to which the lineage data will be delegated
dispatchers:
# (true | false) - whether the dispatcher should fail fast on the first error occurred, or log it and continue
failOnErrors: false
# -------------------------------------------
# Fallback dispatcher
# -------------------------------------------
fallback:
className: za.co.absa.spline.harvester.dispatcher.FallbackLineageDispatcher
# dispatcher to use by default (for example: http)
primaryDispatcher:
# dispatcher that will be used only when primary dispatcher fails to send the data (for example: console)
fallbackDispatcher:
# -------------------------------------------
# HDFS dispatcher (experimental, tailored for specific use case, not recommended for general production usage)
# -------------------------------------------
hdfs:
className: za.co.absa.spline.harvester.dispatcher.HDFSLineageDispatcher
# Output lineage file will be created alongside the target data file
fileName: _LINEAGE
# the size of the buffer to be used
fileBufferSize: 4096
# file/directory permissions, provided as umask string, either in octal or symbolic format
filePermissions: 777
# -------------------------------------------
# Open Lineage HTTP dispatcher
# -------------------------------------------
httpOpenLineage:
className: za.co.absa.spline.harvester.dispatcher.HttpOpenLineageDispatcher
timeout.connection: 1000
timeout.read: 20000
disableSslValidation: false
namespace: default
# Spline Producer API version
apiVersion: "1.2"
# Base URL of the Spline Producer REST API endpoint
api.url:
# Authentication config
authentication:
type: NONE # NONE | OAUTH
# For the OAUTH type the following properties should be set:
# ---
# grantType: client_credentials
# clientId: <client id>
# clientSecret: <secret>
# scope: <scope> (optional)
# tokenUrl: <token url>
# -------------------------------------------
# User Custom dispatcher (example)
# -------------------------------------------
# Fully specified class name implementing {LineageDispatcher} trait.
# The class must have a constructor with a single parameter of type {org.apache.commons.configuration.Configuration}
# my-dispatcher:
# className: org.example.spline.MyDispatcherImpl
# prop1: value1
# prop2: value2
# ===========================================
# Post-Processing Filters
# ===========================================
# Root post-processing filter.
# Note:
# When overriding the root filter the default filters (like dsPasswordReplace for example) will not be automatically applied.
# If you want to keep default filters active and only add your own filter to the chain then you must use a composite filter,
# and add the "default" to the chain explicitly.
# For example:
# spline.postProcessingFilter=composite
# spline.postProcessingFilter.composite.filters=yourFilter, default
postProcessingFilter:
~: default
# -------------------------------------------
# Default Filter
# -------------------------------------------
default:
className: za.co.absa.spline.harvester.postprocessing.CompositePostProcessingFilter
filters:
- dsPasswordReplace
# -------------------------------------------
# Composite Filter
# -------------------------------------------
composite:
className: za.co.absa.spline.harvester.postprocessing.CompositePostProcessingFilter
# A comma separated list of user lineage filters {za.co.absa.spline.harvester.postprocessing.PostProcessingFilter}
# The classes must have a constructor with a single parameter of type {org.apache.commons.configuration.Configuration}
#
# Example:
# spline.postProcessingFilter.composite.filters=yourCustomFilter, otherFilter
filters:
# -------------------------------------------
# Password Replacing Filter
# -------------------------------------------
# This filter replaces password occurrences in the data source URIs
dsPasswordReplace:
className: za.co.absa.spline.harvester.postprocessing.DataSourcePasswordReplacingFilter
replacement: '*****'
nameRegexes:
- (?i)password
- (?i)passphrase
valueRegexes:
- (?i)[?&;](?:password|passphrase)=([^&;]*)
- /[^:]*:([^@]*)@(?:\w+\.)*\w+
# -------------------------------------------
# User extra metadata capturing filter
# -------------------------------------------
userExtraMeta:
className: za.co.absa.spline.harvester.postprocessing.metadata.MetadataCollectingFilter
# rules are defined in a JSON format
# can be a json string or url to json file
rules: { }
# ===========================================
# Plugins configuration.
# ===========================================
# Classpath scanning is required for auto-discovery of Spline agent plugins.
# It might however take up some of the job's startup time depending on the size
# of your Spark application classpath.
# If you are experiencing long job startup times, try to disable classpath
# scanning, and instead register your custom plugins explicitly in the configuration.
scanClasspath: true # true | false
# The `key` is the fully specified plugin class name.
# For example:
# ---
# plugins:
# com.example.MyPlugin:
# prop1: foo
# prop2: bar
plugins:
za.co.absa.spline.harvester.plugin.composite.LogicalRelationPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.composite.SaveIntoDataSourceCommandPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.CobrixPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.ExcelPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.BigQueryPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.DataSourceV2Plugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.RDDPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.MongoPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.AvroPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.CassandraPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.DatabricksPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.SQLPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.JDBCPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.KafkaPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.XMLPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.DeltaPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.ElasticSearchPlugin:
enabled: true
za.co.absa.spline.harvester.plugin.embedded.NonPersistentActionsCapturePlugin:
enabled: false
funcNames:
- head
- count
- collect
- collectAsList
- toLocalIterator