Reputation: 69
I am getting all the messages from the RabbitMQ when the connection is established. I want to limit the number of messages fetch the RabbitMQ.
Upvotes: 1
Views: 95
Reputation: 3709
You can set following parameter
maxMessagesPerPartition - Maximum number of messages
See spark-rabbitmq for more details.
Hoping this helps.
Upvotes: 1