[
https://issues.apache.org/jira/browse/HADOOP-19488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17937623#comment-17937623
]
ASF GitHub Bot commented on HADOOP-19488:
-----------------------------------------
sjlee opened a new pull request, #7530:
URL: https://github.com/apache/hadoop/pull/7530
Ported the fix for HADOOP-19488 to branch-3.4.
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
Backported the fix for HADOOP-19488 to branch-3.4.
### How was this patch tested?
Builds cleanly and TestRunJar runs successfully.
### For code changes:
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
> 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]