THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Eclipse Setup
- Checkout kafka source
- Update the libraries:
- ./sbt update
- Install the eclipse/scala plugin as described here.
- Create a new scala project File->New->Scala Project
- Set the location to the directory to which you checked out the code and choose a name for the project.
- Select the source directories you want, at least:
- core/src/main/scala
- core/src/test/scala/unit
- Select the source directories you want, at least:
- Add all the libraries in the Libraries tab: core/lib and core/lib_managed
- I had to also add the 2.9.1 scala library by choosing Add External Jar and choosing that library
You should be able to run unit tests or the kafka server or other command line apps through eclipse for debugging. To do this right-click the class you want to run and select
-
- Run as...<Unit Test|Scala Application>
- By default log4j will not be configured correctly. To fix this go to your run target and under Classpath choose Advanced... and then Add Folders, and the folder config/
Intellij Setup
Add me