eclipse远程提交scala到spark集群问题

2 篇文章 0 订阅
1 篇文章 0 订阅

程序代码查看链接
http://www.aboutyun.com/thread-8404-1-1.html

整合上面链接中的代码,提交计算hdfs上的文件中单词数量
问题日志:
16/03/29 16:50:59 INFO BlockManagerInfo: Added broadcast_1_piece0 in memory on 10.10.6.146:64376 (size: 2.3 KB, free: 1124.2 MB)
16/03/29 16:50:59 INFO SparkContext: Created broadcast 1 from broadcast at DAGScheduler.scala:1006
16/03/29 16:50:59 INFO DAGScheduler: Submitting 2 missing tasks from ShuffleMapStage 0 (MapPartitionsRDD[3] at map at ScalaWordCount.scala:69)
16/03/29 16:50:59 INFO TaskSchedulerImpl: Adding task set 0.0 with 2 tasks
16/03/29 16:51:14 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources
16/03/29 16:51:29 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources
16/03/29 16:51:44 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources
16/03/29 16:51:59 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources

问题解决:
在代码中加spark.executor.memory设置,具体大小根据集群内存划分

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值