Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # dev >> Runtime problem in 8 beta1?


Copy link to this message
-
Re: Runtime problem in 8 beta1?
2.8.0, 2.8.2, 2.9.1, 2.9.2 are all supported

your POM needs a fix though, you need to match your scala-library with your
kafka artifactID

so your Kafka artifactID = kafka_2.9.2 so your Scala version should be 2.9.2

/*******************************************
 Joe Stein
 Founder, Principal Consultant
 Big Data Open Source Security LLC
 http://www.stealth.ly
 Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
********************************************/
On Tue, Aug 27, 2013 at 12:41 PM, David Williams <[EMAIL PROTECTED]>wrote:

> Thank you for the replies. Is there a minor version in specific you
> recommend using?
>
> I have tried 2.8.[012] and receive a similar runtime exception:
>
> Caused by: java.lang.NoClassDefFoundError: scala/Tuple2$mcJJ$sp
>         at kafka.consumer.ConsumerConfig.<init>(ConsumerConfig.scala:77)
>         at com.example.Config.createConsumerConfig(Config.java:40)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5
> 7)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> l.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.insta
> ntiate(SimpleInstantiationStrategy.java:160)
>
>
>
>
>
> Just in case its useful here are my fill list of dependencies for my
> starter project:
>
>
> <dependencies>
>     <dependency>
>         <groupId>org.springframework</groupId>
>         <artifactId>spring-core</artifactId>
>         <version>3.2.4.RELEASE</version>
>     </dependency>
>     <dependency>
>          <groupId>org.springframework</groupId>
>          <artifactId>spring-context</artifactId>
>          <version>3.2.4.RELEASE</version>
>      </dependency>
>      <dependency>
>          <groupId>org.apache.kafka</groupId>
>          <artifactId>kafka_2.9.2</artifactId>
>          <version>0.8.0-beta1</version>
>     </dependency>
>     <dependency>
>          <groupId>javax.inject</groupId>
>          <artifactId>javax.inject</artifactId>
>          <version>1</version>
>     </dependency>
>     <dependency>
>          <groupId>org.scala-lang</groupId>
>          <artifactId>scala-library</artifactId>
>          <version>2.8.0</version>
>     </dependency>
>     </dependencies>
>
>
>
>
> --
>
>
>
>
>
>
> On 8/26/13 9:33 PM, "Joe Stein" <[EMAIL PROTECTED]> wrote:
>
> >Scala 2.10 support is slated for 0.8.1 release after a 0.8.0 release.
> >Here is the patch you can apply if you need
> >https://issues.apache.org/jira/browse/KAFKA-717
> >
> >
> >/*******************************************
> > Joe Stein
> > Founder, Principal Consultant
> > Big Data Open Source Security LLC
> > http://www.stealth.ly
> > Twitter: @allthingshadoop
> >********************************************/
> >
> >
> >On Aug 27, 2013, at 12:16 AM, David Williams <[EMAIL PROTECTED]>
> >wrote:
> >
> >>
> >> Hi Jay,
> >>
> >> To which jars are you referring?  Does scala have a Maven coodinate?  As
> >> it stands I am compiling with.
> >>
> >>
> >> <dependency>
> >>    <groupId>org.scala-lang</groupId>
> >>    <artifactId>scala-library</artifactId>
> >>    <version>2.10.2</version>
> >>        </dependency>
> >>        <dependency>
> >>    <groupId>org.scala-lang</groupId>
> >>    <artifactId>scala-reflect</artifactId>
> >>    <version>2.10.2</version>
> >> </dependency>
> >>
> >>
> >>
> >>
> >> --
> >>
> >>
> >>
> >>
> >>
> >>
> >> On 8/26/13 8:35 PM, "Jay Kreps" <[EMAIL PROTECTED]> wrote:
> >>
> >>> Nothing complex here, you just don't have the the scala library on your
> >>> classpath. It works just like any jar--if there is a dependency on
> >>>classes
> >>> in the jar it needs to be on the classpath.
> >>>
> >>>
> >>> On Mon, Aug 26, 2013 at 7:10 PM, David Williams
> >>> <[EMAIL PROTECTED]>wrote:
> >>>
> >>>> Hi all,
> >>>>
> >>>> First let me say I have detailed the description of the issue I have

 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB