[
https://issues.apache.org/jira/browse/HADOOP-10848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Akira Ajisaka reopened HADOOP-10848:
------------------------------------
Now I'm trying to run HDFS on Java 11 and faced the following warnings:
{noformat}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.apache.hadoop.security.authentication.util.KerberosUtil
(file:/opt/hadoop-3.3.0-SNAPSHOT/share/hadoop/common/lib/hadoop-auth-3.3.0-SNAPSHOT.jar)
to method sun.security.krb5.Config.getInstance()
WARNING: Please consider reporting this to the maintainers of
org.apache.hadoop.security.authentication.util.KerberosUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
{noformat}
Reopening this because It's better to fix these warnings.
> Cleanup calling of sun.security.krb5.Config
> -------------------------------------------
>
> Key: HADOOP-10848
> URL: https://issues.apache.org/jira/browse/HADOOP-10848
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Kai Zheng
> Priority: Minor
>
> As was told by Max (Oracle), JDK9 is likely to block all accesses to sun.*
> classes.
> In
> ./hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosUtil.java,
> sun.security.krb5.Config is called against the method getDefaultRealm() to
> get default Kerberos realm. It was proposed to remove the call by Oracle:
> {code}
> new
> javax.security.auth.kerberos.KerberosPrincipal("dummy").toString().split("@")[1]
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]