RE: Unable to compile both trunk and 0.5.1 code

2014-06-30 Thread Liu, Raymond
Great, Thanks for the reply :)

Best Regards,
Raymond Liu


-Original Message-
From: Robert Metzger [mailto:rmetz...@apache.org] 
Sent: Monday, June 30, 2014 4:26 PM
To: dev@flink.incubator.apache.org
Subject: Re: Unable to compile both trunk and 0.5.1 code

Hi Raymond,

its a known issue of the Oracle JDK 6 compiler. There is a issue filed at 
Oracle but they don't support JDK6 anymore, so they won't fix it.
OpenJDK 6 has a fix, and all newer versions from Oracle also have fixes.

Flink/Stratosphere runs on the buggy Oracle JDK 6 version, just the compiler 
won't work.

Regards,
Robert



On Mon, Jun 30, 2014 at 10:20 AM, Liu, Raymond 
wrote:

> Actually, tried jdk 1.7.0. It works. While the project readme said 
> that Java 6, 7 or 8 both works...
>
> Best Regards,
> Raymond Liu
>
>
> -Original Message-
> From: Liu, Raymond [mailto:raymond@intel.com]
> Sent: Monday, June 30, 2014 4:13 PM
> To: dev@flink.incubator.apache.org
> Subject: Unable to compile both trunk and 0.5.1 code
>
> Hi
>
> Just clone the code from incubator flink, I tried both trunk code and
> 0.5.1 release, and encounter the same problem.
>
> # mvn --version
> Apache Maven 3.0.4
> Maven home: /usr/share/maven
> Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
> Java home: /usr/java/jdk1.6.0_30/jre
> Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version:
> "3.8.0-29-generic", arch: "amd64", family: "unix"
>
>
> # mvn -DskipTests clean package
> [INFO] Scanning for projects...
> [INFO]
> --
> --
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] stratosphere
> [INFO] stratosphere-core
> [INFO] stratosphere-java
> [INFO] stratosphere-runtime
> [INFO] stratosphere-compiler
> [INFO] stratosphere-scala
> [INFO] stratosphere-clients
> [INFO] stratosphere-examples
> [INFO] stratosphere-java-examples
> [INFO] stratosphere-scala-examples
> [INFO] stratosphere-test-utils
> [INFO] stratosphere-tests
> [INFO] stratosphere-addons
> [INFO] avro
> [INFO] jdbc
> [INFO] spargel
> [INFO] hadoop-compatibility
> [INFO] stratosphere-quickstart
> [INFO] quickstart-java
> [INFO] quickstart-scala
> [INFO] stratosphere-dist
> [INFO]
> [INFO]
> --
> --
> [INFO] Building stratosphere 0.5.1
> [INFO]
> --
> --
> [INFO]
> [INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ stratosphere 
> --- [INFO] Deleting file set: /root/git/incubator-flink/target 
> (included: [**],
> excluded: []) [INFO] [INFO] --- maven-checkstyle-plugin:2.12.1:check
> (validate) @ stratosphere --- [INFO] [INFO] [INFO] --- 
> maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @ stratosphere --- 
> [INFO] [INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ 
> stratosphere --- [INFO] Not executing Javadoc as the project is not a 
> Java classpath-capable package [INFO] [INFO] >>> 
> maven-source-plugin:2.2.1:jar
> (attach-sources) @ stratosphere >>> [INFO] [INFO] --- 
> maven-checkstyle-plugin:2.12.1:check (validate) @ stratosphere --- 
> [INFO] [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce 
> (enforce-maven) @ stratosphere --- [INFO] [INFO] <<< 
> maven-source-plugin:2.2.1:jar
> (attach-sources) @ stratosphere <<< [INFO] [INFO] --- 
> maven-source-plugin:2.2.1:jar (attach-sources) @ stratosphere --- 
> [INFO] [INFO]
> --
> -- [INFO] Building stratosphere-core 0.5.1 [INFO]
> --
> --
> [INFO]
> [INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ 
> stratosphere-core --- [INFO] Deleting file set:
> /root/git/incubator-flink/stratosphere-core/target (included: [**],
> excluded: []) [INFO] [INFO] --- maven-checkstyle-plugin:2.12.1:check
> (validate) @ stratosphere-core --- [INFO] [INFO] [INFO] --- 
> maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @ 
> stratosphere-core --- [INFO] [INFO] --- 
> maven-resources-plugin:2.3:resources (default-resources) @ 
> stratosphere-core --- [INFO] Using 'UTF-8' encoding to copy filtered 
> resources.
> [INFO] skip non existing resourceDirectory 
> /root/git/incubator-flink/stratosphere-core/src/main/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
> stratosphere-core --- [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 225 source files to
> /root/git/incubator-flink/stratosphere-core/target/cl

Re: Unable to compile both trunk and 0.5.1 code

2014-06-30 Thread Robert Metzger
Hi Raymond,

its a known issue of the Oracle JDK 6 compiler. There is a issue filed at
Oracle but they don't support JDK6 anymore, so they won't fix it.
OpenJDK 6 has a fix, and all newer versions from Oracle also have fixes.

Flink/Stratosphere runs on the buggy Oracle JDK 6 version, just the
compiler won't work.

Regards,
Robert



On Mon, Jun 30, 2014 at 10:20 AM, Liu, Raymond 
wrote:

> Actually, tried jdk 1.7.0. It works. While the project readme said that
> Java 6, 7 or 8 both works...
>
> Best Regards,
> Raymond Liu
>
>
> -Original Message-
> From: Liu, Raymond [mailto:raymond@intel.com]
> Sent: Monday, June 30, 2014 4:13 PM
> To: dev@flink.incubator.apache.org
> Subject: Unable to compile both trunk and 0.5.1 code
>
> Hi
>
> Just clone the code from incubator flink, I tried both trunk code and
> 0.5.1 release, and encounter the same problem.
>
> # mvn --version
> Apache Maven 3.0.4
> Maven home: /usr/share/maven
> Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
> Java home: /usr/java/jdk1.6.0_30/jre
> Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version:
> "3.8.0-29-generic", arch: "amd64", family: "unix"
>
>
> # mvn -DskipTests clean package
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] stratosphere
> [INFO] stratosphere-core
> [INFO] stratosphere-java
> [INFO] stratosphere-runtime
> [INFO] stratosphere-compiler
> [INFO] stratosphere-scala
> [INFO] stratosphere-clients
> [INFO] stratosphere-examples
> [INFO] stratosphere-java-examples
> [INFO] stratosphere-scala-examples
> [INFO] stratosphere-test-utils
> [INFO] stratosphere-tests
> [INFO] stratosphere-addons
> [INFO] avro
> [INFO] jdbc
> [INFO] spargel
> [INFO] hadoop-compatibility
> [INFO] stratosphere-quickstart
> [INFO] quickstart-java
> [INFO] quickstart-scala
> [INFO] stratosphere-dist
> [INFO]
> [INFO]
> 
> [INFO] Building stratosphere 0.5.1
> [INFO]
> 
> [INFO]
> [INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ stratosphere ---
> [INFO] Deleting file set: /root/git/incubator-flink/target (included: [**],
> excluded: []) [INFO] [INFO] --- maven-checkstyle-plugin:2.12.1:check
> (validate) @ stratosphere --- [INFO] [INFO] [INFO] ---
> maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @ stratosphere ---
> [INFO] [INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @
> stratosphere --- [INFO] Not executing Javadoc as the project is not a Java
> classpath-capable package [INFO] [INFO] >>> maven-source-plugin:2.2.1:jar
> (attach-sources) @ stratosphere >>> [INFO] [INFO] ---
> maven-checkstyle-plugin:2.12.1:check (validate) @ stratosphere --- [INFO]
> [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @
> stratosphere --- [INFO] [INFO] <<< maven-source-plugin:2.2.1:jar
> (attach-sources) @ stratosphere <<< [INFO] [INFO] ---
> maven-source-plugin:2.2.1:jar (attach-sources) @ stratosphere --- [INFO]
> [INFO]
> 
> [INFO] Building stratosphere-core 0.5.1
> [INFO]
> 
> [INFO]
> [INFO] --- maven-clean-plugin:2.3:clean (default-clean) @
> stratosphere-core --- [INFO] Deleting file set:
> /root/git/incubator-flink/stratosphere-core/target (included: [**],
> excluded: []) [INFO] [INFO] --- maven-checkstyle-plugin:2.12.1:check
> (validate) @ stratosphere-core --- [INFO] [INFO] [INFO] ---
> maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @ stratosphere-core ---
> [INFO] [INFO] --- maven-resources-plugin:2.3:resources (default-resources)
> @ stratosphere-core --- [INFO] Using 'UTF-8' encoding to copy filtered
> resources.
> [INFO] skip non existing resourceDirectory
> /root/git/incubator-flink/stratosphere-core/src/main/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
> stratosphere-core --- [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 225 source files to
> /root/git/incubator-flink/stratosphere-core/target/classes
> [WARNING]
> /root/git/incubator-flink/stratosphere-core/src/main/java/eu/stratosphere/core/memory/MemoryUtils.java:[27,37]
> warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a
> future release [WARNING]
> /root/git/incubator-flink/stratosphere-core/src/main/java/eu/stratosphere/core/memory/MemoryUtils.java:[36,32]
> warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a
> future release [WARNING]
> /root/git/incubator-flink/stratosphere-core/src/main/java/eu/stratosphere/core/memory/MemorySegment.java:[963,38]
> warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a
> future release [WARNING]
> /root/git/incubator-flink/stratosphere-core/src/main/java/eu

RE: Unable to compile both trunk and 0.5.1 code

2014-06-30 Thread Liu, Raymond
Actually, tried jdk 1.7.0. It works. While the project readme said that Java 6, 
7 or 8 both works...

Best Regards,
Raymond Liu


-Original Message-
From: Liu, Raymond [mailto:raymond@intel.com] 
Sent: Monday, June 30, 2014 4:13 PM
To: dev@flink.incubator.apache.org
Subject: Unable to compile both trunk and 0.5.1 code

Hi

Just clone the code from incubator flink, I tried both trunk code and 0.5.1 
release, and encounter the same problem.

# mvn --version
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
Java home: /usr/java/jdk1.6.0_30/jre
Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: 
"3.8.0-29-generic", arch: "amd64", family: "unix"


# mvn -DskipTests clean package
[INFO] Scanning for projects...
[INFO] 
[INFO] Reactor Build Order:
[INFO]
[INFO] stratosphere
[INFO] stratosphere-core
[INFO] stratosphere-java
[INFO] stratosphere-runtime
[INFO] stratosphere-compiler
[INFO] stratosphere-scala
[INFO] stratosphere-clients
[INFO] stratosphere-examples
[INFO] stratosphere-java-examples
[INFO] stratosphere-scala-examples
[INFO] stratosphere-test-utils
[INFO] stratosphere-tests
[INFO] stratosphere-addons
[INFO] avro
[INFO] jdbc
[INFO] spargel
[INFO] hadoop-compatibility
[INFO] stratosphere-quickstart
[INFO] quickstart-java
[INFO] quickstart-scala
[INFO] stratosphere-dist
[INFO]
[INFO] 
[INFO] Building stratosphere 0.5.1
[INFO] 
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ stratosphere --- 
[INFO] Deleting file set: /root/git/incubator-flink/target (included: [**], 
excluded: []) [INFO] [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) 
@ stratosphere --- [INFO] [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce 
(enforce-maven) @ stratosphere --- [INFO] [INFO] --- 
maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ stratosphere --- [INFO] Not 
executing Javadoc as the project is not a Java classpath-capable package [INFO] 
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) @ stratosphere >>> 
[INFO] [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @ 
stratosphere --- [INFO] [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce 
(enforce-maven) @ stratosphere --- [INFO] [INFO] <<< 
maven-source-plugin:2.2.1:jar (attach-sources) @ stratosphere <<< [INFO] [INFO] 
--- maven-source-plugin:2.2.1:jar (attach-sources) @ stratosphere --- [INFO] 
[INFO] 
[INFO] Building stratosphere-core 0.5.1
[INFO] 
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ stratosphere-core --- 
[INFO] Deleting file set: /root/git/incubator-flink/stratosphere-core/target 
(included: [**], excluded: []) [INFO] [INFO] --- 
maven-checkstyle-plugin:2.12.1:check (validate) @ stratosphere-core --- [INFO] 
[INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @ 
stratosphere-core --- [INFO] [INFO] --- maven-resources-plugin:2.3:resources 
(default-resources) @ stratosphere-core --- [INFO] Using 'UTF-8' encoding to 
copy filtered resources.
[INFO] skip non existing resourceDirectory 
/root/git/incubator-flink/stratosphere-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
stratosphere-core --- [INFO] Changes detected - recompiling the module!
[INFO] Compiling 225 source files to 
/root/git/incubator-flink/stratosphere-core/target/classes
[WARNING] 
/root/git/incubator-flink/stratosphere-core/src/main/java/eu/stratosphere/core/memory/MemoryUtils.java:[27,37]
 warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future 
release [WARNING] 
/root/git/incubator-flink/stratosphere-core/src/main/java/eu/stratosphere/core/memory/MemoryUtils.java:[36,32]
 warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future 
release [WARNING] 
/root/git/incubator-flink/stratosphere-core/src/main/java/eu/stratosphere/core/memory/MemorySegment.java:[963,38]
 warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future 
release [WARNING] 
/root/git/incubator-flink/stratosphere-core/src/main/java/eu/stratosphere/types/Record.java:[1733,46]
 warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future 
release [WARNING] 
/root/git/incubator-flink/stratosphere-core/src/main/java/eu/stratosphere/core/memory/MemoryUtils.java:[38,53]
 warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future 
release [WARNING] 
/root/git/incubator-flink/stratosphere-core/src/main/java/eu/stratosphere/core/memory/MemoryUtils.java:[40,41]
 warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future 
release [WARNING]