yarn啓動後自動關閉,JPS查看有resourcemanager,無resourcemanager

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

<?xml version="1.0"?>
<!--
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License. See accompanying LICENSE file.
-->
<configuration>

<!-- Site specific YARN configuration properties -->
<property>
<name>yarn.resourcemanager.hostname</name>
<value>master</value>
</property>

<property>
<name>yarn.nodemaneger.aux-services</name>
<value>mapreduce_shuffle</value>
</property>


<property>
<name>yarn.nodemanager.resource.cpu-vcores</name>
<value>1</value>
</property>

<property>
<name>yarn.nodemanager.resource.memory-mb</name>
<value>256</value>
</property>

</configuration>
~                 

出錯原因,yarn.nodemanager.resource.memory-mb的value不能小於1G,即(1024)。自己電腦內存小,剛開始到每個虛擬機的內存小,改爲1024後就能通過start-yarn.sh命令正常啓動yarn(需要使用scp yarn-site.xml slave3:$PWD命令複製到nodemanager節點)。

正常啓動後的節點詳情

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章