RocketMQ
Last updated
Last updated
RocketMQ source connector
4.9.0 (Or a newer version, for reference)
Source connector for Apache RocketMQ.
topics
String
yes
-
RocketMQ topic
name. If there are multiple topics
, use ,
to split, for example: "tpc1,tpc2"
.
name.srv.addr
String
yes
-
RocketMQ
name server cluster address.
acl.enabled
Boolean
no
false
If true, access control is enabled, and access key and secret key need to be configured.
access.key
String
no
secret.key
String
no
When ACL_ENABLED is true, secret key cannot be empty.
batch.size
int
no
100
RocketMQ
consumer pull batch size
consumer.group
String
no
Nexus-Consumer-Group
RocketMQ consumer group id
, used to distinguish different consumer groups.
commit.on.checkpoint
Boolean
no
true
If true the consumer's offset will be periodically committed in the background.
schema
no
-
The structure of the data, including field names and field types.
format
String
no
json
Data format. The default format is json. Optional text format. The default field separator is ",".If you customize the delimiter, add the "field.delimiter" option.
field.delimiter
String
no
,
Customize the field delimiter for data format
start.mode
String
no
CONSUME_FROM_GROUP_OFFSETS
The initial consumption pattern of consumers,there are several types: [CONSUME_FROM_LAST_OFFSET],[CONSUME_FROM_FIRST_OFFSET],[CONSUME_FROM_GROUP_OFFSETS],[CONSUME_FROM_TIMESTAMP],[CONSUME_FROM_SPECIFIC_OFFSETS]
start.mode.offsets
no
start.mode.timestamp
Long
no
The time required for consumption mode to be "CONSUME_FROM_TIMESTAMP".
partition.discovery.interval.millis
long
no
-1
The interval for dynamically discovering topics and partitions.
common-options
config
no
-
The offset required for consumption mode to be "CONSUME_FROM_SPECIFIC_OFFSETS".
for example:
Consumer reads Rocketmq data and prints it to the console type
When I consume the topic data in json format parsing and pulling the number of bars each time is 400, the consumption starts from the original location
This is to specify a time to consume, and I dynamically sense the existence of a new partition every 1000 milliseconds to pull the consumption
Source plugin common parameters, please refer to for details.