OpenMldb
OpenMldb 源连接器
描述
用于从 OpenMldb 读取数据.
关键特性
选项
| 名称 | 类型 | 必需 | 默认值 | 描述 |
|---|---|---|---|---|
| cluster_mode | boolean | 是 | - | 是否以 OpenMLDB 集群模式连接。 |
| sql | string | 是 | - | 用于读取数据的 SQL 语句。 |
| database | string | 是 | - | 数据库名称。 |
| host | string | 否 | - | 当 cluster_mode 为 false 时必填。 |
| port | int | 否 | - | 当 cluster_mode 为 false 时必填。 |
| zk_host | string | 否 | - | 当 cluster_mode 为 true 时必填。 |
| zk_path | string | 否 | - | 当 cluster_mode 为 true 时必填。 |
| session_timeout | int | 否 | 10000 | OpenMLDB 会话超时时间,单位毫秒。 |
| request_timeout | int | 否 | 60000 | OpenMLDB 请求超时时间,单位毫秒。 |
| common-options | 否 | - | 源插件通用参数。 |
cluster_mode [boolean]
是否以 OpenMLDB 集群模式连接。为 false 时配置 host 和 port;为 true 时配置 zk_host 和 zk_path。
sql [string]
Sql 语句
database [string]
数据库名称
host [string]
OpenMldb主机,仅支持OpenMldb单模
port [int]
OpenMldb端口,仅支持OpenMldb单模
zk_host [string]
Zookeeper主机,仅在OpenMldb集群模式下受支持
zk_path [string]
Zookeeper路径,仅在OpenMldb集群模式下受支持
session_timeout [int]
OpenMLDB 会话超时时间,单位毫秒。
request_timeout [int]
OpenMLDB 请求超时时间,单位毫秒。
common options
源插件常用参数, 详见 Source Common Options
示例
source {
OpenMldb {
host = "172.17.0.2"
port = 6527
sql = "select * from demo_table1"
database = "demo_db"
cluster_mode = false
}
}
集群模式示例:
source {
OpenMldb {
zk_host = "zk-1:2181,zk-2:2181,zk-3:2181"
zk_path = "/openmldb"
sql = "select * from demo_table1"
database = "demo_db"
cluster_mode = true
}
}
变更日志
Change Log
| Change | Commit | Version |
|---|---|---|
| [improve] openmldb options (#9166) | https://github.com/apache/seatunnel/commit/d324fc59a4 | 2.3.11 |
| [Improve][Common] Introduce new error define rule (#5793) | https://github.com/apache/seatunnel/commit/9d1b2582b2 | 2.3.4 |
| [Improve][build] Give the maven module a human readable name (#4114) | https://github.com/apache/seatunnel/commit/d7cd601051 | 2.3.1 |
| [Improve][Project] Code format with spotless plugin. (#4101) | https://github.com/apache/seatunnel/commit/a2ab166561 | 2.3.1 |
| [Feature][Connector] add get source method to all source connector (#3846) | https://github.com/apache/seatunnel/commit/417178fb84 | 2.3.1 |
| [Feature][API & Connector & Doc] add parallelism and column projection interface (#3829) | https://github.com/apache/seatunnel/commit/b9164b8ba1 | 2.3.1 |
| [Hotfix][OptionRule] Fix option rule about all connectors (#3592) | https://github.com/apache/seatunnel/commit/226dc6a119 | 2.3.0 |
| [Feature][Conenctor-V2] Add openmldb source connector (#3313) | https://github.com/apache/seatunnel/commit/e68ecf7bef | 2.3.0 |