forked from apache/polaris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
polaris-server.yml
169 lines (140 loc) · 4.8 KB
/
polaris-server.yml
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
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#
server:
# Maximum number of threads.
maxThreads: 200
# Minimum number of thread to keep alive.
minThreads: 10
applicationConnectors:
# HTTP-specific options.
- type: http
# The port on which the HTTP server listens for service requests.
port: 8181
adminConnectors:
- type: http
port: 8182
# The hostname of the interface to which the HTTP server socket wil be found. If omitted, the
# socket will listen on all interfaces.
#bindHost: localhost
# ssl:
# keyStore: ./example.keystore
# keyStorePassword: example
#
# keyStoreType: JKS # (optional, JKS is default)
# HTTP request log settings
requestLog:
appenders:
# Settings for logging to stdout.
- type: console
# Settings for logging to a file.
- type: file
# The file to which statements will be logged.
currentLogFilename: ./logs/request.log
# When the log file rolls over, the file will be archived to requests-2012-03-15.log.gz,
# requests.log will be truncated, and new statements written to it.
archivedLogFilenamePattern: ./logs/requests-%d.log.gz
# The maximum number of log files to archive.
archivedFileCount: 14
# Enable archiving if the request log entries go to the their own file
archive: true
featureConfiguration:
ENFORCE_PRINCIPAL_CREDENTIAL_ROTATION_REQUIRED_CHECKING: false
SUPPORTED_CATALOG_STORAGE_TYPES:
- S3
- GCS
- AZURE
- FILE
# Whether we want to enable Snowflake OAuth locally. Setting this to true requires
# that you go through the setup outlined in the `README.md` file, specifically the
# `OAuth + Snowflake: Local Testing And Then Some` section
callContextResolver:
type: default
realmContextResolver:
type: default
defaultRealms:
- default-realm
metaStoreManager:
type: in-memory
# type: eclipse-link # uncomment to use eclipse-link as metastore
# persistence-unit: polaris
io:
factoryType: default
# TODO - avoid duplicating token broker config
oauth2:
type: test
# type: default # - uncomment to support Auth0 JWT tokens
# tokenBroker:
# type: symmetric-key
# secret: polaris
authenticator:
class: org.apache.polaris.service.auth.TestInlineBearerTokenPolarisAuthenticator
# class: org.apache.polaris.service.auth.DefaultPolarisAuthenticator # - uncomment to support Auth0 JWT tokens
# tokenBroker:
# type: symmetric-key
# secret: polaris
cors:
allowed-origins:
- http://localhost:8080
allowed-timing-origins:
- http://localhost:8080
allowed-methods:
- PATCH
- POST
- DELETE
- GET
- PUT
allowed-headers:
- "*"
exposed-headers:
- "*"
preflight-max-age: 600
allowed-credentials: true
# Logging settings.
logging:
# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
level: INFO
# Logger-specific levels.
loggers:
org.apache.iceberg.rest: DEBUG
org.apache.polaris: DEBUG
appenders:
- type: console
# If true, write log statements to stdout.
# enabled: true
# Do not display log statements below this threshold to stdout.
threshold: ALL
# Custom Logback PatternLayout with threadname.
logFormat: "%-5p [%d{ISO8601} - %-6r] [%t] [%X{aid}%X{sid}%X{tid}%X{wid}%X{oid}%X{srv}%X{job}%X{rid}] %c{30}: %m %kvp%n%ex"
# Settings for logging to a file.
- type: file
# If true, write log statements to a file.
# enabled: true
# Do not write log statements below this threshold to the file.
threshold: ALL
layout:
type: polaris
flattenKeyValues: false
includeKeyValues: true
# The file to which statements will be logged.
currentLogFilename: ./logs/polaris.log
# When the log file rolls over, the file will be archived to snowflake-2012-03-15.log.gz,
# snowflake.log will be truncated, and new statements written to it.
archivedLogFilenamePattern: ./logs/polaris-%d.log.gz
# The maximum number of log files to archive.
archivedFileCount: 14