Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 6657D9655 for ; Wed, 21 Mar 2012 04:52:12 +0000 (UTC) Received: (qmail 70882 invoked by uid 500); 21 Mar 2012 04:52:12 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 70656 invoked by uid 500); 21 Mar 2012 04:52:09 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 69967 invoked by uid 99); 21 Mar 2012 04:52:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2012 04:52:06 +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; Wed, 21 Mar 2012 04:52:04 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 56597CD435 for ; Wed, 21 Mar 2012 04:51:42 +0000 (UTC) Date: Wed, 21 Mar 2012 04:51:42 +0000 (UTC) From: "Jason Lowe (Commented) (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1875107775.40214.1332305502355.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2028726885.39839.1332294039351.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-4043) Secret keys set in Credentials are not seen by tasks 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/MAPREDUCE-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234093#comment-13234093 ] Jason Lowe commented on MAPREDUCE-4043: --------------------------------------- The tasks can workaround the problem by reading the appTokens file that was pushed to HDFS when the job was launched. For example: {code} Credentials cred = Credentials.readTokenStorageFile(new Path(jobConf.get("mapreduce.job.dir"), "appTokens"), jobConf); byte[] secretKey = cred.getSecretKey(SECRET_KEY_ALIAS); {code} > Secret keys set in Credentials are not seen by tasks > ---------------------------------------------------- > > Key: MAPREDUCE-4043 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4043 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: contrib/streaming, mrv2 > Affects Versions: 0.23.2 > Reporter: Jason Lowe > Priority: Blocker > > The following scenario works in 0.20.205 but no longer works in 0.23: > 1) During job submission, a secret key is set by calling jobConf.getCredentials().addSecretKey(Text, byte[]) > 2) A map task retrieves the secret key by calling jobConf.getCredentials().getSecretKey(Text) > In 205 the secret key is retrieved successfully but in 0.23 the secret key is missing. -- 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