Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 74152 invoked from network); 30 Jan 2010 17:14:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jan 2010 17:14:58 -0000 Received: (qmail 39483 invoked by uid 500); 30 Jan 2010 17:14:58 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 39419 invoked by uid 500); 30 Jan 2010 17:14:58 -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 39409 invoked by uid 99); 30 Jan 2010 17:14:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jan 2010 17:14:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jan 2010 17:14:55 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9BAD9234C4BA for ; Sat, 30 Jan 2010 09:14:34 -0800 (PST) Message-ID: <1540979395.151221264871674636.JavaMail.jira@brutus.apache.org> Date: Sat, 30 Jan 2010 17:14:34 +0000 (UTC) From: "Owen O'Malley (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Issue Comment Edited: (HADOOP-6526) Need mapping from long principal names to local OS user names In-Reply-To: <786866304.151051264870594555.JavaMail.jira@brutus.apache.org> 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-6526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806705#action_12806705 ] Owen O'Malley edited comment on HADOOP-6526 at 1/30/10 5:13 PM: ---------------------------------------------------------------- Currently, UGI has getShortUserName which truncates the user name at the first '@' or '/'. I propose we replace that with a getLocalName that applies the configured mapping to create the local user name. The administrator creates a file (user.mapping) with one rule per a line, the rules are attempted in the order listed in the file, and only the first rules that applies is used. '\*' is a wildcard that matches 0 or more characters other than '/' and '@'. The value that matched the nth '\*' is available to the rules as \n. The translation fails with an exception if the resulting name contains either '/' or '@'. The default rules would be: {noformat} */*@* -> \1 *@* -> \1 {noformat} which just keeps the prefix of each principal. There will be a command line tool that you can invoke to translate a list of long names into their local equivalents. was (Author: owen.omalley): Currently, UGI has getShortUserName which truncates the user name at the first '@' or '/'. I propose we replace that with a getLocalName that applies the configured mapping to create the local user name. The administrator creates a file (user.mapping) with one rule per a line, the rules are attempted in the order listed in the file, and only the first rules that applies is used. '*' is a wildcard that matches 0 or more characters other than '/' and '@'. The value that matched the nth '*' is available to the rules as \n. The translation fails with an exception if the resulting name contains either '/' or '@'. The default rules would be: {noformat} */*@* -> \1 *@* -> \1 {noformat} which just keeps the prefix of each principal. There will be a command line tool that you can invoke to translate a list of long names into their local equivalents. > Need mapping from long principal names to local OS user names > ------------------------------------------------------------- > > Key: HADOOP-6526 > URL: https://issues.apache.org/jira/browse/HADOOP-6526 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Owen O'Malley > Assignee: Owen O'Malley > > We need a configurable mapping from full user names (eg. omalley@APACHE.ORG) to local user names (eg. omalley). For many organizations it is sufficient to just use the prefix, however, in the case of shared clusters there may be duplicated prefixes. A configurable mapping will let administrators resolve the issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.