import ChangeLog from ‘../changelog/connector-rabbitmq.md’;
Rabbitmq 数据接收器
该数据接收器是将数据写入Rabbitmq。
名称 | 类型 | 是否必须 | 默认值 |
---|---|---|---|
host | string | yes | - |
port | int | yes | - |
virtual_host | string | yes | - |
username | string | yes | - |
password | string | yes | - |
queue_name | string | yes | - |
url | string | no | - |
network_recovery_interval | int | no | - |
topology_recovery_enabled | boolean | no | - |
automatic_recovery_enabled | boolean | no | - |
use_correlation_id | boolean | no | false |
connection_timeout | int | no | - |
rabbitmq.config | map | no | - |
common-options | no | - |
Rabbitmq服务器地址
Rabbitmq服务器端口
virtual host – 连接broker使用的vhost
连接broker时使用的用户名
连接broker时使用的密码
设置host、port、username、password和virtual host的简便方式。
数据写入的队列名。
上游数据的模式字段。
自动恢复需等待多长时间才尝试重连,单位为毫秒。
设置为true,表示启用拓扑恢复。
设置为true,表示启用连接恢复。
接收到的消息是否都提供唯一ID,来删除重复的消息达到幂等(在失败的情况下)
TCP连接建立的超时时间,单位为毫秒;0代表不限制。
In addition to the above parameters that must be specified by the RabbitMQ client, the user can also specify multiple non-mandatory parameters for the client, covering all the parameters specified in the official RabbitMQ document. 除了上面提及必须设置的RabbitMQ客户端参数,你也还可以为客户端指定多个非强制参数,参见 RabbitMQ官方文档参数设置。
Sink插件常用参数,请参考Sink常用选项获取更多细节信息。
simple:
sink { RabbitMQ { host = "rabbitmq-e2e" port = 5672 virtual_host = "/" username = "guest" password = "guest" queue_name = "test1" rabbitmq.config = { requested-heartbeat = 10 connection-timeout = 10 } } }