flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Günther (JIRA) <j...@apache.org>
Subject [jira] [Commented] (FLINK-2208) Build error for Java IBM
Date Sat, 13 Jun 2015 14:12:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-2208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14584610#comment-14584610
] 

Johannes Günther commented on FLINK-2208:
-----------------------------------------

My first guess is that the IBM JDK is not supported officially and therefore not tested.
Also the Automatic buildprocess in Travis does not seem to support it.

http://docs.travis-ci.com/user/languages/java/#Testing-Against-Multiple-JDKs

That being said the com.sun,management packages are internal API's for the Sun(Oracle) JDKs
that seem to be used by the openjdk also
a fix is to use the java.lang.management.OperatingSystemMXBean instead
com.sun.*  packages are not meant to be used outside the sun jdk and are not meant to be used
in programms


> Build error for Java IBM
> ------------------------
>
>                 Key: FLINK-2208
>                 URL: https://issues.apache.org/jira/browse/FLINK-2208
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: 0.9
>            Reporter: Felix Neutatz
>            Priority: Minor
>
> Using IBM Java 7 will break the built:
> {code:xml}
>     [INFO] --- scala-maven-plugin:3.1.4:compile (scala-compile-first) @ flink-runtime
---
> [INFO] /share/flink/flink-0.9-SNAPSHOT-wo-Yarn/flink-runtime/src/main/java:-1: info:
compiling
> [INFO] /share/flink/flink-0.9-SNAPSHOT-wo-Yarn/flink-runtime/src/main/scala:-1: info:
compiling
> [INFO] Compiling 461 source files to /share/flink/flink-0.9-SNAPSHOT-wo-Yarn/flink-runtime/target/classes
at 1434059956648
> [ERROR] /share/flink/flink-0.9-SNAPSHOT-wo-Yarn/flink-runtime/src/main/scala/org/apache/flink/runtime/taskmanager/TaskManager.scala:1768:
error: type OperatingSystemMXBean is not a member of package com.sun.management
> [ERROR]             asInstanceOf[com.sun.management.OperatingSystemMXBean]).
> [ERROR]                                             ^
> [ERROR] /share/flink/flink-0.9-SNAPSHOT-wo-Yarn/flink-runtime/src/main/scala/org/apache/flink/runtime/taskmanager/TaskManager.scala:1787:
error: type OperatingSystemMXBean is not a member of package com.sun.management
> [ERROR]     val methodsList = classOf[com.sun.management.OperatingSystemMXBean].getMethods()
> [ERROR]                                                  ^
> [ERROR] two errors found
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] flink .............................................. SUCCESS [ 14.447 s]
> [INFO] flink-shaded-hadoop ................................ SUCCESS [  2.548 s]
> [INFO] flink-shaded-include-yarn .......................... SUCCESS [ 36.122 s]
> [INFO] flink-shaded-include-yarn-tests .................... SUCCESS [ 36.980 s]
> [INFO] flink-core ......................................... SUCCESS [ 21.887 s]
> [INFO] flink-java ......................................... SUCCESS [ 16.023 s]
> [INFO] flink-runtime ...................................... FAILURE [ 20.241 s]
> [INFO] flink-optimizer .................................... SKIPPED
> [hadoop@ibm-power-1 /]$ java -version
> java version "1.7.0"
> Java(TM) SE Runtime Environment (build pxp6470_27sr1fp1-20140708_01(SR1 FP1))
> IBM J9 VM (build 2.7, JRE 1.7.0 Linux ppc64-64 Compressed References 20140707_205525
(JIT enabled, AOT enabled)
> J9VM - R27_Java727_SR1_20140707_1408_B205525
> JIT  - tr.r13.java_20140410_61421.07
> GC   - R27_Java727_SR1_20140707_1408_B205525_CMPRSS
> J9CL - 20140707_205525)
> JCL - 20140707_01 based on Oracle 7u65-b16
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message