You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Jay Kreps <ja...@gmail.com> on 2012/03/27 21:28:01 UTC

Re: [kafka-dev] Is the kafka java api working under scala 2.9.1 ?

Hi Vincent,

This google group is dead. Moving the discussion to the apache list where
we do things now. How did you find this address (I want to make sure we
have the right thing posted everywhere)?

-Jay

On Mon, Mar 26, 2012 at 4:49 AM, Vincent_Z <zo...@gmail.com> wrote:

> Hello,
>
> I'm trying to test Kafka examples with a simple Producer, and I get this
> exception when I try to instantiate a Producer. I've scala library 2.9.1 in
> my classpath, is it compatible with Kafka 0.7 ?
>
> Caused by: java.lang.NoSuchMethodError:
> scala.math.LowPriorityOrderingImplicits.ordered()Lscala/math/Ordering;
>        at
> kafka.producer.ZKBrokerPartitionInfo$$anonfun$kafka$producer$ZKBrokerPartitionInfo$$getZKTopicPartitionInfo$1.apply(ZKBrokerPartitionInfo.scala:177)
>        at
> kafka.producer.ZKBrokerPartitionInfo$$anonfun$kafka$producer$ZKBrokerPartitionInfo$$getZKTopicPartitionInfo$1.apply(ZKBrokerPartitionInfo.scala:167)
>        at scala.collection.Iterator$class.foreach(Iterator.scala:660)
>        at
> scala.collection.JavaConversions$JIteratorWrapper.foreach(JavaConversions.scala:573)
>        at
> scala.collection.IterableLike$class.foreach(IterableLike.scala:73)
>        at
> scala.collection.JavaConversions$JListWrapper.foreach(JavaConversions.scala:615)
>        at
> kafka.producer.ZKBrokerPartitionInfo.kafka$producer$ZKBrokerPartitionInfo$$getZKTopicPartitionInfo(ZKBrokerPartitionInfo.scala:167)
>        at
> kafka.producer.ZKBrokerPartitionInfo.<init>(ZKBrokerPartitionInfo.scala:66)
>        at kafka.producer.Producer.<init>(Producer.scala:53)
>        at kafka.javaapi.producer.Producer.<init>(Producer.scala:33)