Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80909965D for ; Fri, 6 Apr 2012 04:21:45 +0000 (UTC) Received: (qmail 94961 invoked by uid 500); 6 Apr 2012 04:21:45 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 94345 invoked by uid 500); 6 Apr 2012 04:21:43 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 94129 invoked by uid 99); 6 Apr 2012 04:21:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 04:21:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 04:21:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5032B35B65B for ; Fri, 6 Apr 2012 04:21:21 +0000 (UTC) Date: Fri, 6 Apr 2012 04:21:21 +0000 (UTC) From: "Todd Lipcon (Commented) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <883707775.21631.1333686081399.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2126131872.17638.1301349245792.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7211) Security uses proprietary Sun APIs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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