输出数据到Elasticsearch,支持的ElasticSearch版本为 >= 2.x 且 < 7.0.0。
Options
name | type | required | default value |
---|---|---|---|
[hosts] hosts-array | |||
[index_type] index_type-string | |||
[index_time_format] index_time_format-string | |||
[index] index-string | |||
[es] es-string | |||
[common-options] common-options-string |
hosts [array]
Elasticsearch集群地址,格式为host:port,允许指定多个host。如[“host1:9200”, “host2:9200”]。
index_type [string]
Elasticsearch index type
index_time_format [string]
当index
参数中的格式为xxxx-${now}
时,index_time_format
可以指定index名称的时间格式,默认值为 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。
index [string]
Elasticsearch index名称,如果需要根据时间生成index,可以指定时间变量,如:seatunnel-${now}
。now
代表当前数据处理的时间。
es.* [string]
用户还可以指定多个非必须参数,详细的参数列表见Elasticsearch支持的参数.
如指定es.batch.size.entries
的方式是: es.batch.size.entries = 100000
。如果不指定这些非必须参数,它们将使用官方文档给出的默认值。
common options [string]
Sink
插件通用参数,详情参照 [Sink Plugin]
Examples
elasticsearch {
hosts = ["localhost:9200"]
index = "seatunnel"
}
将结果写入Elasticsearch集群的名称为seatunnel的index中
elasticsearch {
hosts = ["localhost:9200"]
index = "seatunnel-$"
es.batch.size.entries = 100000
index_time_format = "yyyy.MM.dd"
}
按天创建索引,例如 seatunnel-2020.01.01
文章列表
- 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-部署与运行