-
Notifications
You must be signed in to change notification settings - Fork 108
/
application.yaml
440 lines (429 loc) · 10.5 KB
/
application.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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
spring:
profiles:
active: local,h2-default-db,logging-console-debug,scheduling #, initial #, bcrypt-encoder, encode-password-initial, datasource-filter-sample
application:
name: ${METATRON_NAME:metatron}
datasource:
initialize: false
http:
multipart:
max-file-size: 300Mb
max-request-size: 300Mb
mvc:
favicon:
enabled: false
boot:
admin:
client:
enabled: false
server:
port: 8180
display-name: polaris
error:
whitelabel:
enabled: false
tomcat:
ajp:
enabled: false
protocol: AJP/1.3
port: 8280
# https://stackoverflow.com/questions/43264890/after-upgrade-from-spring-boot-1-2-to-1-5-2-filenotfoundexception-during-tomcat
additional-tld-skip-patterns: "*.jar"
logging:
config: classpath:logback-console.xml
endpoints:
enabled: false
polaris:
title: metatron
common:
manualLinks:
ko: file://${METATRON_HOME:/metatron}/doc/metatronDiscovery.user.manual.ko.pdf
en: file://${METATRON_HOME:/metatron}/doc/metatronDiscovery.user.manual.en.pdf
widget:
mapView:
defaultBaseMap: Light
overrideBaseMap: false
oauth2:
permitAll:
-
method: POST
api: /api/users/signup
-
method: POST
api: /api/users/password/reset
-
method: GET
api: /api/common/manual/download
-
method: GET
api: /api/users/**/duplicated
-
method: GET
api: /api/jobs/**
-
method: POST
api: /api/datasources/*/data
-
method: POST
api: /api/dashboards/*/data
-
method: POST
api: /api/widgets/*/data
-
method: POST
api: /api/auth/**
-
method: GET
api: /api/auth/**
-
method: POST
api: /api/admin/reindex
-
method: GET
api: /api/admin/**
-
method: POST
api: /api/images/**
datasource:
connections:
ORACLE: ["ENGINE", "LIVE"]
MYSQL: ["ENGINE", "LIVE"]
POSTGRESQL: ["ENGINE", "LIVE"]
HIVE: ["ENGINE", "LIVE"]
PRESTO: ["LIVE"]
PHOENIX: ["LIVE"]
engine:
api:
query:
target: broker
method: POST
uri: /druid/v2/
load:
target: broker
method: POST
uri: /druid/v2/load/
getProgress:
target: broker
method: GET
uri: /druid/v2/progress/{queryId}
getLoadDatasources:
target: broker
method: GET
uri: /druid/v2/datasources/local
getLoadDatasourceInfo:
target: broker
method: GET
uri: /druid/v2/datasources/local/{datasourceName}/coverage
deleteLoadDatasources:
target: broker
method: DELETE
uri: /druid/v2/datasources/local/{datasourceName}
cancelQuery:
target: broker
method: DELETE
uri: /druid/v2/{queryId}
ingestion:
target: overlord
method: POST
uri: /druid/indexer/v1/task
ingestionStatus:
target: overlord
method: GET
uri: /druid/indexer/v1/task/{taskId}/status
ingestionLog:
target: overlord
method: GET
uri: /druid/indexer/v1/task/{taskId}/log
ingestionShutdown:
target: overlord
method: POST
uri: /druid/indexer/v1/task/{taskId}/shutdown
supervisor:
target: overlord
method: POST
uri: /druid/indexer/v1/supervisor
supervisorStatus:
target: overlord
method: GET
uri: /druid/indexer/v1/supervisor/{taskId}/status
supervisorShutdown:
target: overlord
method: POST
uri: /druid/indexer/v1/supervisor/{taskId}/shutdown
supervisorReset:
target: overlord
method: POST
uri: /druid/indexer/v1/supervisor/{taskId}/reset
workerStatus:
target: overlord
method: GET
uri: /druid/indexer/v1/workers
getDatasources:
target: coordinator
method: GET
uri: /druid/coordinator/v1/datasources
datasourceStatus:
target: coordinator
method: GET
uri: /druid/coordinator/v1/datasources/{datasourceId}
datasourceDisable:
target: coordinator
method: DELETE
uri: /druid/coordinator/v1/datasources/{datasourceId}
datasourcePurge:
target: coordinator
method: DELETE
uri: /druid/coordinator/v1/datasources/{datasourceId}/purge
cache:
configFile: default-configs/default-jgroups-tcp.xml
# cors:
# -
# mapping: "/api/**"
# allowedOrigins: "*"
# allowedMethods: "GET,HEAD,POST,OPTIONS,PUT,PATCH,DELETE" # comma seperated
# allowedHeaders: "*"
# exposedHeaders: "*"
# allowCredentials: false
# maxAge: 3600
---
spring:
profiles: initial
datasource:
initialize: true
jpa:
properties:
hibernate:
hbm2ddl:
auto: create
import_files: /scripts/default.sql,/scripts/default_expressions.sql,/scripts/default_datasource_ingestion_options.sql
import_files_sql_extractor: org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor
---
spring:
profiles: local
mail:
host: localhost
port: 25
username:
password:
polaris:
format:
datetimes:
- 'yy-MM-dd'
- 'dd/MM/yyyy'
chart:
profile: default
datasource:
ingestion:
retries:
delay: 3
maxDelay: 90
maxDuration : 3600
engine:
hostname:
broker: http://localhost:8082
overlord: http://localhost:8090
coordinator: http://localhost:8081
ingestion:
loader:
remoteType: LOCAL
localBaseDir: ${java.io.tmpdir:-/tmp}
query:
loader:
remoteType: LOCAL
localBaseDir: ${java.io.tmpdir:-/tmp}
notebook:
baseDir: ${java.io.tmpdir:-/tmp}
sparkDir: /usr/local/spark
mail:
admin: admin@metatron.com
baseUrl: http://localhost:8180
workbench:
defaultResultSize: 1000
maxResultSize: 1000000
maxFetchSize: 1000
tempHdfsPath: /tmp/hive
tempCSVPath: /tmp
geoserver:
baseUrl: http://localhost:9090
username: admin
password: geoserver
defaultWorkspace: metatron
storage:
stagedb:
hostname: localhost
port: 10000
username: hive
password: hive
metastore:
uri: thrift://localhost:9083
jdbc:
url:
username:
password:
dataprep:
localBaseDir: ${user.home}/dataprep
# hadoopConfDir: /etc/hadoop
# stagingBaseDir: hdfs://localhost:9000/user/hive/dataprep
# sampling:
# timeout: 20
# etl:
# timeout: 36000
---
# (mysql DB 생성 script)
# create database polaris CHARACTER SET utf8;
# grant all privileges on polaris.* TO polaris@localhost identified by 'polaris';
# grant all privileges on polaris.* TO polaris@'%' identified by 'polaris';
#
# flush privileges;
spring:
profiles: mysql-default-db
datasource:
platform: mysql
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/polaris_v2?useUnicode=true&characterEncoding=utf8
username: polaris
password: polaris
max-active: 50
max-idle: 10
min-idle: 10
initial-size: 10
test-on-borrow: false
test-on-return: false
test-while-idle: true
max-wait: 1000
validation-query: SELECT 1
jpa:
show-sql: false
properties:
hibernate:
search:
default:
jmx_enabled: true
generate_statistics: true
directory_provider: filesystem
indexBase: ${METATRON_INDEX_DIR:indexes}
jdbc:
batch_size: 25
order_inserts: true
order_updates: true
hbm2ddl:
auto: update
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy
connection:
release_mode: after_transaction
---
spring:
profiles: h2-default-db
datasource:
platform: h2
driver-class-name: org.h2.Driver
url: jdbc:h2:file:${METATRON_H2_DATA_DIR:.}/h2db/polaris;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE
username: sa
password: sa
max-active: 10
jpa:
show-sql: false
properties:
hibernate:
search:
default:
jmx_enabled: true
generate_statistics: true
directory_provider: filesystem
indexBase: ${METATRON_INDEX_DIR:indexes}
jdbc:
batch_size: 25
order_inserts: true
order_updates: true
hbm2ddl:
auto: update
dialect: org.hibernate.dialect.H2Dialect
naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy
h2:
console:
enabled: false
path: /console
---
spring:
profiles: h2-in-memory-db
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:polaris;DB_CLOSE_DELAY\=-1;DB_CLOSE_ON_EXIT=FALSE
username: sa
password:
platform: h2
jpa:
properties:
hibernate:
search:
default:
jmx_enabled: false
generate_statistics: false
directory_provider: ram
jdbc:
batch_size: 25
order_inserts: true
order_updates: true
dialect: org.hibernate.dialect.H2Dialect
format_sql: true
---
spring:
profiles: logging-console-debug
logging:
config: classpath:logback-console.xml
---
spring:
profiles: logging-console-info
logging:
config: classpath:logback-console-info.xml
---
spring:
profiles: managements
boot:
admin:
client:
enabled: true
context-path: /admin
url: http://localhost:8180/admin
endpoints:
actuator:
enabled: true
enabled: true
management:
context-path: /managements
security:
enabled: false
health:
mail:
enabled: false
# Password Encoder
---
spring:
profiles: bcrypt-encoder
polaris:
password-encoder: bcrypt
# 기 등록된 사용자의 Password를 BCrypt 암호화 처리
# 해당 프로필은 한번만 수행할것
---
spring:
profiles: encode-password-initial
---
spring:
profiles: datasource-filter-sample
polaris:
datasource:
default-filters:
- criterionKey: CREATOR
filterKey: createdBy
filterValue: me
- criterionKey: PUBLISH
filterKey: published
filterValue: true
filterName: msg.storage.ui.criterion.open-data
connections:
default-filters:
- criterionKey: PUBLISH
filterKey: published
filterValue: true
filterName: msg.storage.ui.criterion.open-data