spark-shell启动报错:Yarn application has already ended! It might have been killed or unable to launch ap
来源:互联网 发布:金马甲网络交易平台 编辑:程序博客网 时间:2024/05/22 13:29
我的Hadoop版本:2.7.3, Spark版本:2.1.2,4台虚拟机,master,data1,data2,data3的伪分布式。
参考的方法 http://www.cnblogs.com/tibit/p/7337045.html
http://blog.csdn.net/chengyuqiang/article/details/69934382
spark-env.sh中加上配置
export HADOOP_CONF_DIR=/usr/local/hadoop/etc/hadoop
export YARN_CONF_DIR=/usr/local/hadoop/etc/hadoop
yarn-site.xml的中加上
<property>
<name>yarn.nodemanager.pmem-check-enabled</name>
<value>false</value>
</property>
<name>yarn.nodemanager.pmem-check-enabled</name>
<value>false</value>
</property>
<property>
<name>yarn.nodemanager.vmem-check-enabled</name>
<value>false</value>
</property>
<name>yarn.nodemanager.vmem-check-enabled</name>
<value>false</value>
</property>
解释
yarn.nodemanager.vmem-pmem-ratio
任务每使用1MB物理内存,最多可使用虚拟内存量,默认是2.1。
yarn.nodemanager.pmem-check-enabled
是否启动一个线程检查每个任务正使用的物理内存量,如果任务超出分配值,则直接将其杀掉,默认是true。
yarn.nodemanager.vmem-check-enabled
是否启动一个线程检查每个任务正使用的虚拟内存量,如果任务超出分配值,则直接将其杀掉,默认是true。
用了上述方法,重启hadoop, spark 还是不对,
最后发现我的测试集群上三个节点的文件yarn-site.xml文件不一致,配置成一样的就成功了,太傻缺了。。。。
spark-shell --master=yarn --deploy-mode=client
阅读全文
0 0
- spark-shell启动报错:Yarn application has already ended! It might have been killed or unable to launch ap
- Yarn application has already ended! It might have been killed or unable to launch application maste
- spark-shell on yarn 出错(arn application already ended,might be killed or not able to launch applic)解决
- spark streaming restart error: org.apache.spark.SparkException: Yarn application has already ended!
- 启动项目报错this web application instance has been stopped already.
- [Android Debug]Gradle build daemon disappeared unexpectedly (it may have been stopped, killed or may
- spark-shell在yarn client模式下启动报错
- 使用tomcat manage发布项目报错Illegal access: this web application instance has been stopped already
- Android报错 Attempted to access a cursor after it has been closed.的解决方法
- Android选择图片报错Attempted to access a cursor after it has been closed.
- tomcat服务器,老是报this web application instance has been stopped already 错误
- 修改Android framework源码报错(You have tried to change the API from what has been previously approved)
- 一个Toast报错问题 java.lang.IllegalStateException: View has already been added to the window manager.
- React Native报错:Application XXX has not been registered.
- Jedis Object has already been returned to this pool or is invalid
- The Webpage might be temporarily down or it may have moved permanently to a new web address解决
- Unable to install "项目名" The certificate used to sign "项目名" has either expired or has been
- Unable to set the activation state to true for the application weblogic启动JNDI 报错
- mysql数据清洗备忘
- HADOOP源码编译
- AttributeError: 'module' object has no attribute '_base' 可行解决办法
- 查找之Hash查找
- 关于使用ant-design设计可动态添加FormItem的过程中遇到的问题记录。
- spark-shell启动报错:Yarn application has already ended! It might have been killed or unable to launch ap
- 利用栈实现算术表达式的求值
- Caffe中HDF5Data例子
- Springmvc静态资源配置
- hdu 6228 Tree
- 机房收费系统之结账
- 已知满二叉树的先序遍历,求其后序遍历
- matlab——深度学习NN
- centos6.5安装solr集群版