hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7211) Security uses proprietary Sun APIs
Date Fri, 06 Apr 2012 04:21:21 GMT

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

Todd Lipcon commented on HADOOP-7211:
-------------------------------------

HADOOP-6941 fixed compilation on the IBM JDK using reflection, but added some code which definitely
does not work - eg:
{code}
      if (System.getProperty("java.vendor").contains("IBM")) {
        principalClass = Class.forName("com.ibm.security.krb5.PrincipalName");
        
        credentialsClass = Class.forName("com.ibm.security.krb5.Credentials");
        krb5utilClass = Class.forName("com.ibm.security.jgss.mech.krb5");
{code}

but the krb5utilClass here is invalid, and there doesn't appear to be any equivalent in the
IBM JDK. Instead of this code which kind of looks like it should work, we should just throw
an UnsupportedOperationException until someone actually fixes this.
                
> Security uses proprietary Sun APIs
> ----------------------------------
>
>                 Key: HADOOP-7211
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7211
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Eli Collins
>            Assignee: Luke Lu
>
> The security code uses the KrbException, Credentials, and PrincipalName classes from
sun.security.krb5 and Krb5Util from sun.security.jgss.krb5. These may disappear in future
Java releases. Also Hadoop does not compile using jdks that do not support them, for example
with the following IBM JDK.
> {noformat}
> $ /home/eli/toolchain/java-x86_64-60/bin/java -version
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build pxa6460sr9fp1-20110208_03(SR9 FP1))
> IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr9-20110203_74623
(JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT  - r9_20101028_17488ifx3
> GC   - 20101027_AA)
> JCL  - 20110203_01
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message