Apache Spark-工人的连接被拒绝

use*_*024 7 akka apache-spark

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

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

我启动了主服务器,它在端口7077中处于活动状态,我可以在ui(端口8080)中看到它

使用命令启动服务器时

 ./bin/spark-class org.apache.spark.deploy.worker.Worker spark://192.168.0.56:7077
Run Code Online (Sandbox Code Playgroud)

我遇到连接被拒绝的错误

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
Run Code Online (Sandbox Code Playgroud)

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

我希望信息足够。请帮忙

tde*_*roc 5

就我而言,我去了/ etc / hosts并:

  • 删除了127.0.1.1的行,它起作用了。
  • 写了“ MASTER_IP MACHINE_NAME”


小智 5

尝试“ ./sbin/start-master -h”。当我将主机名指定为IP地址时,它可以工作。


Jor*_*uis 1

检查您的防火墙是否已关闭,因为它可能会通过暂时关闭防火墙来阻止工作连接:

$ sudo service iptables stop
Run Code Online (Sandbox Code Playgroud)

或永久:

$ sudo chkconfig iptables off
Run Code Online (Sandbox Code Playgroud)