Re: Fail to build examples with gradle on Kafka using JDK 8

2016-06-17 Thread Ismael Juma
Great!

Ismael

On Fri, Jun 17, 2016 at 2:26 AM, Philippe Derome  wrote:

> Thanks a lot for that. I must had done something wrong.
>
> I reinstalled gradle on OSX 10.11 using MacPorts, then recloned kafka and
> then followed the normal steps and it worked just fine.
>
> On Thu, Jun 16, 2016 at 6:49 PM, Ismael Juma  wrote:
>
> > Hi Philippe,
> >
> > Building with Java 8 works for me. Can you please try `./gradlew clean
> > jarAll` instead?
> >
> > Ismael
> >
> > On Fri, Jun 17, 2016 at 12:23 AM, Philippe Derome 
> > wrote:
> >
> > > I will.
> > >
> > > thanks
> > > On 16 Jun 2016 1:30 p.m., "Eno Thereska" 
> wrote:
> > >
> > > > Hi Phil,
> > > >
> > > > Feel free to comment on that JIRA and re-open if necessary.
> > > >
> > > > Eno
> > > >
> > > >
> > > > > On 16 Jun 2016, at 17:02, Philippe Derome 
> > wrote:
> > > > >
> > > > > The issue had apparently existed and is apparently resolved, but so
> > far
> > > > it
> > > > > does not work for me:
> > https://issues.apache.org/jira/browse/KAFKA-2203
> > > .
> > > > >
> > > > > I issue same command as Stevo Slavic with JDK 1.8.0_91:
> > > > > gradle clean jarAll
> > > > >
> > > > > java -version
> > > > >
> > > > > java version "*1.8.0_91*"
> > > > >
> > > > > Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
> > > > >
> > > > > Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
> > > > >
> > > > >
> > > > > Much of it builds save for the examples, which incidentally is
> what I
> > > am
> > > > > mostly interested in.
> > > > >
> > > > >
> > > > > :core:jar UP-TO-DATE
> > > > >
> > > > > :examples:compileJava
> > > > >
> > > > > warning: [options] bootstrap class path not set in conjunction with
> > > > -source
> > > > > 1.7
> > > > >
> > > > >
> > > >
> > >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:19:
> > > > > error: package kafka.utils does not exist
> > > > >
> > > > > import kafka.utils.ShutdownableThread;
> > > > >
> > > > >  ^
> > > > >
> > > > >
> > > >
> > >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:28:
> > > > > error: cannot find symbol
> > > > >
> > > > > public class Consumer extends ShutdownableThread {
> > > > >
> > > > >  ^
> > > > >
> > > > >  symbol: class ShutdownableThread
> > > > >
> > > > >
> > > >
> > >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:19:
> > > > > error: package kafka.api does not exist
> > > > >
> > > > > import kafka.api.FetchRequest;
> > > > >
> > > > > Phil Derome
> > > >
> > > >
> > >
> >
>


Re: Fail to build examples with gradle on Kafka using JDK 8

2016-06-16 Thread Philippe Derome
Thanks a lot for that. I must had done something wrong.

I reinstalled gradle on OSX 10.11 using MacPorts, then recloned kafka and
then followed the normal steps and it worked just fine.

On Thu, Jun 16, 2016 at 6:49 PM, Ismael Juma  wrote:

> Hi Philippe,
>
> Building with Java 8 works for me. Can you please try `./gradlew clean
> jarAll` instead?
>
> Ismael
>
> On Fri, Jun 17, 2016 at 12:23 AM, Philippe Derome 
> wrote:
>
> > I will.
> >
> > thanks
> > On 16 Jun 2016 1:30 p.m., "Eno Thereska"  wrote:
> >
> > > Hi Phil,
> > >
> > > Feel free to comment on that JIRA and re-open if necessary.
> > >
> > > Eno
> > >
> > >
> > > > On 16 Jun 2016, at 17:02, Philippe Derome 
> wrote:
> > > >
> > > > The issue had apparently existed and is apparently resolved, but so
> far
> > > it
> > > > does not work for me:
> https://issues.apache.org/jira/browse/KAFKA-2203
> > .
> > > >
> > > > I issue same command as Stevo Slavic with JDK 1.8.0_91:
> > > > gradle clean jarAll
> > > >
> > > > java -version
> > > >
> > > > java version "*1.8.0_91*"
> > > >
> > > > Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
> > > >
> > > > Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
> > > >
> > > >
> > > > Much of it builds save for the examples, which incidentally is what I
> > am
> > > > mostly interested in.
> > > >
> > > >
> > > > :core:jar UP-TO-DATE
> > > >
> > > > :examples:compileJava
> > > >
> > > > warning: [options] bootstrap class path not set in conjunction with
> > > -source
> > > > 1.7
> > > >
> > > >
> > >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:19:
> > > > error: package kafka.utils does not exist
> > > >
> > > > import kafka.utils.ShutdownableThread;
> > > >
> > > >  ^
> > > >
> > > >
> > >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:28:
> > > > error: cannot find symbol
> > > >
> > > > public class Consumer extends ShutdownableThread {
> > > >
> > > >  ^
> > > >
> > > >  symbol: class ShutdownableThread
> > > >
> > > >
> > >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:19:
> > > > error: package kafka.api does not exist
> > > >
> > > > import kafka.api.FetchRequest;
> > > >
> > > > Phil Derome
> > >
> > >
> >
>


Re: Fail to build examples with gradle on Kafka using JDK 8

2016-06-16 Thread Philippe Derome
I just did and it still fails. Should I use a --info --debug --stacktrace
and provide output into JIRA?

:core:compileJava UP-TO-DATE

:core:compileScala UP-TO-DATE

:core:processResources UP-TO-DATE

:core:classes UP-TO-DATE

:clients:compileTestJava UP-TO-DATE

:clients:processTestResources UP-TO-DATE

:clients:testClasses UP-TO-DATE

:core:copyDependantLibs UP-TO-DATE

:core:jar UP-TO-DATE

:examples:compileJava

warning: [options] bootstrap class path not set in conjunction with -source
1.7

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:19:
error: package kafka.utils does not exist

import kafka.utils.ShutdownableThread;

  ^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:28:
error: cannot find symbol

public class Consumer extends ShutdownableThread {

  ^

  symbol: class ShutdownableThread

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:19:
error: package kafka.api does not exist

import kafka.api.FetchRequest;

^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:20:
error: package kafka.api does not exist

import kafka.api.FetchRequestBuilder;

^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:21:
error: package kafka.javaapi does not exist

import kafka.javaapi.FetchResponse;

^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:22:
error: package kafka.javaapi.consumer does not exist

import kafka.javaapi.consumer.SimpleConsumer;

 ^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:23:
error: package kafka.javaapi.message does not exist

import kafka.javaapi.message.ByteBufferMessageSet;

^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:24:
error: package kafka.message does not exist

import kafka.message.MessageAndOffset;

^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:35:
error: cannot find symbol

private static void printMessages(ByteBufferMessageSet messageSet)
throws UnsupportedEncodingException {

  ^

  symbol:   class ByteBufferMessageSet

  location: class SimpleConsumerDemo

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:47:
error: method does not override or implement a method from a supertype

@Override

^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:56:
error: method does not override or implement a method from a supertype

@Override

^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:61:
error: method does not override or implement a method from a supertype

@Override

^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/KafkaConsumerProducerDemo.java:26:
error: cannot find symbol

consumerThread.start();

  ^

  symbol:   method start()

  location: variable consumerThread of type Consumer

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:36:
error: cannot find symbol

for (MessageAndOffset messageAndOffset : messageSet) {

 ^

  symbol:   class MessageAndOffset

  location: class SimpleConsumerDemo

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:59:
error: cannot find symbol

SimpleConsumer simpleConsumer = new
SimpleConsumer(KafkaProperties.KAFKA_SERVER_URL,

^

  symbol:   class SimpleConsumer

  location: class SimpleConsumerDemo

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:59:
error: cannot find symbol

SimpleConsumer simpleConsumer = new
SimpleConsumer(KafkaProperties.KAFKA_SERVER_URL,

^

  symbol:   class SimpleConsumer

  location: class SimpleConsumerDemo

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:66:
error: cannot find symbol

FetchRequest req = new FetchRequestBuilder()

^

  symbol:   class FetchRequest

  location: class SimpleConsumerDemo

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:66:
error: cannot find symbol

FetchRequest req = new FetchRequestBuilder()

   ^

  symbol:   class FetchRequestBuilder

  location: class SimpleConsumerDemo


Re: Fail to build examples with gradle on Kafka using JDK 8

2016-06-16 Thread Ismael Juma
Hi Philippe,

Building with Java 8 works for me. Can you please try `./gradlew clean
jarAll` instead?

Ismael

On Fri, Jun 17, 2016 at 12:23 AM, Philippe Derome 
wrote:

> I will.
>
> thanks
> On 16 Jun 2016 1:30 p.m., "Eno Thereska"  wrote:
>
> > Hi Phil,
> >
> > Feel free to comment on that JIRA and re-open if necessary.
> >
> > Eno
> >
> >
> > > On 16 Jun 2016, at 17:02, Philippe Derome  wrote:
> > >
> > > The issue had apparently existed and is apparently resolved, but so far
> > it
> > > does not work for me: https://issues.apache.org/jira/browse/KAFKA-2203
> .
> > >
> > > I issue same command as Stevo Slavic with JDK 1.8.0_91:
> > > gradle clean jarAll
> > >
> > > java -version
> > >
> > > java version "*1.8.0_91*"
> > >
> > > Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
> > >
> > > Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
> > >
> > >
> > > Much of it builds save for the examples, which incidentally is what I
> am
> > > mostly interested in.
> > >
> > >
> > > :core:jar UP-TO-DATE
> > >
> > > :examples:compileJava
> > >
> > > warning: [options] bootstrap class path not set in conjunction with
> > -source
> > > 1.7
> > >
> > >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:19:
> > > error: package kafka.utils does not exist
> > >
> > > import kafka.utils.ShutdownableThread;
> > >
> > >  ^
> > >
> > >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:28:
> > > error: cannot find symbol
> > >
> > > public class Consumer extends ShutdownableThread {
> > >
> > >  ^
> > >
> > >  symbol: class ShutdownableThread
> > >
> > >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:19:
> > > error: package kafka.api does not exist
> > >
> > > import kafka.api.FetchRequest;
> > >
> > > Phil Derome
> >
> >
>


Re: Fail to build examples with gradle on Kafka using JDK 8

2016-06-16 Thread Philippe Derome
I will.

thanks
On 16 Jun 2016 1:30 p.m., "Eno Thereska"  wrote:

> Hi Phil,
>
> Feel free to comment on that JIRA and re-open if necessary.
>
> Eno
>
>
> > On 16 Jun 2016, at 17:02, Philippe Derome  wrote:
> >
> > The issue had apparently existed and is apparently resolved, but so far
> it
> > does not work for me: https://issues.apache.org/jira/browse/KAFKA-2203.
> >
> > I issue same command as Stevo Slavic with JDK 1.8.0_91:
> > gradle clean jarAll
> >
> > java -version
> >
> > java version "*1.8.0_91*"
> >
> > Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
> >
> > Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
> >
> >
> > Much of it builds save for the examples, which incidentally is what I am
> > mostly interested in.
> >
> >
> > :core:jar UP-TO-DATE
> >
> > :examples:compileJava
> >
> > warning: [options] bootstrap class path not set in conjunction with
> -source
> > 1.7
> >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:19:
> > error: package kafka.utils does not exist
> >
> > import kafka.utils.ShutdownableThread;
> >
> >  ^
> >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:28:
> > error: cannot find symbol
> >
> > public class Consumer extends ShutdownableThread {
> >
> >  ^
> >
> >  symbol: class ShutdownableThread
> >
> >
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:19:
> > error: package kafka.api does not exist
> >
> > import kafka.api.FetchRequest;
> >
> > Phil Derome
>
>


Re: Fail to build examples with gradle on Kafka using JDK 8

2016-06-16 Thread Eno Thereska
Hi Phil,

Feel free to comment on that JIRA and re-open if necessary.

Eno


> On 16 Jun 2016, at 17:02, Philippe Derome  wrote:
> 
> The issue had apparently existed and is apparently resolved, but so far it
> does not work for me: https://issues.apache.org/jira/browse/KAFKA-2203.
> 
> I issue same command as Stevo Slavic with JDK 1.8.0_91:
> gradle clean jarAll
> 
> java -version
> 
> java version "*1.8.0_91*"
> 
> Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
> 
> Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
> 
> 
> Much of it builds save for the examples, which incidentally is what I am
> mostly interested in.
> 
> 
> :core:jar UP-TO-DATE
> 
> :examples:compileJava
> 
> warning: [options] bootstrap class path not set in conjunction with -source
> 1.7
> 
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:19:
> error: package kafka.utils does not exist
> 
> import kafka.utils.ShutdownableThread;
> 
>  ^
> 
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:28:
> error: cannot find symbol
> 
> public class Consumer extends ShutdownableThread {
> 
>  ^
> 
>  symbol: class ShutdownableThread
> 
> /Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:19:
> error: package kafka.api does not exist
> 
> import kafka.api.FetchRequest;
> 
> Phil Derome



Fail to build examples with gradle on Kafka using JDK 8

2016-06-16 Thread Philippe Derome
The issue had apparently existed and is apparently resolved, but so far it
does not work for me: https://issues.apache.org/jira/browse/KAFKA-2203.

I issue same command as Stevo Slavic with JDK 1.8.0_91:
gradle clean jarAll

java -version

java version "*1.8.0_91*"

Java(TM) SE Runtime Environment (build 1.8.0_91-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)


Much of it builds save for the examples, which incidentally is what I am
mostly interested in.


:core:jar UP-TO-DATE

:examples:compileJava

warning: [options] bootstrap class path not set in conjunction with -source
1.7

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:19:
error: package kafka.utils does not exist

import kafka.utils.ShutdownableThread;

  ^

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/Consumer.java:28:
error: cannot find symbol

public class Consumer extends ShutdownableThread {

  ^

  symbol: class ShutdownableThread

/Users/philippederome/workspace/kafka/examples/src/main/java/kafka/examples/SimpleConsumerDemo.java:19:
error: package kafka.api does not exist

import kafka.api.FetchRequest;

Phil Derome