gpt4 book ai didi

akka - Apache Spark - 工作人员的连接被拒绝

转载 作者:行者123 更新时间:2023-12-03 07:11:58 26 4
gpt4 key购买 nike

嗨,我是 apache Spark 的新手,我正在尝试学习它

在创建新的独立集群时,我遇到了此错误。

我启动了我的 master,它在端口 7077 上处于事件状态,我可以在 ui 中看到它(端口 8080)

使用命令启动服务器时

 ./bin/spark-class org.apache.spark.deploy.worker.Worker spark://192.168.0.56:7077

我遇到连接拒绝错误

14/07/22 13:18:30 ERROR EndpointWriter: AssociationError [akka.tcp://sparkWorker@node-        physical:55124] -> [akka.tcp://sparkMaster@192.168.0.56:7077]: Error [Association failed     with [akka.tcp://sparkMaster@192.168.0.56:7077]] [
akka.remote.EndpointAssociationException: Association failed with [akka.tcp://sparkMaster@192.168.0.56:7077]
Caused by: akka.remote.transport.netty.NettyTransport$$anonfun$associate$1$$anon$2: Connection refused: /192.168.0.56:7077

请帮助我解决我在这里困扰了很长时间的错误。

我希望信息足够。请帮忙

最佳答案

就我而言,我访问了/etc/hosts 并:

  • 删除了 127.0.1.1 行并且成功了。
  • 写入了“MASTER_IP MACHINE_NAME”

关于akka - Apache Spark - 工作人员的连接被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24881757/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com