You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Vishal Shukla <sh...@gmail.com> on 2017/10/24 19:21:16 UTC

Kafka source code - Build Error

Hi All,
I took latest source code from kafka git repo and tried to setup my local
env. in Eclipse.
I am getting a compilation error in 1 file in streams project.

Specifically in file *KStreamImpl.java on line 157*


*Type mismatch: cannot convert from KeyValue<capture#27-of ? extends K1,V>
to KeyValue<K1,V>*

Is this my local environment issue  ?
Please advise.

[image: Inline image 1]

Re: Kafka source code - Build Error

Posted by Guozhang Wang <wa...@gmail.com>.
I tried both 1.8.0_66 and 1.7.0_80 on IntelliJ and they worked fine. I'm
wondering if it is a specific issue for Eclipse?

Guozhang

On Tue, Oct 24, 2017 at 2:27 PM, Vishal Shukla <sh...@gmail.com> wrote:

> Hi Guozhang,
> I am using jdk1.7.0_45 on Mac.
> (Eclipse 4.7.1a )
>
> As per Kafka documentation Java 7 is recommended , so was thinking this
> version should be good.
>
> Could this be eclipse related error ?
>
>
>
>
>
>
>
> On Tue, Oct 24, 2017 at 4:28 PM, Ted Yu <yu...@gmail.com> wrote:
>
> > JDK 1.8.0_91
> >
> > Cheers
> >
> > On Tue, Oct 24, 2017 at 1:23 PM, Guozhang Wang <wa...@gmail.com>
> wrote:
> >
> > > Hmm.. which Java version were you using?
> > >
> > >
> > > Guozhang
> > >
> > > On Tue, Oct 24, 2017 at 1:09 PM, Ted Yu <yu...@gmail.com> wrote:
> > >
> > > > This should fix what you observed:
> > > >
> > > > https://github.com/apache/kafka/pull/4127
> > > >
> > > > On Tue, Oct 24, 2017 at 12:21 PM, Vishal Shukla <sh...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi All,
> > > > > I took latest source code from kafka git repo and tried to setup my
> > > local
> > > > > env. in Eclipse.
> > > > > I am getting a compilation error in 1 file in streams project.
> > > > >
> > > > > Specifically in file *KStreamImpl.java on line 157*
> > > > >
> > > > >
> > > > > *Type mismatch: cannot convert from KeyValue<capture#27-of ?
> extends
> > > > K1,V>
> > > > > to KeyValue<K1,V>*
> > > > >
> > > > > Is this my local environment issue  ?
> > > > > Please advise.
> > > > >
> > > > > [image: Inline image 1]
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > -- Guozhang
> > >
> >
>



-- 
-- Guozhang

Re: Kafka source code - Build Error

Posted by Vishal Shukla <sh...@gmail.com>.
Hi Guozhang,
I am using jdk1.7.0_45 on Mac.
(Eclipse 4.7.1a )

As per Kafka documentation Java 7 is recommended , so was thinking this
version should be good.

Could this be eclipse related error ?







On Tue, Oct 24, 2017 at 4:28 PM, Ted Yu <yu...@gmail.com> wrote:

> JDK 1.8.0_91
>
> Cheers
>
> On Tue, Oct 24, 2017 at 1:23 PM, Guozhang Wang <wa...@gmail.com> wrote:
>
> > Hmm.. which Java version were you using?
> >
> >
> > Guozhang
> >
> > On Tue, Oct 24, 2017 at 1:09 PM, Ted Yu <yu...@gmail.com> wrote:
> >
> > > This should fix what you observed:
> > >
> > > https://github.com/apache/kafka/pull/4127
> > >
> > > On Tue, Oct 24, 2017 at 12:21 PM, Vishal Shukla <sh...@gmail.com>
> > > wrote:
> > >
> > > > Hi All,
> > > > I took latest source code from kafka git repo and tried to setup my
> > local
> > > > env. in Eclipse.
> > > > I am getting a compilation error in 1 file in streams project.
> > > >
> > > > Specifically in file *KStreamImpl.java on line 157*
> > > >
> > > >
> > > > *Type mismatch: cannot convert from KeyValue<capture#27-of ? extends
> > > K1,V>
> > > > to KeyValue<K1,V>*
> > > >
> > > > Is this my local environment issue  ?
> > > > Please advise.
> > > >
> > > > [image: Inline image 1]
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > -- Guozhang
> >
>

Re: Kafka source code - Build Error

Posted by Ted Yu <yu...@gmail.com>.
JDK 1.8.0_91

Cheers

On Tue, Oct 24, 2017 at 1:23 PM, Guozhang Wang <wa...@gmail.com> wrote:

> Hmm.. which Java version were you using?
>
>
> Guozhang
>
> On Tue, Oct 24, 2017 at 1:09 PM, Ted Yu <yu...@gmail.com> wrote:
>
> > This should fix what you observed:
> >
> > https://github.com/apache/kafka/pull/4127
> >
> > On Tue, Oct 24, 2017 at 12:21 PM, Vishal Shukla <sh...@gmail.com>
> > wrote:
> >
> > > Hi All,
> > > I took latest source code from kafka git repo and tried to setup my
> local
> > > env. in Eclipse.
> > > I am getting a compilation error in 1 file in streams project.
> > >
> > > Specifically in file *KStreamImpl.java on line 157*
> > >
> > >
> > > *Type mismatch: cannot convert from KeyValue<capture#27-of ? extends
> > K1,V>
> > > to KeyValue<K1,V>*
> > >
> > > Is this my local environment issue  ?
> > > Please advise.
> > >
> > > [image: Inline image 1]
> > >
> > >
> >
>
>
>
> --
> -- Guozhang
>

Re: Kafka source code - Build Error

Posted by Guozhang Wang <wa...@gmail.com>.
Hmm.. which Java version were you using?


Guozhang

On Tue, Oct 24, 2017 at 1:09 PM, Ted Yu <yu...@gmail.com> wrote:

> This should fix what you observed:
>
> https://github.com/apache/kafka/pull/4127
>
> On Tue, Oct 24, 2017 at 12:21 PM, Vishal Shukla <sh...@gmail.com>
> wrote:
>
> > Hi All,
> > I took latest source code from kafka git repo and tried to setup my local
> > env. in Eclipse.
> > I am getting a compilation error in 1 file in streams project.
> >
> > Specifically in file *KStreamImpl.java on line 157*
> >
> >
> > *Type mismatch: cannot convert from KeyValue<capture#27-of ? extends
> K1,V>
> > to KeyValue<K1,V>*
> >
> > Is this my local environment issue  ?
> > Please advise.
> >
> > [image: Inline image 1]
> >
> >
>



-- 
-- Guozhang

Re: Kafka source code - Build Error

Posted by Ted Yu <yu...@gmail.com>.
This should fix what you observed:

https://github.com/apache/kafka/pull/4127

On Tue, Oct 24, 2017 at 12:21 PM, Vishal Shukla <sh...@gmail.com> wrote:

> Hi All,
> I took latest source code from kafka git repo and tried to setup my local
> env. in Eclipse.
> I am getting a compilation error in 1 file in streams project.
>
> Specifically in file *KStreamImpl.java on line 157*
>
>
> *Type mismatch: cannot convert from KeyValue<capture#27-of ? extends K1,V>
> to KeyValue<K1,V>*
>
> Is this my local environment issue  ?
> Please advise.
>
> [image: Inline image 1]
>
>