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

ASF subversion and git services commented on IMPALA-11941:
----------------------------------------------------------

Commit 6f2d9a24d8c014a7dc1ec7a08bcfb025b3bdf41f in impala's branch 
refs/heads/master from Csaba Ringhofer
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=6f2d9a24d ]

IMPALA-13920: Allow running minicluster with Java 17

IMPALA-11941 allowed building Impala and running tests with Java 17,
but it still uses Java 8 for minicluster components (e.g. Hadoop) and
skips several tests that would restart Hive. It should be possible to
use 17 for everything to be able to deprecate Java 8.

This patch mainly fixes Yarn+Hive+Tez startup issues with java 17 by
setting JAVA_TOOL_OPTIONS.

Another issues fixed is KuduHMSIntegrationTest: this test fails to
restart Kudu due to a bug in OpenJDK (see IMPALA-13856). The current
fix is to remove LD_PRELOAD to avoid loading libjsig (similarly to
the case when MINICLUSTER_JAVA_HOME is set). This works, but it
would be nice to clean up this area in a future patch.

Testing:
- ran exhaustive tests with Java 17
- ran core tests with default Java 8

Change-Id: If58b64a21d14a4a55b12dfe9ea0b9c3d5fe9c9cf
Reviewed-on: http://gerrit.cloudera.org:8080/22705
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Riza Suminto <[email protected]>
Reviewed-by: Michael Smith <[email protected]>


> Support Java 17 in Impala
> -------------------------
>
>                 Key: IMPALA-11941
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11941
>             Project: IMPALA
>          Issue Type: Improvement
>            Reporter: Manish Maheshwari
>            Assignee: Michael Smith
>            Priority: Major
>             Fix For: Impala 4.3.0
>
>
> Support Java 17 in Impala.
> ----
> jdeprscan identifies one new deprecation to address
> {code}
> $ /usr/lib/jvm/java-17-openjdk-amd64/bin/jdeprscan --release 17 --class-path 
> "$CLASSPATH" fe/target/impala-frontend-4.3.0-SNAPSHOT.jar
> Jar file fe/target/impala-frontend-4.3.0-SNAPSHOT.jar:
> class org/apache/impala/util/UnsafeUtil uses deprecated class 
> java/security/AccessController (forRemoval=true)
> {code}
> This is related to our use of sun.misc.Unsafe. However an appropriate 
> replacement - https://openjdk.org/jeps/193 - was only added in Java 9.



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

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

Reply via email to