flink cluster startup error [ERROR] Could not get JVM parameters properly

。_饼干妹妹 提交于 2020-03-25 16:01:26

问题


$ 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.

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/

Below are the config file settings.

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 in master:

]# jps
30944 QuorumPeerMain
9600 StandaloneSessionClusterEntrypoint
31640 ConsoleProducer
32889 Jps
31278 Kafka

in slave I am not able to see jps command output:

# jps
-bash: jps: command not found

Also under the task-manager i don't see any entries. http://10.x.x.x:8081/#/task-manager


回答1:


Did you configure the conf/slaves file? See https://ci.apache.org/projects/flink/flink-docs-stable/ops/deployment/cluster_setup.html#configuring-flink.

The problem with jps doesn't look like a problem with Flink. Is there really a JDK on the slave?



来源:https://stackoverflow.com/questions/60615984/flink-cluster-startup-error-error-could-not-get-jvm-parameters-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!