Spark错误:WARN TaskSchedulerImpl: Initial job has not accepted any resources;
来源:互联网 发布:网络电影需要什么手续 编辑:程序博客网 时间:2024/06/05 19:18
在windows环境下使用Intellij idea远程执行spark程序时,遇到了以下问题:
Intellij控制台输出警告:WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory
此时程序会一直loading,running,loading,running…的循环,并持续出现上面的警告。
出现这个错误可能有几种原因:
- host配置不正确
- worker内存不足
- 相关端口号被占用
针对第二种原因,通过修改配置文件中worker和master使用内存资源的参数即可解决。
针对第三种原因,可以查看占用端口的程序并将其关闭,或者重启spark集群。
然而通过经过排查发现我遇到的问题并不是以上两个原因引起的,于是在web控制台查看具体任务相关的executor的stderr,发现有Name or service not known错误。原因是本机使用了windows默认的名字(一个WINDOWS-XXXXX类似格式的名字),spark worker节点不能识别提交任务的windows节点,因而不能进行交互。而通常提交完任务后提交任务节点上会起一个进程,展示任务进度,默认端口为4044,工作节点会反馈进度给该该端口,所以如果主机名或者IP在hosts中配置不正确,就会报上面的错误。
解决方法:
1. 修改本机hosts文件,在修改第一行,添加自己的hostName,如:
127.0.0.1 zwx-host localhsot
2.在spark集群的所有节点的hosts中添加本地提交任务的windows节点的ip和hostname,如:
10.0.1.76 zwx-host
- Spark错误:WARN TaskSchedulerImpl: Initial job has not accepted any resources;
- Spark执行样例报警告:WARN scheduler.TaskSchedulerImpl: Initial job has not accepted any resources
- WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure
- WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster uito ensure
- Spark WARN cluster.ClusterScheduler: Initial job has not accepted any resources;check your cluster
- Spark WARN cluster.ClusterScheduler: Initial job has not accepted any resources;check your cluster
- spark on yarn,Initial job has not accepted any resources
- initial job has not accepted any resources
- initial job has not accepted any resources的spark错误解决办法
- HiBench运行spark用例报Initial job has not accepted any resources错误
- Spark-sql执行部分语句是报错:WARN org.apache.spark.scheduler.TaskSchedulerImpl: Initial job has not accepted a
- spark WARNTaskSchedulerImpl:Initial job has not accepted any resources; check your cluster UI to
- spark-submit 报错 Initial job has not accepted any resources
- spark-submit 报错 Initial job has not accepted any resources
- spark-summit 中出现Initial job has not accepted any resources; check your cluster UI to ensure that wor
- 运行spark问题:Initial job has not accepted any resources; check your cluster UI to ensure that workers a
- Initial job has not accepted any resources;check your cluster All masters are unresponsive! Giving u
- Initial job has not accepted any resources; check your cluster UI to ensure that workers are registe
- Android Viewpager动态删除Fragment解析
- oracle函数返回结果集(动态查询Sql并定义游标)
- nc参数模板设置开发注意问题
- 双链表、链式栈、链式队列 及实现
- 服务的两种启动方式及实现调用服务中方法的测试程序
- Spark错误:WARN TaskSchedulerImpl: Initial job has not accepted any resources;
- 非匿名runable的用法
- redis went away 解决
- 二叉树 前序、中序、后序、层次遍历及非递归实现 查找、统计个数、比较、求深度的递归实现
- Android背景渐变色(shape,gradient)
- 深入理解Linux网络技术内幕——IPv4 报文的接收(转发与本地传递)
- 使用递归方法实现数字反转 C语言实现
- Java与C/C++网络通信时的数据转换
- SpringMVC工作原理