Kafka指定topic分区的偏移量 Exception in thread "main" java.lang.IllegalStateException: No current assignment
在kafka中,我想指定分区的偏移量开始消费KafkaConsumerconsumer=newKafkaConsumer(props);consumer.subscribe(Arrays.asList("test"));consumer.seek(newTopicPartition("test",0),0l);Exceptioninthread"main"java.lang.IllegalStat