File
Source plugin : File [Spark]
Descriptionâ
read data from local or hdfs file.
Optionsâ
name | type | required | default value |
---|---|---|---|
format | string | no | json |
path | string | yes | - |
common-options | string | yes | - |
format [string]â
Format for reading files, currently supports text, parquet, json, orc, csv.
path [string]â
- If read data from hdfs , the file path should start with
hdfs://
- If read data from local , the file path should start with
file://
common options [string]â
Source plugin common parameters, please refer to Source Plugin for details
Examplesâ
file {
path = "hdfs:///var/logs"
result_table_name = "access_log"
}
file {
path = "file:///var/logs"
result_table_name = "access_log"
}