[flink]任务管理器初始化失败 [英] [flink]Task manager initialization failed

查看:44
本文介绍了[flink]任务管理器初始化失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 flink 的新手.我正在尝试在本地 PC(Windows)上运行 flink 示例.

I am new to flink. I am trying to run the flink example on my local PC(windows).

但是,在我运行 start-cluster.bat 后,我​​登录到仪表板,它显示任务管理器为 0.

However, after I run the start-cluster.bat, I login to the dashboard, it shows the task manager is 0.

我检查了日志,似乎初始化失败:

I checked the log and seems it fails to initialize:

2020-02-21 23:03:14,202 ERROR org.apache.flink.runtime.taskexecutor.TaskManagerRunner       - TaskManager initialization failed.
org.apache.flink.configuration.IllegalConfigurationException: Failed to create TaskExecutorResourceSpec
at org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils.resourceSpec.FromConfig(TaskExecutorResourceUtils.java:72)
at org.apache.flink.runtime.taskexecutor.TaskManagerRunner.startTaskManager(TaskManagerRunner.java:356)
at org.apache.flink.runtime.taskexecutor.TaskManagerRunner.<init>(TaskManagerRunner.java:152)
at org.apache.flink.runtime.taskexecutor.TaskManagerRunner.runTaskManager(TaskManagerRunner.java:308)
at org.apache.flink.runtime.taskexecutor.TaskManagerRunner.lambda$runTaskManagerSecurely$2(TaskManagerRunner.java:322)
at org.apache.flink.runtime.security.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:30)
at org.apache.flink.runtime.taskexecutor.TaskManagerRunner.runTaskManagerSecurely(TaskManagerRunner.java:321)
at org.apache.flink.runtime.taskexecutor.TaskManagerRunner.main(TaskManagerRunner.java:287)
Caused by: org.apache.flink.configuration.IllegalConfigurationException: The required configuration option Key: 'taskmanager.cpu.cores' , default: null (fallback keys: []) is not set
at org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils.checkConfigOptionIsSet(TaskExecutorResourceUtils.java:90)
at org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils.lambda$checkTaskExecutorResourceConfigSet$0(TaskExecutorResourceUtils.java:84)
at java.util.Arrays$ArrayList.forEach(Arrays.java:3880)
at org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils.checkTaskExecutorResourceConfigSet(TaskExecutorResourceUtils.java:84)
at org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils.resourceSpecFromConfig(TaskExecutorResourceUtils.java:70)
... 7 more
2020-02-21 23:03:14,217 INFO  org.apache.flink.runtime.blob.TransientBlobCache              - Shutting down BLOB cache

基本上,似乎未设置必需选项taskmanager.cpu.cores".但是,我在 flink-conf.yaml 和文档中找不到这个属性(https://ci.apache.org/projects/flink/flink-docs-release-1.10/ops/config.html).

Basically, it looks like a required option 'taskmanager.cpu.cores' is not set. However, I can't find this property in flink-conf.yaml and in the document(https://ci.apache.org/projects/flink/flink-docs-release-1.10/ops/config.html) either.

我使用的是 flink 1.10.0.任何帮助将不胜感激!

I am using flink 1.10.0. Any help would be highly appreciated!

推荐答案

该配置选项仅供内部使用——不应由用户配置,这就是它没有记录的原因.

That configuration option is intended for internal use only -- it shouldn't be user configured, which is why it isn't documented.

由于 Flink 1.10 中引入的错误,Windows start-cluster.bat 失败.请参阅 https://jira.apache.org/jira/browse/FLINK-15925.

The windows start-cluster.bat is failing because of a bug introduced in Flink 1.10. See https://jira.apache.org/jira/browse/FLINK-15925.

一种解决方法是改用 bash 脚本 start-cluster.sh.

One workaround is to use the bash script, start-cluster.sh, instead.

另请参阅此邮件列表主题:norelrlow"https://lists.apache.org/thread.html/r7693d0c06ac5ced9a34597c662bcf37b34ef8e799c32cc0edee373b2%40%3Cdev.flink.apache.org%3E

See also this mailing list thread: https://lists.apache.org/thread.html/r7693d0c06ac5ced9a34597c662bcf37b34ef8e799c32cc0edee373b2%40%3Cdev.flink.apache.org%3E

这篇关于[flink]任务管理器初始化失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆