File
Output plugin : Fileâ
- Author: InterestingLab
- Homepage: https://interestinglab.github.io/seatunnel-docs
- Version: 1.0.0
Descriptionâ
Write Rows to local file system.
Optionsâ
name | type | required | default value |
---|---|---|---|
options | object | no | - |
partition_by | array | no | - |
path | string | yes | - |
path_time_format | string | no | yyyyMMddHHmmss |
save_mode | string | no | error |
format | string | no | json |
options [object]â
Custom parameters.
partition_by [array]â
Partition the data based on the fields.
path [string]â
Output File path. Start with file://
.
path_time_format [string]â
If path
contains time variable, such as xxxx-${now}
, path_time_format
can be used to specify the format of path, default is yyyy.MM.dd
. The commonly used time formats are listed below:
Symbol | Description |
---|---|
y | Year |
M | Month |
d | Day of month |
H | Hour in day (0-23) |
m | Minute in hour |
s | Second in minute |
The detailed time format syntax:Java SimpleDateFormat.
save_mode [string]â
Save mode, supports overwrite
, append
, ignore
and error
. The detail of save_mode see save-modes.
format [string]â
Output format, supports csv
, json
, parquet
and text
.
Exampleâ
file {
path = "file:///var/logs"
format = "text"
}