@@ -248,7 +248,6 @@ sink {
248
248
source_table_name = "sql"
249
249
username = ${username}
250
250
password = ${password}
251
- blankSpace = ${blankSpace}
252
251
}
253
252
}
254
253
@@ -259,15 +258,14 @@ We can replace those parameters with this shell command:
259
258
260
259
` ` ` shell
261
260
./bin/seatunnel.sh -c <this_config_file>
262
- -i jobName='st var job '
261
+ -i jobName='this_is_a_job_name '
263
262
-i resName=fake
264
263
-i rowNum=10
265
- -i strTemplate=['abc','d~f','h i ']
264
+ -i strTemplate=['abc','d~f','hi ']
266
265
-i nameType=string
267
266
-i nameVal=abc
268
267
-i username=seatunnel=2.3.1
269
268
-i password='$a^b%c.d~e0*9('
270
- -i blankSpace='2023-12-26 11:30:00'
271
269
-e local
272
270
` ` `
273
271
@@ -276,7 +274,7 @@ Then the final submitted config is:
276
274
` ` ` hocon
277
275
env {
278
276
job.mode = "BATCH"
279
- job.name = "st var job "
277
+ job.name = "this_is_a_job_name "
280
278
parallelism = 2
281
279
}
282
280
@@ -309,14 +307,14 @@ sink {
309
307
source_table_name = "sql"
310
308
username = "seatunnel=2.3.1"
311
309
password = "$a^b%c.d~e0*9("
312
- blankSpace = "2023-12-26 11:30:00"
313
310
}
314
311
}
315
312
` ` `
316
313
317
314
Some Notes :
318
- - quota with `'` if the value has space ` ` or special character (like `(`)
315
+ - quota with `'` if the value has special character (like `(`)
319
316
- if the replacement variables is in `"` or `'`, like `resName` and `nameVal`, you need add `"`
317
+ - the value can't have space `' '`, like `-i jobName='this is a job name' `, this will be replaced to `job.name = "this"`
320
318
321
319
# # What's More
322
320
0 commit comments