You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2020/11/20 17:48:00 UTC

[jira] [Created] (FLINK-20267) JaasModule prevents Flink from starting if working directory is a symbolic link

Till Rohrmann created FLINK-20267:
-------------------------------------

             Summary: JaasModule prevents Flink from starting if working directory is a symbolic link
                 Key: FLINK-20267
                 URL: https://issues.apache.org/jira/browse/FLINK-20267
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Coordination
    Affects Versions: 1.12.0
            Reporter: Till Rohrmann
             Fix For: 1.12.0


[~AHeise] reported that starting Flink on EMR fails with

{code}
java.lang.RuntimeException: unable to generate a JAAS configuration file
        at org.apache.flink.runtime.security.modules.JaasModule.generateDefaultConfigFile(JaasModule.java:170)
        at org.apache.flink.runtime.security.modules.JaasModule.install(JaasModule.java:94)
        at org.apache.flink.runtime.security.SecurityUtils.installModules(SecurityUtils.java:78)
        at org.apache.flink.runtime.security.SecurityUtils.install(SecurityUtils.java:59)
        at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1045)
Caused by: java.nio.file.FileAlreadyExistsException: /tmp
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
        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.flink.runtime.security.modules.JaasModule.generateDefaultConfigFile(JaasModule.java:162)
        ... 4 more
{code}

The problem is that on EMR {{/tmp}} is a symbolic link. Due to FLINK-19252 where we introduced the [creation of the working directory|https://github.com/apache/flink/blob/master/flink-runtime/src/main/java/org/apache/flink/runtime/security/modules/JaasModule.java#L162] in order to create the default Jaas config file, the start up process fails if the path for the working directory is not a directory (apparently {{Files.createDirectories}} cannot deal with symbolic links).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)