[ 
https://issues.apache.org/jira/browse/HADOOP-11935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14533079#comment-14533079
 ] 

Chris Nauroth commented on HADOOP-11935:
----------------------------------------

[~gopalv], thanks for the pointer to getting lstat-like behavior through 
java.nio.file.

The last time I tested, the java.nio.file classes were incapable of returning a 
POSIX permissions view on Windows.  It would throw an unchecked exception.  I 
suspect we'll still need a native code path for Windows, where we can call 
through to our existing libwinutils implementation of the mapping from NTFS 
ACLs to POSIX permissions.

Maybe we can get away without a native code path for Linux though.  Thanks for 
the suggestion.

> Provide optional native implementation of stat syscall.
> -------------------------------------------------------
>
>                 Key: HADOOP-11935
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11935
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs, native
>            Reporter: Chris Nauroth
>
> Currently, 
> {{RawLocalFileSystem.DeprecatedRawLocalFileStatus#loadPermissionInfo}} is 
> implemented as forking an {{ls}} command and parsing the output.  This was 
> observed to be a bottleneck in YARN-3491.  This issue proposes an optional 
> native implementation of a {{stat}} syscall through JNI.  We would maintain 
> the existing code as a fallback for systems where the native code is not 
> available.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to