Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Use JNI-based FileStatus implementation from io.nativeio.NativeIO.POSIX#getFstat instead of shell-based implementation from RawLocalFileSystem in checkLocalDir.
As discussed in YARN-3491, shell-based implementation getPermission runs shell command "ls -ld" to get permission, which take 4 or 5 ms(very slow).
We should switch to io.nativeio.NativeIO.POSIX#getFstat as implementation in RawLocalFileSystem to get rid of shell-based implementation for FileStatus.
Attachments
Issue Links
- depends upon
-
HADOOP-11935 Provide optional native implementation of stat syscall.
- Open
- duplicates
-
HADOOP-11935 Provide optional native implementation of stat syscall.
- Open
- relates to
-
YARN-3491 PublicLocalizer#addResource is too slow.
- Resolved