Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13965

Groups should be consistent in using default group mapping class

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha2
    • Fix Version/s: 3.0.0-alpha2
    • Component/s: security
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Groups.java
            public Groups(Configuration conf, final Timer timer) {
             impl = 
            ReflectionUtils.newInstance(
                conf.getClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING, 
                              ShellBasedUnixGroupsMapping.class, 
                              GroupMappingServiceProvider.class), 
                conf);
            ...
      }
      

      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.

      <property>
        <name>hadoop.security.group.mapping</name>
       <value>org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback</value>
        <description>
          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.....
        </description>
      </property>
      

        Attachments

          Activity

            People

            • Assignee:
              linyiqun Yiqun Lin
              Reporter:
              linyiqun Yiqun Lin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: