You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Jonathan Natkins <na...@streamsets.com> on 2014/08/04 21:09:09 UTC
Issues getting IntelliJ set up
Hi,
I've been having some issues getting IntelliJ set up...I followed all the
instructions on the wiki, and I've successfully imported the project, and
run the jar Gradle target successfully. However, when I try to run a test
in the IDE, I get a number of errors:
/Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
Error:(21, 30) java: package kafka.javaapi.producer does not exist
Error:(22, 22) java: package kafka.producer does not exist
Error:(23, 22) java: package kafka.producer does not exist
Error:(24, 19) java: cannot find symbol
symbol: class Utils
location: package kafka.utils
Error:(303, 39) java: cannot find symbol
symbol: class KeyedMessage
location: class kafka.tools.KafkaMigrationTool.MigrationThread
And so on.
The two classes that seem to be causing trouble are KafkaMigrationTool and
ConsumerConnector. Has anybody run into this? Anyone know how to get around
this issue?
Thanks a lot,
Natty
Re: Issues getting IntelliJ set up
Posted by Jonathan Natkins <na...@streamsets.com>.
Yep, it looks like you win the game. Managed to get a test running by doing
this. Thanks a bunch, Gwen!
On Mon, Aug 4, 2014 at 1:57 PM, Gwen Shapira <gs...@cloudera.com> wrote:
> I think I found it :)
>
> Go to "project settings"
> Pick your module (I picked "core")
> "Paths" tab
> And change the paths to:
> /Users/Natty/apache/kafka-new/core/build/classes/main
> and
> /Users/Natty/apache/kafka-new/core/build/classes/test
>
> Don't use the project inherited paths, because we have a build dir per
> module.
>
> Gwen
>
> On Mon, Aug 4, 2014 at 12:54 PM, Jonathan Natkins <na...@streamsets.com>
> wrote:
> > I did. I actually tried this from a completely clean repo (cloned a new
> > repo from github, changed gradle.properties, ran `gradlew idea`, then
> > imported into IntelliJ)
> >
> >
> > On Mon, Aug 4, 2014 at 12:18 PM, Timothy Chen <tn...@gmail.com> wrote:
> >
> >> Hi Johnathan,
> >>
> >> Did you update your scala version before you run gradle idea?
> >>
> >> Also try cleaning up all the artifacts and try it again, as perhaps
> >> your intellij is not picking up the right version and from the right
> >> build folder.
> >>
> >> Tim
> >>
> >> On Mon, Aug 4, 2014 at 12:09 PM, Jonathan Natkins <natty@streamsets.com
> >
> >> wrote:
> >> > Hi,
> >> >
> >> > I've been having some issues getting IntelliJ set up...I followed all
> the
> >> > instructions on the wiki, and I've successfully imported the project,
> and
> >> > run the jar Gradle target successfully. However, when I try to run a
> test
> >> > in the IDE, I get a number of errors:
> >> >
> >> >
> >>
> /Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
> >> > Error:(21, 30) java: package kafka.javaapi.producer does not exist
> >> > Error:(22, 22) java: package kafka.producer does not exist
> >> > Error:(23, 22) java: package kafka.producer does not exist
> >> > Error:(24, 19) java: cannot find symbol
> >> > symbol: class Utils
> >> > location: package kafka.utils
> >> > Error:(303, 39) java: cannot find symbol
> >> > symbol: class KeyedMessage
> >> > location: class kafka.tools.KafkaMigrationTool.MigrationThread
> >> >
> >> > And so on.
> >> >
> >> > The two classes that seem to be causing trouble are KafkaMigrationTool
> >> and
> >> > ConsumerConnector. Has anybody run into this? Anyone know how to get
> >> around
> >> > this issue?
> >> >
> >> > Thanks a lot,
> >> > Natty
> >>
>
Re: Issues getting IntelliJ set up
Posted by Gwen Shapira <gs...@cloudera.com>.
I think I found it :)
Go to "project settings"
Pick your module (I picked "core")
"Paths" tab
And change the paths to:
/Users/Natty/apache/kafka-new/core/build/classes/main
and
/Users/Natty/apache/kafka-new/core/build/classes/test
Don't use the project inherited paths, because we have a build dir per module.
Gwen
On Mon, Aug 4, 2014 at 12:54 PM, Jonathan Natkins <na...@streamsets.com> wrote:
> I did. I actually tried this from a completely clean repo (cloned a new
> repo from github, changed gradle.properties, ran `gradlew idea`, then
> imported into IntelliJ)
>
>
> On Mon, Aug 4, 2014 at 12:18 PM, Timothy Chen <tn...@gmail.com> wrote:
>
>> Hi Johnathan,
>>
>> Did you update your scala version before you run gradle idea?
>>
>> Also try cleaning up all the artifacts and try it again, as perhaps
>> your intellij is not picking up the right version and from the right
>> build folder.
>>
>> Tim
>>
>> On Mon, Aug 4, 2014 at 12:09 PM, Jonathan Natkins <na...@streamsets.com>
>> wrote:
>> > Hi,
>> >
>> > I've been having some issues getting IntelliJ set up...I followed all the
>> > instructions on the wiki, and I've successfully imported the project, and
>> > run the jar Gradle target successfully. However, when I try to run a test
>> > in the IDE, I get a number of errors:
>> >
>> >
>> /Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
>> > Error:(21, 30) java: package kafka.javaapi.producer does not exist
>> > Error:(22, 22) java: package kafka.producer does not exist
>> > Error:(23, 22) java: package kafka.producer does not exist
>> > Error:(24, 19) java: cannot find symbol
>> > symbol: class Utils
>> > location: package kafka.utils
>> > Error:(303, 39) java: cannot find symbol
>> > symbol: class KeyedMessage
>> > location: class kafka.tools.KafkaMigrationTool.MigrationThread
>> >
>> > And so on.
>> >
>> > The two classes that seem to be causing trouble are KafkaMigrationTool
>> and
>> > ConsumerConnector. Has anybody run into this? Anyone know how to get
>> around
>> > this issue?
>> >
>> > Thanks a lot,
>> > Natty
>>
Re: Issues getting IntelliJ set up
Posted by Jonathan Natkins <na...@streamsets.com>.
I did. I actually tried this from a completely clean repo (cloned a new
repo from github, changed gradle.properties, ran `gradlew idea`, then
imported into IntelliJ)
On Mon, Aug 4, 2014 at 12:18 PM, Timothy Chen <tn...@gmail.com> wrote:
> Hi Johnathan,
>
> Did you update your scala version before you run gradle idea?
>
> Also try cleaning up all the artifacts and try it again, as perhaps
> your intellij is not picking up the right version and from the right
> build folder.
>
> Tim
>
> On Mon, Aug 4, 2014 at 12:09 PM, Jonathan Natkins <na...@streamsets.com>
> wrote:
> > Hi,
> >
> > I've been having some issues getting IntelliJ set up...I followed all the
> > instructions on the wiki, and I've successfully imported the project, and
> > run the jar Gradle target successfully. However, when I try to run a test
> > in the IDE, I get a number of errors:
> >
> >
> /Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
> > Error:(21, 30) java: package kafka.javaapi.producer does not exist
> > Error:(22, 22) java: package kafka.producer does not exist
> > Error:(23, 22) java: package kafka.producer does not exist
> > Error:(24, 19) java: cannot find symbol
> > symbol: class Utils
> > location: package kafka.utils
> > Error:(303, 39) java: cannot find symbol
> > symbol: class KeyedMessage
> > location: class kafka.tools.KafkaMigrationTool.MigrationThread
> >
> > And so on.
> >
> > The two classes that seem to be causing trouble are KafkaMigrationTool
> and
> > ConsumerConnector. Has anybody run into this? Anyone know how to get
> around
> > this issue?
> >
> > Thanks a lot,
> > Natty
>
Re: Issues getting IntelliJ set up
Posted by Timothy Chen <tn...@gmail.com>.
Hi Johnathan,
Did you update your scala version before you run gradle idea?
Also try cleaning up all the artifacts and try it again, as perhaps
your intellij is not picking up the right version and from the right
build folder.
Tim
On Mon, Aug 4, 2014 at 12:09 PM, Jonathan Natkins <na...@streamsets.com> wrote:
> Hi,
>
> I've been having some issues getting IntelliJ set up...I followed all the
> instructions on the wiki, and I've successfully imported the project, and
> run the jar Gradle target successfully. However, when I try to run a test
> in the IDE, I get a number of errors:
>
> /Users/Natty/apache/kafka-new/core/src/main/scala/kafka/tools/KafkaMigrationTool.java
> Error:(21, 30) java: package kafka.javaapi.producer does not exist
> Error:(22, 22) java: package kafka.producer does not exist
> Error:(23, 22) java: package kafka.producer does not exist
> Error:(24, 19) java: cannot find symbol
> symbol: class Utils
> location: package kafka.utils
> Error:(303, 39) java: cannot find symbol
> symbol: class KeyedMessage
> location: class kafka.tools.KafkaMigrationTool.MigrationThread
>
> And so on.
>
> The two classes that seem to be causing trouble are KafkaMigrationTool and
> ConsumerConnector. Has anybody run into this? Anyone know how to get around
> this issue?
>
> Thanks a lot,
> Natty