Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 78727200BFB for ; Wed, 11 Jan 2017 12:13:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7726D160B2E; Wed, 11 Jan 2017 11:13:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C2BEB160B50 for ; Wed, 11 Jan 2017 12:13:00 +0100 (CET) Received: (qmail 65326 invoked by uid 500); 11 Jan 2017 11:12:58 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 65018 invoked by uid 99); 11 Jan 2017 11:12:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2017 11:12:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 689B42C03E2 for ; Wed, 11 Jan 2017 11:12:58 +0000 (UTC) Date: Wed, 11 Jan 2017 11:12:58 +0000 (UTC) From: "Yiqun Lin (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13965) Groups should be consistent in using default group mapping class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 11 Jan 2017 11:13:01 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yiqun Lin updated HADOOP-13965: ------------------------------- Description: {code:title=Groups.java} public Groups(Configuration conf, final Timer timer) { impl = ReflectionUtils.newInstance( conf.getClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING, ShellBasedUnixGroupsMapping.class, GroupMappingServiceProvider.class), conf); ... } {code} The default value of setting {{hadoop.security.group.mapping}} is different in code and config file. In file {{core-default.xml}}, it uses the class {{JniBasedUnixGroupsMappingWithFallback}} and this should be the true value. {code} hadoop.security.group.mapping org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback Class for user to group mapping (get groups for a given user) for ACL. The default implementation, org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback, will determine if the Java Native Interface (JNI) is available..... {code} was: {code:title=Groups.java} public Groups(Configuration conf, final Timer timer) { impl = ReflectionUtils.newInstance( conf.getClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING, ShellBasedUnixGroupsMapping.class, GroupMappingServiceProvider.class), conf); ... } {code} The default value of setting {{hadoop.security.group.mapping}} is different in code and config file. In file {{core-default.xml}}, it uses the class {{JniBasedUnixGroupsMappingWithFallback}} and this should be the true value. > Groups should be consistent in using default group mapping class > ---------------------------------------------------------------- > > Key: HADOOP-13965 > URL: https://issues.apache.org/jira/browse/HADOOP-13965 > Project: Hadoop Common > Issue Type: Bug > Components: security > Affects Versions: 3.0.0-alpha2 > Reporter: Yiqun Lin > Assignee: Yiqun Lin > Priority: Minor > Attachments: HADOOP-13965.001.patch > > > {code:title=Groups.java} > public Groups(Configuration conf, final Timer timer) { > impl = > ReflectionUtils.newInstance( > conf.getClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING, > ShellBasedUnixGroupsMapping.class, > GroupMappingServiceProvider.class), > conf); > ... > } > {code} > The default value of setting {{hadoop.security.group.mapping}} is different in code and config file. In file {{core-default.xml}}, it uses the class {{JniBasedUnixGroupsMappingWithFallback}} and this should be the true value. > {code} > > hadoop.security.group.mapping > org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback > > Class for user to group mapping (get groups for a given user) for ACL. > The default implementation, > org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback, > will determine if the Java Native Interface (JNI) is available..... > > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org