跳到主要内容
版本:Next

OpenMldb

OpenMldb 源连接器

描述

用于从 OpenMldb 读取数据.

关键特性

选项

名称类型必需默认值
cluster_modeboolean-
sqlstring-
databasestring-
hoststring-
portint-
zk_pathstring-
zk_hoststring-
session_timeoutint10000
request_timeoutint60000
common-options-

cluster_mode [string]

OpenMldb 是否处于群集模式

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会话超时(ms),默认值60000

request_timeout [int]

OpenMldb请求超时(ms),默认值为10000

common options

源插件常用参数, 详见 Source Common Options

示例


OpenMldb {
host = "172.17.0.2"
port = 6527
sql = "select * from demo_table1"
database = "demo_db"
cluster_mode = false
}