我想通过下面做由一个主题删除卡夫卡记录:
bin/kafka-delete-records.sh --bootstrap-server myserver:myport --offset-json-file offset.json
我的offset.json看起来像这样:
{"partitions": [{"topic": "mytopic", "partition": 0, "offset": 127}], "version":1}
运行脚本时,我收到以下消息:
➜ local-kafka_2.12-2.0.0 bin/kafka-delete-records.sh --bootstrap-server myip:myport --offset-json-file offset.json
Executing records delete operation
Records delete operation completed:
[2019-02-02 16:54:24,867] WARN [AdminClient clientId=adminclient-1] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
partition: mytopic-0 error: org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment.
我注意到,当我运行记录没有实际删除kafka-consumer-group.sh
我的配置如下:
问题