flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Pompermaier <pomperma...@okkam.it>
Subject Re: Flink cluster and Java 8
Date Wed, 03 Feb 2016 14:12:28 GMT
I've checked the compiled classes with javap -verbose and indeed they had a
major.verion=51 (java 7).
So I've changed the source and target to 1.8 in the main pom.xm and now the
generated .class have major.verion=52.
Unfortunately now I get this error:

[ERROR]
/opt/flink-src/flink-java/src/main/java/org/apache/flink/api/java/typeutils/runtime/TupleSerializer.java:[104,63]
incompatible types: void cannot be converted to java.lang.Object

How can I fix it? I also tried to upgrade the maven compiler to 3.5 but it
didn't help :(

Best,
Flavio

On Wed, Feb 3, 2016 at 2:38 PM, Flavio Pompermaier <pompermaier@okkam.it>
wrote:

> Hi to all,
>
> I was trying to make my Java 8 application to run on a Flink 0.10.1
> cluster.
> I've compiled both Flink sources and my app with the same Java version
> (1.8.72) and I've set the env.java.home to point to my java 8 JVM in every
> flink-conf.yml of the cluster.
>
> I always get the following Exception:
>
> java.lang.UnsupportedClassVersionError: XXX: Unsupported major.minor
> version 52.0
>
> Is there any other setting I forgot to check? Do I have to change also the
> source and target to 1.8 in the maven compiler settings of the main pom?
>
> Best,
> Flavio
>

Mime
View raw message