Kafka集群扩容遇到的问题

首先,看一下遇到的问题:

Partitions reassignment failed due to Partition reassignment data file imp-imps-app-web.json is empty

kafka.common.AdminCommandFailedException: Partition reassignment data file imp-imps-app-web.json is empty

at kafka.admin.ReassignPartitionsCommand$.executeAssignment(ReassignPartitionsCommand.scala:114)

at kafka.admin.ReassignPartitionsCommand$.main(ReassignPartitionsCommand.scala:47)

at kafka.admin.ReassignPartitionsCommand.main(ReassignPartitionsCommand.scal

技术分享

·············································

这个问题在网上查了好久,没有精准的回答,特此记录一下!

原因是json文件的最后一个pertion结束之后多了一个逗号!

去掉逗号即OK了!

具体如下:

技术分享



本文出自 “十年一剑--劲风” 博客,请务必保留此出处http://jingfeng.blog.51cto.com/9152964/1876505

文章来自:http://jingfeng.blog.51cto.com/9152964/1876505
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3