首先,看一下遇到的问题:
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