当前位置:   article > 正文

yarn启动后自动关闭,JPS查看有resourcemanager,无resourcemanager_start-yarn.sh jps查看后没有

start-yarn.sh jps查看后没有

yarn-site.xml配置文件如下:

  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <configuration>
  14. <!-- Site specific YARN configuration properties -->
  15. <property>
  16. <name>yarn.resourcemanager.hostname</name>
  17. <value>master</value>
  18. </property>
  19. <property>
  20. <name>yarn.nodemaneger.aux-services</name>
  21. <value>mapreduce_shuffle</value>
  22. </property>
  23. <property>
  24. <name>yarn.nodemanager.resource.cpu-vcores</name>
  25. <value>1</value>
  26. </property>
  27. <property>
  28. <name>yarn.nodemanager.resource.memory-mb</name>
  29. <value>256</value>
  30. </property>
  31. </configuration>
  32. ~

出错原因,yarn.nodemanager.resource.memory-mb的value不能小于1G,即(1024)。自己电脑内存小,刚开始到每个虚拟机的内存小,改为1024后就能通过start-yarn.sh命令正常启动yarn(需要使用scp yarn-site.xml slave3:$PWD命令复制到nodemanager节点)。

正常启动后的节点详情

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/501858
推荐阅读
相关标签
  

闽ICP备14008679号