Rabbitmq
Rabbitmq sink connector
Descriptionâ
Used to write data to Rabbitmq.
Key featuresâ
Optionsâ
name | type | required | default value |
---|---|---|---|
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 | - |
host [string]â
the default host to use for connections
port [int]â
the default port to use for connections
virtual_host [string]â
virtual host â the virtual host to use when connecting to the broker
username [string]â
the AMQP user name to use when connecting to the broker
password [string]â
the password to use when connecting to the broker
url [string]â
convenience method for setting the fields in an AMQP URI: host, port, username, password and virtual host
queue_name [string]â
the queue to write the message to
durable [boolean]â
true: The queue will survive a server restart. false: The queue will be deleted on server restart.
exclusive [boolean]â
true: The queue is used only by the current connection and will be deleted when the connection closes. false: The queue can be used by multiple connections.
auto_delete [boolean]â
true: The queue will be deleted automatically when the last consumer unsubscribes. false: The queue will not be automatically deleted.
schema [Config]â
fields [Config]â
the schema fields of upstream data.
network_recovery_interval [int]â
how long will automatic recovery wait before attempting to reconnect, in ms
topology_recovery_enabled [boolean]â
if true, enables topology recovery
automatic_recovery_enabled [boolean]â
if true, enables connection recovery
use_correlation_id [boolean]â
whether the messages received are supplied with a unique id to deduplicate messages (in case of failed acknowledgments).
connection_timeout [int]â
connection TCP establishment timeout in milliseconds; zero for infinite
rabbitmq.config [map]â
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.
common optionsâ
Sink plugin common parameters, please refer to Sink Common Options for details
Exampleâ
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
}
}
}
Example 2â
queue with durable, exclusive, auto_delete:
sink {
RabbitMQ {
host = "rabbitmq-e2e"
port = 5672
virtual_host = "/"
username = "guest"
password = "guest"
queue_name = "test1"
durable = "true"
exclusive = "false"
auto_delete = "false"
rabbitmq.config = {
requested-heartbeat = 10
connection-timeout = 10
}
}
}
Changelogâ
next versionâ
- Add Rabbitmq Sink Connector
- [Improve] Change Connector Custom Config Prefix To Map 3719