Hadoop Common
  1. Hadoop Common
  2. HADOOP-10848

Cleanup calling of sun.security.krb5.Config

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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:

      new javax.security.auth.kerberos.KerberosPrincipal("dummy").toString().split("@")[1]
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Kai Zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development