flink 集群启动错误 [ERROR] 无法正确获取 JVM 参数 [英] flink cluster startup error [ERROR] Could not get JVM parameters properly
问题描述
$ bin/start-cluster.sh
Starting cluster.
[INFO] 1 instance(s) of standalonesession are already running on centos1.
Starting standalonesession daemon on host centos1.
[ERROR] Could not get JVM parameters properly.
[ERROR] Could not get JVM parameters properly.
我已经拿到了所有主从的$JAVA_HOME
I have got the $JAVA_HOME in all the master and slaves
]$ echo $JAVA_HOME
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/
以下是配置文件设置.
jobmanager.rpc.address: 10.0.2.4
# The RPC port where the JobManager is reachable.
jobmanager.rpc.port: 6123
taskmanager.numberOfTaskSlots: 5
parallelism.default: 2
母版中的 JPS:
]# jps
30944 QuorumPeerMain
9600 StandaloneSessionClusterEntrypoint
31640 ConsoleProducer
32889 Jps
31278 Kafka
在奴隶中我看不到 jps 命令输出:
in slave I am not able to see jps command output:
# jps
-bash: jps: command not found
也在任务管理器下我看不到任何条目.http://10.xxx:8081/#/task-manager
Also under the task-manager i don't see any entries. http://10.x.x.x:8081/#/task-manager
推荐答案
您是否配置了 conf/slaves 文件?参见 https://ci.apache.org/projects/flink/flink-docs-stable/ops/deployment/cluster_setup.html#configuring-flink.
Did you configure the conf/slaves file? See https://ci.apache.org/projects/flink/flink-docs-stable/ops/deployment/cluster_setup.html#configuring-flink.
jps 的问题看起来不像 Flink 的问题.slave上真的有JDK吗?
The problem with jps doesn't look like a problem with Flink. Is there really a JDK on the slave?
这篇关于flink 集群启动错误 [ERROR] 无法正确获取 JVM 参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!