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

Adrian Cole commented on SPARK-24417:
-------------------------------------

[~dongjoon] our main server is spring boot and it unofficially works with JRE 
11 until 2.1 which is in milestones. By unofficially, I mean we can run it 
ignoring a benign message at startup. We want JRE 11 mainly due to a google 
cloud integration which uses gRPC, then netty, as prior to JRE 11 you need to 
do some weird TLS config.

A lot of the work we've done has been build related actually, dodging conflicts 
with things like errorprone and/or adding dependencies for things like java 
annotations. For example, we don't directly use any sun classes or anything.

I'll note a few interesting PRs here. I think most things are build related as 
we got rid of most of the other things when we did Java 9.

https://github.com/openzipkin/brave/pull/806 < instrumentation, so this library 
is in other people's apps. Note that log4j 1.2 doesn't work with JRE 11 though 
you can get around this by using log4j 2 instead

https://github.com/openzipkin/zipkin-aws/pull/110 < our aws server variant 
which dies in circleci after switching until we pasted a magic "forkMode" into 
the build :P you'll also notice some fairly crazy stuff for the errorprone 
plugin. That's because their recommended way assumes you always knows which 
exact java version is in use, which is near impossible in oss as people use 
anything.

https://github.com/openzipkin/brave-karaf/pull/9/files < having to add a dep so 
Nullable doesn't make the OSGi cry..

Things like this.. I was rallying for completing 100% JDK 11 (builds) today, 
then hit spark which is so far the only thing can't muscle through though looks 
like you've inventoried things. Note we still wouldn't change our base docker 
image to JDK 11 until spring boot 2.1 is out.

hope this helps.




> Build and Run Spark on JDK9+
> ----------------------------
>
>                 Key: SPARK-24417
>                 URL: https://issues.apache.org/jira/browse/SPARK-24417
>             Project: Spark
>          Issue Type: New Feature
>          Components: Build
>    Affects Versions: 2.3.0
>            Reporter: DB Tsai
>            Priority: Major
>
> This is an umbrella JIRA for Apache Spark to support Java 9+
> As Java 8 is going away soon, Java 11 will be LTS and GA this Sep, and many 
> companies are testing Java 9 or Java 10 to prepare for Java 11, i's best to 
> start the traumatic process of supporting newer version of Java in Apache 
> Spark as a background activity. 
> The subtasks are what have to be done to support Java 9+.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to