Re: trouble loading kafka into eclipse

2013-04-12 Thread Marc Labbe
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 misapa...@gmail.com 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 jun...@gmail.com wrote:

  See if this thread help.
 
  Thanks,
 
  Jun
 
 
  On Thu, Apr 4, 2013 at 10:34 AM, Withers, Robert 
 robert.with...@dish.com
  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
  
 



Re: trouble loading kafka into eclipse

2013-04-12 Thread Jun Rao
Thanks,

Jun


On Fri, Apr 12, 2013 at 1:08 PM, Marc Labbe mrla...@gmail.com wrote:

 I updated the Developer setup page. Let me know if it's not clear enough or
 if I need to change anything.

 On another note, since the idea plugin is already there, would it be
 possible to add the sbteclipse plugin permanently as well?


 On Fri, Apr 12, 2013 at 10:52 AM, Jun Rao jun...@gmail.com wrote:

  MIS, Marc,
 
  Thanks for the update. Could you put those notes to that wiki?
 
  Jun
 
 
  On Thu, Apr 11, 2013 at 10:11 PM, MIS misapa...@gmail.com 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 jun...@gmail.com wrote:
  
See if this thread help.
   
Thanks,
   
Jun
   
   
On Thu, Apr 4, 2013 at 10:34 AM, Withers, Robert 
   robert.with...@dish.com
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

   
  
 



Re: trouble loading kafka into eclipse

2013-04-11 Thread MIS
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 jun...@gmail.com wrote:

 See if this thread help.

 Thanks,

 Jun


 On Thu, Apr 4, 2013 at 10:34 AM, Withers, Robert robert.with...@dish.com
 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
 



trouble loading kafka into eclipse

2013-04-04 Thread Withers, Robert
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


Re: trouble loading kafka into eclipse

2013-04-04 Thread Jun Rao
See if this thread help.

Thanks,

Jun


On Thu, Apr 4, 2013 at 10:34 AM, Withers, Robert robert.with...@dish.comwrote:

 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