Re: Partition reassignment data file is empty

2017-12-31 Thread allen chan
Absolutely user error. Works after i removed the erroneous comma. Wish the error message was more obvious. Thanks Brett and Ted! On Sun, Dec 31, 2017 at 6:29 PM, Ted Yu wrote: > I verified that Brett said thru this code: > > val (partitionsToBeReassigned, replicaAssignment) = > ReassignParti

Re: Partition reassignment data file is empty

2017-12-31 Thread Ted Yu
I verified that Brett said thru this code: val (partitionsToBeReassigned, replicaAssignment) = ReassignPartitionsCommand.parsePartitionReassignmentData( "{\"version\":1,\"partitions\":[{\"topic\":\"metrics\",\"partition\" :0,\"replicas\":[1,2]},{\"topic\":\"metrics\",\"partition\":1,\

Re: Partition reassignment data file is empty

2017-12-31 Thread Brett Rann
That's happening because your JSON is malformed. Losing the last comma will fix it. On Sun, Dec 31, 2017 at 3:43 PM, allen chan wrote: > Hello > > Kafka Version: 0.11.0.1 > > I am trying to increase replication factor for a topic and i am getting the > below error. Can anyone help explain what t