各位大神,我现在自己动手编写了一个scala程序,想放在放在linux服务器上运行,但是出现了很奇怪的问题:我的运行命令是这样的(在jar包所在目录下运行):java -classpath "./spark-test.jar:./spark-assembly-1.1.0-cdh5.2.0-hadoop2.5.0-cdh5.2.0.jar:./hadoop-hdfs-2.5.0-cdh5.2.0.jar:." sparktest.Test其中spark-test.jar是我自己编写的scala程序,后面的两个jar包是我在这个服务器上找到的jar包当我在程序里面把SparkContext设置为local的时候运行是没有问题的但是当我想把SparkContext换成集群的spark://shzx002:18080的时候就会出现错误:14/12/04 17:17:41 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory
14/12/04 17:17:42 INFO AppClient$ClientActor: Connecting to master spark://shzx002:18080...
14/12/04 17:17:42 WARN AppClient$ClientActor: Could not connect to akka.tcp://sparkMaster@shzx002:18080: akka.remote.EndpointAssociationException: Association failed with [akka.tcp://sparkMaster@shzx002:18080]
14/12/04 17:17:42 WARN AppClient$ClientActor: Could not connect to akka.tcp://sparkMaster@shzx002:18080: akka.remote.EndpointAssociationException: Association failed with [akka.tcp://sparkMaster@shzx002:18080]
14/12/04 17:17:42 WARN AppClient$ClientActor: Could not connect to akka.tcp://sparkMaster@shzx002:18080: akka.remote.EndpointAssociationException: Association failed with [akka.tcp://sparkMaster@shzx002:18080]
14/12/04 17:17:42 WARN AppClient$ClientActor: Could not connect to akka.tcp://sparkMaster@shzx002:18080: akka.remote.EndpointAssociationException: Association failed with [akka.tcp://sparkMaster@shzx002:18080]这个集群不是我自己配置的,再加上我接触不久,所以不是很懂……集群的地址应该是没什么问题的我不知道是什么原因造成的,如何才能解决呢?在网上查了很多的东西,但是都没用……先谢过各位了
14/12/04 17:17:42 INFO AppClient$ClientActor: Connecting to master spark://shzx002:18080...
14/12/04 17:17:42 WARN AppClient$ClientActor: Could not connect to akka.tcp://sparkMaster@shzx002:18080: akka.remote.EndpointAssociationException: Association failed with [akka.tcp://sparkMaster@shzx002:18080]
14/12/04 17:17:42 WARN AppClient$ClientActor: Could not connect to akka.tcp://sparkMaster@shzx002:18080: akka.remote.EndpointAssociationException: Association failed with [akka.tcp://sparkMaster@shzx002:18080]
14/12/04 17:17:42 WARN AppClient$ClientActor: Could not connect to akka.tcp://sparkMaster@shzx002:18080: akka.remote.EndpointAssociationException: Association failed with [akka.tcp://sparkMaster@shzx002:18080]
14/12/04 17:17:42 WARN AppClient$ClientActor: Could not connect to akka.tcp://sparkMaster@shzx002:18080: akka.remote.EndpointAssociationException: Association failed with [akka.tcp://sparkMaster@shzx002:18080]这个集群不是我自己配置的,再加上我接触不久,所以不是很懂……集群的地址应该是没什么问题的我不知道是什么原因造成的,如何才能解决呢?在网上查了很多的东西,但是都没用……先谢过各位了
解决方案 »
- 求助:镜像在openstack上启动蓝屏了
- nova command:Unauthorized (HTTP 401)
- 想搞个sifu,出于预算考虑,想自己DIY,预估3K左右在线人数,这样的配置OK不?
- nginx+apache伪静态问题,跪求解决方案...
- cloud foundry的router用法问题
- Spark集群部署时SSH无密码登录问题
- cloudera manager 不能选择主机,请问这是为什么
- Spark on Yarn 某个executor的task执行很慢
- spark RDD中的元组如何按照指定格式保存到HDFS上?
- 求救,安装vcsa6.0卡在“正在认证”
- 美国上传数据到阿里云服务器速度慢
- docker 运行container时使用--net=host,如何连到container
应该是你uri不对。检查配置