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

Dong Lin edited comment on FLINK-30501 at 3/3/23 1:28 AM:
----------------------------------------------------------

[~martijnvisser] I agree we can say we recommend Java 11. How about saying 
this: "Flink requires **Java 8 (deprecated) or Java 11 (recommended)** to 
build"?

Here is the reason I am inclined to explicitly specify "Java 8 (deprecated)". 
Today, many users are still using Java 8 and it is reasonable for users to ask 
whether Flink supports Java 8. Instead of requiring users to ask this question 
on mailing list, we probably should provide answer on the Flink website so that 
it is easy for users to find the right answer by themselves.

I understand we want to encourage users to use Java 11. I just think we should 
provide the right information to users and let users make their own choice.


was (Author: lindong):
[~martijnvisser] I agree we can say we recommend Java 11. How about saying 
this: "Flink requires **Java 8 (deprecated) or Java 11** to build"?

Here is the reason I am inclined to explicitly specify "Java 8 (deprecated)". 
Today, many users are still using Java 8 and it is reasonable for users to ask 
whether Flink supports Java 8. Instead of requiring users to ask this question 
on mailing list, we probably should provide answer on the Flink website so that 
it is easy for users to find the right answer by themselves.

I understand we want to encourage users to use Java 11. I just think we should 
provide the right information to users and let users make their own choice.

> Update Flink build instruction to deprecate Java 8 instead of requiring Java 
> 11
> -------------------------------------------------------------------------------
>
>                 Key: FLINK-30501
>                 URL: https://issues.apache.org/jira/browse/FLINK-30501
>             Project: Flink
>          Issue Type: Improvement
>          Components: Build System / CI
>            Reporter: Dong Lin
>            Assignee: Dong Lin
>            Priority: Major
>              Labels: pull-request-available
>
> Flink 1.15 and later versions require at least Java 11 to build from sources 
> [1], whereas the pom.xml specifies the source/target is 1.8. This 
> inconsistency confuses users.
> As mentioned in the FLINK-25247 title, the goal of that ticket is to "Inform 
> users about deprecation". It will be better to inform users that "Java 8 is 
> deprecated" instead of saying "Fink requires at least Java 11 to build", so 
> that users have the right information to make the right choice for themselves.
> Also note that Flink community is regularly running flink-ml benchmark for 
> both Java 8 and Java 11 [2], which suggests that we are practically ensuring 
> Java 8 is supported.
> [1] 
> [https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/flinkdev/building/]
> [2] 
> [http://codespeed.dak8s.net:8000/timeline/?ben=mapSink.F27_UNBOUNDED&env=2]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to