[
https://issues.apache.org/jira/browse/HADOOP-9232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13589820#comment-13589820
]
Chuan Liu commented on HADOOP-9232:
-----------------------------------
+1
I don't have too strong an objection since it's just a naming issue.
In my original thinking, I thought to rename JniBasedUnixGroupsMapping to
JniBasedGroupsMapping, or have a new class, e.g. JniBasedWinGroupsMapping,
representing Windows implementation.
I agree with platform independent API principle; but I think we can also create
platform specific code when necessary.
In this case, JniBased[Platform]Mapping is already designed to suit one
platform in the beginning as its name suggested. In my opinion if we want to
extend the support for Windows, the next logical thing is to provide a new
GroupMappingServiceProvider for Windows, e.g. JniBasedWinGroupsMapping; or we
can create a new platform independent GroupMappingServiceProvider for both
Windows and Unix, e.g. JniBasedGroupsMapping.
> 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
> Attachments: HADOOP-9232.branch-trunk-win.jnigroups.2.patch,
> HADOOP-9232.branch-trunk-win.jnigroups.3.patch,
> HADOOP-9232.branch-trunk-win.jnigroups.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