built problem - flink 0.9-SNAPSHOT

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

built problem - flink 0.9-SNAPSHOT

Felix Neutatz
Hi,

the documentation says: "It [the built of the 0.9 snapshot] works well with
OpenJDK 6 and all Java 7 and 8 compilers."

But I got the following error:

[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

Best regards,
Felix
Reply | Threaded
Open this post in threaded view
|

Re: built problem - flink 0.9-SNAPSHOT

Ufuk Celebi-2
This is on an IBM PowerPC machine, right?

Since this MXBeans are from the com.sun.* namespace, I'm not sure if this can be fixed w/o loading the MX beans depending on the JVM.

For your JVM, the classes are located in "com.ibm.lang.management.*" and not "com.sun.management.*".

On 12 Jun 2015, at 00:21, Felix Neutatz <[hidden email]> wrote:

> Hi,
>
> the documentation says: "It [the built of the 0.9 snapshot] works well with
> OpenJDK 6 and all Java 7 and 8 compilers."
>
> But I got the following error:
>
> [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
>
> Best regards,
> Felix

Reply | Threaded
Open this post in threaded view
|

Re: built problem - flink 0.9-SNAPSHOT

Felix Neutatz
Yes, it is on a IBM PowerPC machine. So we change that in the documentation
to all Java 7,8 ( except IBM Java)?

2015-06-12 0:34 GMT+02:00 Ufuk Celebi <[hidden email]>:

> This is on an IBM PowerPC machine, right?
>
> Since this MXBeans are from the com.sun.* namespace, I'm not sure if this
> can be fixed w/o loading the MX beans depending on the JVM.
>
> For your JVM, the classes are located in "com.ibm.lang.management.*" and
> not "com.sun.management.*".
>
> On 12 Jun 2015, at 00:21, Felix Neutatz <[hidden email]> wrote:
>
> > Hi,
> >
> > the documentation says: "It [the built of the 0.9 snapshot] works well
> with
> > OpenJDK 6 and all Java 7 and 8 compilers."
> >
> > But I got the following error:
> >
> > [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
> >
> > Best regards,
> > Felix
>
>
Reply | Threaded
Open this post in threaded view
|

Re: built problem - flink 0.9-SNAPSHOT

Ufuk Celebi-2

On 12 Jun 2015, at 00:42, Felix Neutatz <[hidden email]> wrote:

> Yes, it is on a IBM PowerPC machine. So we change that in the documentation
> to all Java 7,8 ( except IBM Java)?

Yes, you can also open an issue to investiage this further.
Reply | Threaded
Open this post in threaded view
|

Re: built problem - flink 0.9-SNAPSHOT

Felix Neutatz
done: https://issues.apache.org/jira/browse/FLINK-2208

2015-06-12 0:50 GMT+02:00 Ufuk Celebi <[hidden email]>:

>
> On 12 Jun 2015, at 00:42, Felix Neutatz <[hidden email]> wrote:
>
> > Yes, it is on a IBM PowerPC machine. So we change that in the
> documentation
> > to all Java 7,8 ( except IBM Java)?
>
> Yes, you can also open an issue to investiage this further.
>