简体   繁体   English

Apache Flink:独立集群尝试使用用户名“flink”进行连接

[英]Apache Flink: Standalone Cluster tries to connect with username “flink”

For my master thesis I'm trying to set up a flink standalone cluster on 4 nodes.对于我的硕士论文,我试图在 4 个节点上设置一个 flink 独立集群。 I've worked along the documentation which pretty neatly explains how to set it up.我已经完成了文档,它非常巧妙地解释了如何设置它。 But when I start the cluster there is a warning and when I'm trying to run a job, there is an error with the same message:但是当我启动集群时有一个警告,当我尝试运行一个作业时,有一个错误和相同的消息:

akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka.tcp://flink@MYHOSTNAME:6123/user/jobmanager#-818199108]] after [10000 ms]. Sender[null] sent message of type "org.apache.flink.runtime.messages.JobManagerMessages$LeaderSessionMessage"

Increasing the timeout didn't work.增加超时不起作用。 When I open the taskmanagers in web UI, all of them have the following pattern:当我在 Web UI 中打开任务管理器时,它们都具有以下模式:

akka.tcp://flink@MYHOSTNAME:33779/user/taskmanager

Does anyone have an idea how to solve this to get the cluster working?有没有人知道如何解决这个问题以使集群正常工作? Thanks in advance!提前致谢!

One last thing: There isn't a user "flink" on the cluster and won't be created.最后一件事:集群上没有用户“flink”并且不会被创建。 So any advices without telling me I should create that user would be very appreciated!因此,任何不告诉我我应该创建该用户的建议将不胜感激! Thanks!谢谢!

Not sure if it is still relevant, but the way i did it (using Flink 1.5.3):不确定它是否仍然相关,但我是这样做的(使用 Flink 1.5.3):

I setup a HA standalone cluster with 3 master (JobManager) and 20 slaves (TaskManager) in the following way.我通过以下方式设置了一个具有 3 个主节点 (JobManager) 和 20 个从节点 (TaskManager) 的 HA 独立集群。

  1. Define your conf/masters file (hostname:8081 per line)定义您的 conf/masters 文件(主机名:每行 8081)
  2. Define your conf/slaves file (each taskmanager hostname per line)定义您的 conf/slaves 文件(每行每个任务管理器主机名)
  3. Define in the flink-conf.yaml on each master machine its own jobmanager.rpc.address hostname在每台主机上的 flink-conf.yaml 中定义自己的jobmanager.rpc.address主机名
  4. Define in the flink-conf.yaml on each slave machine the jobmanager.rpc.address as localhost在每台从机上的 flink-conf.yaml 中定义jobmanager.rpc.address为 localhost
  5. Once every is set, execute the bin/start-cluster.sh on any of the master host.设置完 every 后,在任何 master 主机上执行 bin/start-cluster.sh。

If you need HA then you need to setup a zookeeper quorum and modify the corresponding properties regarding HA (high-availability, high-availability.storageDir, high-availability.zookeeper.quorum)如果您需要 HA,则需要设置 Zookeeper 仲裁并修改有关 HA 的相应属性(高可用性、高可用性.storageDir、高可用性.zookeeper.quorum)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM