kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiabin Hu <jia...@yahoo-inc.com>
Subject NoSuchMethodError when running example code in 0.70
Date Wed, 13 Jun 2012 23:07:15 GMT

I'm trying to run the example code in 0.70, but the constructor of kafka.producer.ProducerConfig
throws the following exception:

Exception in thread "main" java.lang.NoSuchMethodError: scala.Tuple2._1$mcI$sp()I
at kafka.utils.Utils$.getIntInRange(Utils.scala:192)
at kafka.utils.Utils$.getInt(Utils.scala:174)
at kafka.utils.ZKConfig.<init>(ZkUtils.scala:274)
at kafka.producer.ProducerConfig.<init>(ProducerConfig.scala:25)
at kafka.examples.Producer.<init>(Producer.java:35)
at kafka.examples.SimpleConsumerDemo.generateData(SimpleConsumerDemo.java:43)
at kafka.examples.SimpleConsumerDemo.main(SimpleConsumerDemo.java:60)

Anyone has an idea why this happens?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message