查看配置文件是否正确:hdfs-site.xml文件
<property>
<name>dfs.http.address</name>
<value>hadoop-yarn1.bc.com:50070</value>
</property>
mapred-site.xml文件
<property>
<name>mapreduce.jobhistory.webapp.address</name>
<value>hadoop-yarn1.bc.com:19888</value>
</property>
yarn-site.xml文件
<property>
<name>yarn.resourcemanager.webapp.address</name>
<value>hadoop-yarn1.bc.com:8088</value>
</property>
如果正确的话看windows下是否配置了hosts文件
C:\Windows\System32\drivers\etc