Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从最后一个偏移量读取数据,但使用:
consumer.setConsumeFromWhere(ConsumeFromWhere.CONSUME_FROM_LAST_OFFSET)
没有效果。
ConsumeFromWhere.CONSUME_FROM_LAST_OFFSET仅当您的消费者第一次连接到代理时才有效。
ConsumeFromWhere.CONSUME_FROM_LAST_OFFSET
您可能想使用sh mqadmin resetOffsetByTime将偏移量重置为现在。更多详情请参考这里。
sh mqadmin resetOffsetByTime