You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Giovanni Matteo Fumarola (JIRA)" <ji...@apache.org> on 2018/05/24 20:23:00 UTC

[jira] [Updated] (YARN-8359) Disable containermanager.linux.runtime.TEST to run on Windows

     [ https://issues.apache.org/jira/browse/YARN-8359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Giovanni Matteo Fumarola updated YARN-8359:
-------------------------------------------
    Description: 
Some of the tests in containermanager.linux.runtime failed in Windows due to 

*Error Message*
 *'posix:permissions' not supported as initial attribute*

Stacktrace
 java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute at sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358) at sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:492) at java.nio.file.Files.createDirectory(Files.java:674) at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) at java.nio.file.Files.createDirectories(Files.java:727) at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.JavaSandboxLinuxContainerRuntime.initializePolicyDir(JavaSandboxLinuxContainerRuntime.java:183) at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.JavaSandboxLinuxContainerRuntime.prepareContainer(JavaSandboxLinuxContainerRuntime.java:236) at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestJavaSandboxLinuxContainerRuntime.testDeniedWhitelistGroup(TestJavaSandboxLinuxContainerRuntime.java:367)

We use PosixFilePermission which can be used only with operating systems which are compatibile with POSIX:

A file attribute view that provides a view of the file attributes commonly associated with files on file systems used by operating systems that implement the Portable Operating System Interface (POSIX) family of standards.Operating systems that implement the POSIX family of standards commonly use file systems that have a file owner, group-owner, and related access permissions. Windows unfortunatelly doesn't support POSIX file systems so this is why your code doesn't work.

  was:
Some of the tests in containermanager.linux.runtime failed in Windows due to 

Error Message
'posix:permissions' not supported as initial attribute

Stacktrace
java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute at sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358) at sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:492) at java.nio.file.Files.createDirectory(Files.java:674) at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) at java.nio.file.Files.createDirectories(Files.java:727) at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.JavaSandboxLinuxContainerRuntime.initializePolicyDir(JavaSandboxLinuxContainerRuntime.java:183) at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.JavaSandboxLinuxContainerRuntime.prepareContainer(JavaSandboxLinuxContainerRuntime.java:236) at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestJavaSandboxLinuxContainerRuntime.testDeniedWhitelistGroup(TestJavaSandboxLinuxContainerRuntime.java:367)

We use PosixFilePermission which can be used only with operating systems which are compatibile with POSIX:

A file attribute view that provides a view of the file attributes commonly associated with files on file systems used by operating systems that implement the Portable Operating System Interface (POSIX) family of standards.Operating systems that implement the POSIX family of standards commonly use file systems that have a file owner, group-owner, and related access permissions. Windows unfortunatelly doesn't support POSIX file systems so this is why your code doesn't work.


> Disable containermanager.linux.runtime.TEST to run on Windows
> -------------------------------------------------------------
>
>                 Key: YARN-8359
>                 URL: https://issues.apache.org/jira/browse/YARN-8359
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Giovanni Matteo Fumarola
>            Priority: Major
>
> Some of the tests in containermanager.linux.runtime failed in Windows due to 
> *Error Message*
>  *'posix:permissions' not supported as initial attribute*
> Stacktrace
>  java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute at sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358) at sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:492) at java.nio.file.Files.createDirectory(Files.java:674) at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) at java.nio.file.Files.createDirectories(Files.java:727) at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.JavaSandboxLinuxContainerRuntime.initializePolicyDir(JavaSandboxLinuxContainerRuntime.java:183) at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.JavaSandboxLinuxContainerRuntime.prepareContainer(JavaSandboxLinuxContainerRuntime.java:236) at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestJavaSandboxLinuxContainerRuntime.testDeniedWhitelistGroup(TestJavaSandboxLinuxContainerRuntime.java:367)
> We use PosixFilePermission which can be used only with operating systems which are compatibile with POSIX:
> A file attribute view that provides a view of the file attributes commonly associated with files on file systems used by operating systems that implement the Portable Operating System Interface (POSIX) family of standards.Operating systems that implement the POSIX family of standards commonly use file systems that have a file owner, group-owner, and related access permissions. Windows unfortunatelly doesn't support POSIX file systems so this is why your code doesn't work.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org