Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka, mail # user - Re: trouble loading kafka into eclipse


Copy link to this message
-
Re: trouble loading kafka into eclipse
Marc Labbe 2013-04-12, 12:22
I don't know if anyone else has done that or if there is any indication
against doing it but I found that adding the sbteclipse plugin in the
project/plugins.sbt to be particularly easy to do and it worked for me. I
am only using to look/edit the code but I am not running anything from
eclipse though.

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.1")

More information here: https://github.com/typesafehub/sbteclipse/wiki

Once setup, you run
sbt update
sbt eclipse

and then you can use "Import existing project" in eclipse.

You still might have to play around the conflicts be zkclient libraries but
you can manage that manually afterward.

marc
On Fri, Apr 12, 2013 at 1:11 AM, MIS <[EMAIL PROTECTED]> wrote:

> here is a brief about setting up Kafka in eclipse- 3.6.2. with scala IDE
> installed as a plugin. Scala version used is 2.9
>
> 1) follow instructions as described here:
> https://cwiki.apache.org/KAFKA/developer-setup.html, upto step 2.
> 2) redirect the output of ./sbt update to some file and grep the file for
> all the jars that are required. in the build process.
> 3) Copy the jars that are mentioned as part of the build process in some
> folder.
> 4) then follow steps 3-6 from the link:
> https://cwiki.apache.org/KAFKA/developer-setup.html
> 5) Put the jars from step 3 in the build path of eclipse for the kafka
> project, but not including the lower versions of the jars.As mentioned
> earlier there are some 102 jars. one more important thing to do is not to
> place zkClient-0.1.jar in the build path but rather choose the zkclient jar
> that is present in the lib folder.
> 6) Instead of putting the scala.jar in the build path choose the scala jar
> that comes bundled with eclipse as scala plugin and add that as scala
> library.
> 7) Once the above setups are done, there won't be any further build errors.
> and the unit tests can be run to get started.
>
> thanks,
> MIS
>
>
>
>
>
>
>
> On Fri, Apr 5, 2013 at 9:29 AM, Jun Rao <[EMAIL PROTECTED]> wrote:
>
> > See if this thread help.
> >
> > Thanks,
> >
> > Jun
> >
> >
> > On Thu, Apr 4, 2013 at 10:34 AM, Withers, Robert <
> [EMAIL PROTECTED]
> > >wrote:
> >
> > > I am struggling to load kafka into eclipse to get started.  I have
> tried
> > > to follow the instructions here:
> > > https://cwiki.apache.org/KAFKA/developer-setup.html, but I cannot
> > connect
> > > to the SVN repo to check-out.  A co-worked pulled from github, but I
> seem
> > > to be missing a lot of jars.  This post mentions over a hundred jars
> > that I
> > > should add to the build path:
> > > http://grokbase.com/t/kafka/dev/133jqejwvb/kafka-setup-in-eclipse.
> > >  Furthermore, I can only get scala 2.10 working in Juno, as the 2.9
> > version
> > > does not seem to install correctly (I cannot find a scala project
> option
> > > with 2.9).
> > >
> > > Can anyone provide workable instructions for getting this puppy up and
> > > running?
> > >
> > > Thanks,
> > > rob
> > >
> >
>