ShellBasedUnixGroupsMapping has a property hadoop.security.groups.shell.command.timeout to control how long to wait for the fetch groups command which can be configured in seconds. but while scheduling the time taken is millisecs. so currently if u give value as 60s, it is taken as 60ms.
timeout = conf.getTimeDuration( CommonConfigurationKeys. HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS, CommonConfigurationKeys. HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS_DEFAULT, TimeUnit.SECONDS);
Time unit given is in seconds but it should be millisecs
HADOOP-15866 Renamed HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT keys break compatibility
- is broken by
HADOOP-13817 Add a finite shell command timeout to ShellBasedUnixGroupsMapping