I figured out the cause. After compiling 0.8, in core/target/scala-2.8.0/ somehow kafka_2.8.0-0.8.0-beta1's jars are generated as well and that caused the error.
Regards, Libo -----Original Message----- From: Jun Rao [mailto:jun...@gmail.com] Sent: Tuesday, December 10, 2013 10:56 AM To: users@kafka.apache.org Subject: Re: error from adding a partition Tried this on the 0.8.0 release and it works for me. Could you make sure there are no duplicated kafka jars? Thanks, Jun On Tue, Dec 10, 2013 at 7:08 AM, Yu, Libo <libo...@citi.com> wrote: > Hi folks, > > I got this error when I tried to test the partition addition tool. > bin/kafka-add-partitions.sh --partition 1 --topic libotesttopic > --zookeeper xx.xxx.xxx.xx:yyyy adding partitions failed because of > kafka.admin.AdminUtils$.assignReplicasToBrokers(Lscala/collection/Seq; > IIII)Lscala/collection/Map; > java.lang.NoSuchMethodError: > kafka.admin.AdminUtils$.assignReplicasToBrokers(Lscala/collection/Seq;IIII)Lscala/collection/Map; > at > kafka.admin.AddPartitionsCommand$.addPartitions(AddPartitionsCommand.scala:90) > at > kafka.admin.AddPartitionsCommand$.main(AddPartitionsCommand.scala:68) > at > kafka.admin.AddPartitionsCommand.main(AddPartitionsCommand.scala) > > Did I miss anything here? Thanks. > > Regards, > > Libo > >