-
Notifications
You must be signed in to change notification settings - Fork 0
/
sql-gateway-defaults.yaml
244 lines (221 loc) · 7.43 KB
/
sql-gateway-defaults.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
################################################################################
# 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.
################################################################################
# This file defines the default environment for Flink's SQL Gateway.
# Defaults might be overwritten by a session specific environment.
#==============================================================================
# Gateway server properties
#==============================================================================
server:
# The address that the gateway binds itself.
bind-address: sql-client
# The address that should be used by clients to connect to the gateway.
address: sql-client
# The port that the client connects to.
port: 8083
# The jvm args for SQL gateway process,
# like -Xmx2018m -Xms1024m -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps ...
jvm_args: "-Xmx2018m -Xms1024m"
#==============================================================================
# Session properties
#==============================================================================
session:
# Session will be closed when it's not accessed for this duration, which can be disabled by setting to zero.
# the minimum unit is in milliseconds.
idle-timeout: 2h
# The check interval for session idle timeout, which can be disabled by setting to zero.
# the minimum unit is in milliseconds.
check-interval: 1h
# Max count of active sessions, which can be disabled by setting to zero.
max-count: 1000000
# See the Table API & SQL documentation for details about supported properties.
#==============================================================================
# Tables
#==============================================================================
# Define tables here such as sources, sinks, views, or temporal tables.
tables:
- name: D1_CARS
type: source
update-mode: append
schema:
- name: user
type: STRING
- name: rid
type: BIGINT
- name: manufacturer
type: STRING
- name: model
type: STRING
- name: plate
type: STRING
- name: status
type: STRING
- name: ts
type: STRING
- name: parsed_timestamp
type: TIMESTAMP
rowtime:
timestamps:
type: "from-field"
from: "ts"
watermarks:
type: "periodic-bounded"
delay: "5"
connector:
property-version: 1
type: kafka
version: universal
topic: DEALER1_CARS
startup-mode: earliest-offset
properties:
- key: bootstrap.servers
value: kafka:9092
format:
property-version: 1
type: json
schema: "ROW(user STRING, rid BIGINT, manufacturer STRING, model STRING, plate STRING, status STRING, ts STRING)"
- name: D1_TRUCKS
type: source
update-mode: append
schema:
- name: user
type: STRING
- name: rid
type: BIGINT
- name: manufacturer
type: STRING
- name: model
type: STRING
- name: plate
type: STRING
- name: status
type: STRING
- name: ts
type: STRING
- name: parsed_timestamp
type: TIMESTAMP
rowtime:
timestamps:
type: "from-field"
from: "ts"
watermarks:
type: "periodic-bounded"
delay: "5"
connector:
property-version: 1
type: kafka
version: universal
topic: DEALER1_TRUCKS
startup-mode: earliest-offset
properties:
- key: bootstrap.servers
value: kafka:9092
format:
property-version: 1
type: json
schema: "ROW(user STRING, rid BIGINT, manufacturer STRING, model STRING, plate STRING, status STRING, ts STRING)"
- name: D2_VEHICLES
type: source
update-mode: append
schema:
- name: userID
type: BIGINT
- name: rid
type: BIGINT
- name: type
type: STRING
- name: manufacturer
type: STRING
- name: model
type: STRING
- name: plate
type: STRING
- name: status
type: STRING
- name: ts
type: STRING
- name: parsed_timestamp
type: TIMESTAMP
rowtime:
timestamps:
type: "from-field"
from: "ts"
watermarks:
type: "periodic-bounded"
delay: "5"
connector:
property-version: 1
type: kafka
version: universal
topic: DEALER2_VEHICLES
startup-mode: earliest-offset
properties:
- key: bootstrap.servers
value: kafka:9092
format:
property-version: 1
type: json
schema: "ROW(userID BIGINT, rid BIGINT, type STRING, manufacturer STRING, model STRING, plate STRING, status STRING, ts STRING)"
- name: D2_USERS
type: source
update-mode: append
schema:
- name: userID
type: BIGINT
- name: name
type: STRING
connector:
property-version: 1
type: kafka
version: universal
topic: DEALER2_USERS
startup-mode: earliest-offset
properties:
- key: bootstrap.servers
value: kafka:9092
format:
property-version: 1
type: json
schema: "ROW(userID BIGINT, name STRING)"
#==============================================================================
# Execution properties
#==============================================================================
# Execution properties allow for changing the behavior of a table program.
execution:
planner: blink # using the Blink planner
type: streaming # 'batch' or 'streaming' execution
result-mode: table # 'changelog' or 'table' presentation of results
parallelism: 1 # parallelism of the program
max-parallelism: 128 # maximum parallelism
min-idle-state-retention: 0 # minimum idle state retention in ms
max-idle-state-retention: 0 # maximum idle state retention in ms
#==============================================================================
# Execution properties
#==============================================================================
# Flink configuration parameters
configuration:
execution.checkpointing.interval: 1s
#==============================================================================
# Deployment properties
#==============================================================================
# Deployment properties allow for describing the cluster to which table
# programs are submitted to.
deployment:
type: standalone # only the 'standalone' deployment is supported
response-timeout: 5000 # general cluster communication timeout in ms
gateway-address: "" # (optional) address from cluster to gateway
gateway-port: 0 # (optional) port from cluster to gateway