[ https://issues.apache.org/jira/browse/HADOOP-9232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13593776#comment-13593776 ]
Bikas Saha commented on HADOOP-9232: ------------------------------------ I am not clear if we have fixed the root cause or the symptom? It looks like JniBasedUnixGroupsMappingWithFallback checks for native impl being present and if not it falls back to Shell. Thereafter, it will use the native code and fail when the native code does not have the expected function. In Windows, the native code is always present for other reasons. So we are never going to fall back to Shell. So basically there is no fallback. In the patch we have fixed the missing function in the native jni code. But is that the complete fix? For any other/new jni based function we will be back to this situation because on Windows the native code is always loaded. > JniBasedUnixGroupsMappingWithFallback fails on Windows with > UnsatisfiedLinkError > -------------------------------------------------------------------------------- > > Key: HADOOP-9232 > URL: https://issues.apache.org/jira/browse/HADOOP-9232 > Project: Hadoop Common > Issue Type: Bug > Components: native, security > Affects Versions: trunk-win > Reporter: Chris Nauroth > Assignee: Ivan Mitic > Fix For: trunk-win > > Attachments: HADOOP-9232.branch-trunk-win.jnigroups.2.patch, > HADOOP-9232.branch-trunk-win.jnigroups.3.patch, > HADOOP-9232.branch-trunk-win.jnigroups.patch, HADOOP-9232.patch > > > {{JniBasedUnixGroupsMapping}} calls native code which isn't implemented > properly for Windows, causing {{UnsatisfiedLinkError}}. The fallback logic > in {{JniBasedUnixGroupsMappingWithFallback}} works by checking if the native > code is loaded during startup. In this case, hadoop.dll is present and > loaded, but it doesn't contain the right code. There will be no attempt to > fallback to {{ShellBasedUnixGroupsMapping}}. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira