输出数据到HDFS
Options
name | type | required | default value |
---|---|---|---|
[options] options-object | |||
[partition_by] partition_by-array | |||
[path] path-string | |||
[path_time_format] path_time_format-string | |||
[save_mode] save_mode-string | |||
[serializer] serializer-string | |||
[common-options] common-options-string |
options [object]
自定义参数
partition_by [array]
根据所选字段对数据进行分区
path [string]
输出文件路径,以 hdfs:// 开头
path_time_format [string]
当path
参数中的格式为xxxx-${now}
时,path_time_format
可以指定路径的时间格式,默认值为 yyyy.MM.dd
。常用的时间格式列举如下:
Symbol | Description |
---|---|
y | Year |
M | Month |
d | Day of month |
H | Hour in day (0-23) |
m | Minute in hour |
s | Second in minute |
详细的时间格式语法见Java SimpleDateFormat。
save_mode [string]
存储模式,当前支持overwrite,append,ignore以及error。每个模式具体含义见save-modes
serializer [string]
序列化方法,当前支持csv、json、parquet、orc和text
common options [string]
Sink
插件通用参数,详情参照 [Sink Plugin]
Examples
hdfs {
path = "hdfs:///var/logs-$"
serializer = "json"
path_time_format = "yyyy.MM.dd"
}
按天生成HDFS文件,例如logs-2018.02.12
文章列表
- Apache Seatunnel-Roadmap
- Apache Seatunnel-Sink plugin : Clickhouse [Spark]
- Apache Seatunnel-Sink plugin : Console [Spark]
- Apache Seatunnel-Sink plugin : Elasticsearch [Spark]
- Apache Seatunnel-Sink plugin : Email [Spark]
- Apache Seatunnel-Sink plugin : File [Spark]
- Apache Seatunnel-Sink plugin : Hbase [Spark]
- Apache Seatunnel-Sink plugin : Hdfs [Spark]
- Apache Seatunnel-Sink plugin : Mysql [Spark]
- Apache Seatunnel-Sink plugin : Phoenix [Spark]
- Apache Seatunnel-Source plugin : Fake [Spark]
- Apache Seatunnel-Source plugin : FakeStream [Spark]
- Apache Seatunnel-Source plugin : Hive [Spark]
- Apache Seatunnel-Source plugin : JDBC [Spark]
- Apache Seatunnel-Source plugin : Kafka [Flink]
- Apache Seatunnel-Source plugin : Kafka [Spark]
- Apache Seatunnel-Source plugin : Socket [Flink]
- Apache Seatunnel-Source plugin : SocketStream [Spark]
- Apache Seatunnel-Transform Plugin
- Apache Seatunnel-Transform plugin : Json [Spark]
- Apache Seatunnel-Transform plugin : SQL [Spark]
- Apache Seatunnel-Transform plugin : Split [Spark]
- Apache Seatunnel-seatunnel v2.x 与 v1.x 的区别是什么?
- Apache Seatunnel-start-seatunnel-flink.sh 使用方法
- Apache Seatunnel-start-seatunnel-spark.sh 使用方法
- Apache Seatunnel-下载、安装
- Apache Seatunnel-为 seatunnel v2.x 贡献代码
- Apache Seatunnel-完整配置文件案例 [Spark]
- Apache Seatunnel-快速开始
- Apache Seatunnel-插件开发
- Apache Seatunnel-深入seatunnel
- Apache Seatunnel-部署与运行