卡夫卡的记录不被删除

时间:2019-02-02 22:00:38

标签: apache-kafka

我想通过下面做由一个主题删除卡夫卡记录:

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

我的配置如下:

enter image description here

问题

  • 我想念的是什么。为什么主题中的kafka记录没有删除?

0 个答案:

没有答案