OpenJDK or Oracle JDK: 8 or 11?

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

OpenJDK or Oracle JDK: 8 or 11?

Pankaj Chand
Hello,

The documentation says that to run Flink, we need Java 8 or 11.

Will JDK 11 work for running Flink, programming Flink applications as well as building Flink from source?

Also, can we use Open JDK for the above three capabilities, or do any of the capabilities require Oracle JDK?

Thanks,

Pankaj
Reply | Threaded
Open this post in threaded view
|

Re: OpenJDK or Oracle JDK: 8 or 11?

Arvid Heise-3
Hi Pankaj,

Yes, you can use all 4 mentioned JDKs for these three things.

When building Flink from sources with Java 11, you may need to activate the java 11 profile in maven (-Pjava11). If you just want to use Flink with Java 11, you can also use Flink built with Java 8 (in fact the official maven artifacts and dist are still built in Java 8).

Best,

Arvid

On Sat, Aug 22, 2020 at 1:23 PM Pankaj Chand <[hidden email]> wrote:
Hello,

The documentation says that to run Flink, we need Java 8 or 11.

Will JDK 11 work for running Flink, programming Flink applications as well as building Flink from source?

Also, can we use Open JDK for the above three capabilities, or do any of the capabilities require Oracle JDK?

Thanks,

Pankaj


--

Arvid Heise | Senior Java Developer


Follow us @VervericaData

--

Join Flink Forward - The Apache Flink Conference

Stream Processing | Event Driven | Real Time

--

Ververica GmbH | Invalidenstrasse 115, 10115 Berlin, Germany

--

Ververica GmbH
Registered at Amtsgericht Charlottenburg: HRB 158244 B
Managing Directors: Timothy Alexander Steinert, Yip Park Tung Jason, Ji (Toni) Cheng   
Reply | Threaded
Open this post in threaded view
|

Re: OpenJDK or Oracle JDK: 8 or 11?

Marco Villalobos-2
In reply to this post by Pankaj Chand
Hi Pankaj,

I highly recommend that you use an OpenJDK version 11 because each JDK upgrade has a performance improvement, and also because the Oracle JDK and OpenJDK are based off the same code-base. The main difference between Oracle and OpenJDK is the branding and price.


> On Aug 22, 2020, at 4:23 AM, Pankaj Chand <[hidden email]> wrote:
>
> Hello,
>
> The documentation says that to run Flink, we need Java 8 or 11.
>
> Will JDK 11 work for running Flink, programming Flink applications as well as building Flink from source?
>
> Also, can we use Open JDK for the above three capabilities, or do any of the capabilities require Oracle JDK?
>
> Thanks,
>
> Pankaj

Reply | Threaded
Open this post in threaded view
|

Re: OpenJDK or Oracle JDK: 8 or 11?

Pankaj Chand
Thank you, Arvid and Marco!

On Sat, Aug 22, 2020 at 2:03 PM Marco Villalobos <[hidden email]> wrote:
Hi Pankaj,

I highly recommend that you use an OpenJDK version 11 because each JDK upgrade has a performance improvement, and also because the Oracle JDK and OpenJDK are based off the same code-base. The main difference between Oracle and OpenJDK is the branding and price.


> On Aug 22, 2020, at 4:23 AM, Pankaj Chand <[hidden email]> wrote:
>
> Hello,
>
> The documentation says that to run Flink, we need Java 8 or 11.
>
> Will JDK 11 work for running Flink, programming Flink applications as well as building Flink from source?
>
> Also, can we use Open JDK for the above three capabilities, or do any of the capabilities require Oracle JDK?
>
> Thanks,
>
> Pankaj