1.管理防火墙 service iptables stop 2.关闭selinux setenforce 0 3.关闭宿主机防火墙 4.添加yarn配置信息(yarn-site.xml) configuration property nameyarn.nodemanager.aux-services/name valuemapreduce_shuffle/value descripti
1.管理防火墙
service iptables stop
2.关闭selinux
setenforce 0
3.关闭宿主机防火墙
4.添加yarn配置信息(yarn-site.xml)
<configuration> <property> <name>yarn.nodemanager.aux-services</name> <value>mapreduce_shuffle</value> <description>NodeManager获取数据的方式是shuffle</description> </property> <property> <name>yarn.resourcemanager.hostname</name> <value>master</value> <description>指定YARN的老大(resourcemanager)的地址</description> </property></configuration>5.添加hdfs配置信息(hdfs-site.xml)
<property> <name>dfs.namenode.http-address</name> <value>master:50070</value> <description>hdfs web管理页面</description></property>netstat -ntlp
如果上述命令中,50070,8088端口中IP均为127.0.0.1或者0.0.0.0