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

Groups should be consistent in using default group mapping class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha2
    • 3.0.0-alpha2, 2.10.2
    • security
    • None
    • 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

        1. HADOOP-13965.001.patch
          1 kB
          Yiqun Lin

        Activity

          People

            linyiqun Yiqun Lin
            linyiqun Yiqun Lin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: