Flink任务突然启动不了呢,怎么解决?
Job failed. Reason: org.apache.flink.util.FlinkException: Could not create the ha services from the instantiated HighAvailabilityServicesFactory org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory.
at org.apache.flink.runtime.highavailability.HighAvailabilityServicesUtils.createCustomHAServices(HighAvailabilityServicesUtils.java:299)
at org.apache.flink.runtime.highavailability.HighAvailabilityServicesUtils.createCustomHAServices(HighAvailabilityServicesUtils.java:285)
at org.apache.flink.runtime.highavailability.HighAvailabilityServicesUtils.createHighAvailabilityServices(HighAvailabilityServicesUtils.java:145)
at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.createHaServices(ClusterEntrypoint.java:442)
at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.initializeServices(ClusterEntrypoint.java:394)
at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.runCluster(ClusterEntrypoint.java:285)
at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.lambda$startCluster$1(ClusterEntrypoint.java:235)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1729)
at org.apache.flink.runtime.security.contexts.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.startCluster(ClusterEntrypoint.java:232)
at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.runClusterEntrypoint(ClusterEntrypoint.java:748)
at org.apache.flink.kubernetes.entrypoint.KubernetesJobGraphClusterEntrypoint.main(KubernetesJobGraphClusterEntrypoint.java:88)
Caused by: org.apache.flink.kubernetes.shaded.io.fabric8.kubernetes.client.KubernetesClientException: Operation: [list] for kind: [ConfigMap] with name: [null] in namespace: [n1702957488976am] failed.
at org.apache.flink.kubernetes.shaded.io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientExcept
Flink Conf配置:除了资源有调整 其他都还是默认的
Flink任务突然启动不了,可能是由于以下原因导致的:
针对这个错误信息,可以尝试以下解决方案:
n1702957488976am
的命名空间。null
的ConfigMap资源。如果不存在,请创建相应的ConfigMap资源;如果存在,请检查其内容是否正确。Flink作业在尝试创建时失败了。DispatcherResourceManagerComponent是Flink作业中负责调度和资源管理的组件,它的创建失败可能导致作业无法正常运行。
可能的原因:
第一、配置问题:可能是Flink作业的配置文件(如.yaml文件)中的参数设置不正确,导致DispatcherResourceManagerComponent无法正常创建。
第二、类路径问题:如果DispatcherResourceManagerComponent所需的类不在Flink作业的类路径中,也可能会导致创建失败。
第三、依赖问题:如果Flink作业依赖的其他库或组件出现问题,也可能影响DispatcherResourceManagerComponent的创建。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。