• Flink unable to generate a JAAS configuration file


    报错

    
    2021-03-26 12:18:04,517 INFO  org.apache.flink.runtime.entrypoint.ClusterEntrypoint        [] - Shutting YarnSessionClusterEntrypoint down with application status FAILED. Diagnostics java.lang.RuntimeException: unable to generate a JAAS configuration file
            at org.apache.flink.runtime.security.modules.JaasModule.generateDefaultConfigFile(JaasModule.java:183)
            at org.apache.flink.runtime.security.modules.JaasModule.install(JaasModule.java:92)
            at org.apache.flink.runtime.security.SecurityUtils.installModules(SecurityUtils.java:76)
            at org.apache.flink.runtime.security.SecurityUtils.install(SecurityUtils.java:57)
            at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.installSecurityContext(ClusterEntrypoint.java:215)
            at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.startCluster(ClusterEntrypoint.java:173)
            at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.runClusterEntrypoint(ClusterEntrypoint.java:569)
            at org.apache.flink.yarn.entrypoint.YarnSessionClusterEntrypoint.main(YarnSessionClusterEntrypoint.java:90)
    Caused by: java.nio.file.AccessDeniedException: /data/flink/tmp/jaas-3783078189264913575.conf
            at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
            at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
            at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
            at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
            at java.nio.file.Files.newByteChannel(Files.java:361)
            at java.nio.file.Files.createFile(Files.java:632)
            at java.nio.file.TempFileHelper.create(TempFileHelper.java:138)
            at java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:161)
            at java.nio.file.Files.createTempFile(Files.java:852)
            at org.apache.flink.runtime.security.modules.JaasModule.generateDefaultConfigFile(JaasModule.java:173)
            ... 7 more
    .
    2021-03-26 12:18:04,530 ERROR org.apache.flink.runtime.entrypoint.ClusterEntrypoint        [] - Could not start cluster entrypoint YarnSessionClusterEntrypoint.
    org.apache.flink.runtime.entrypoint.ClusterEntrypointException: Failed to initialize the cluster entrypoint YarnSessionClusterEntrypoint.
            at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.startCluster(ClusterEntrypoint.java:200) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.runClusterEntrypoint(ClusterEntrypoint.java:569) [flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.yarn.entrypoint.YarnSessionClusterEntrypoint.main(YarnSessionClusterEntrypoint.java:90) [flink-dist_2.11-1.12.2.jar:1.12.2]
    Caused by: java.lang.RuntimeException: unable to generate a JAAS configuration file
            at org.apache.flink.runtime.security.modules.JaasModule.generateDefaultConfigFile(JaasModule.java:183) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.security.modules.JaasModule.install(JaasModule.java:92) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.security.SecurityUtils.installModules(SecurityUtils.java:76) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.security.SecurityUtils.install(SecurityUtils.java:57) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.installSecurityContext(ClusterEntrypoint.java:215) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.startCluster(ClusterEntrypoint.java:173) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            ... 2 more
    Caused by: java.nio.file.AccessDeniedException: /data/flink/tmp/jaas-3783078189264913575.conf
            at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[?:1.8.0_271]
            at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_271]
            at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_271]
            at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) ~[?:1.8.0_271]
            at java.nio.file.Files.newByteChannel(Files.java:361) ~[?:1.8.0_271]
            at java.nio.file.Files.createFile(Files.java:632) ~[?:1.8.0_271]
            at java.nio.file.TempFileHelper.create(TempFileHelper.java:138) ~[?:1.8.0_271]
            at java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:161) ~[?:1.8.0_271]
            at java.nio.file.Files.createTempFile(Files.java:852) ~[?:1.8.0_271]
            at org.apache.flink.runtime.security.modules.JaasModule.generateDefaultConfigFile(JaasModule.java:173) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.security.modules.JaasModule.install(JaasModule.java:92) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.security.SecurityUtils.installModules(SecurityUtils.java:76) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.security.SecurityUtils.install(SecurityUtils.java:57) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.installSecurityContext(ClusterEntrypoint.java:215) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.startCluster(ClusterEntrypoint.java:173) ~[flink-dist_2.11-1.12.2.jar:1.12.2]
            ... 2 more
    

    原因:
    /data/flink/tmp 权限不足 , 改为 777 , chmod 777 /data/flink/tmp

  • 相关阅读:
    MySQL 数据库 查询语句的基本操作,单表查询,多表查询
    MySQL数据库 外键,级联, 修改表的操作
    MySQL数据库 存储引擎,创建表完整的语法,字段类型,约束条件
    MySQL数据库 介绍,安装,基本操作
    python GIL全局解释器锁,多线程多进程效率比较,进程池,协程,TCP服务端实现协程
    子进程回收资源两种方式,僵尸进程与孤儿进程,守护进程,进程间数据隔离,进程互斥锁,队列,IPC机制,线程,守护线程,线程local作用,线程池,回调函数add_done_callback,TCP服务端实现并发
    并发编程 操作系统发展史,多道技术,进程,同步与异步,阻塞与非阻塞,进程的三种状态,创建进程的两种方式
    网络编程 UDP协议 TCP局域网客户端与服务端上传下载电影示例
    网络编程 TCP协议:三次握手,四次挥手,反馈机制 socket套接字通信 粘包问题与解决方法
    k8s 常用命令
  • 原文地址:https://www.cnblogs.com/weijiqian/p/14581859.html
Copyright © 2020-2023  润新知