美文网首页
Invalid partition given with rec

Invalid partition given with rec

作者: _孙行者_ | 来源:发表于2022-09-27 16:16 被阅读0次

方法一 : 重启kafka

网上找的 大部分说法都是重启kafka , 从参数设置默认分区 .

./bin/kafka-topics.sh --zookeeper localhost:2181 --alter --partitions 12 --topic test

方法二: 只修改topic的

如果有安装kafka manager . 那么 kafka manager 上可以操作修改指定topic的.

kafka manager 修改对应的分区数

修改是即时生效的 .

相关文章

网友评论

      本文标题:Invalid partition given with rec

      本文链接:https://www.haomeiwen.com/subject/xfpcartx.html