赞
踩
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节点)。
正常启动后的节点详情
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。