[
https://issues.apache.org/jira/browse/HADOOP-19488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17937624#comment-17937624
]
Sangjin Lee commented on HADOOP-19488:
--------------------------------------
I posted the backport patch.
> RunJar throws UnsupportedOperationException on Windows
> ------------------------------------------------------
>
> Key: HADOOP-19488
> URL: https://issues.apache.org/jira/browse/HADOOP-19488
> Project: Hadoop Common
> Issue Type: Bug
> Components: hadoop-common
> Affects Versions: 3.4.1
> Environment: Windows
> Reporter: Sangjin Lee
> Assignee: Sangjin Lee
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.0
>
> Attachments: windows-successful-test-run.txt,
> windows-test-failures-run.txt
>
>
> On Windows, run {{hadoop jar}} (with any jar). One immediately gets the
> following exception:
> {code}
> Exception in thread "main" java.lang.UnsupportedOperationException:
> 'posix:permissions' not supported as initial attribute
> at
> java.base/sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358)
> at
> java.base/sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:497)
> at java.base/java.nio.file.Files.createDirectory(Files.java:690)
> at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135)
> at
> java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172)
> at java.base/java.nio.file.Files.createTempDirectory(Files.java:966)
> at org.apache.hadoop.util.RunJar.run(RunJar.java:296)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:245)
> {code}
> I'm running Windows 11 with OpenJDK 11.0.26.
> This bug does not exist in 3.3.6.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]