本文主要是介绍阿里云虚拟机外网访问yarn 8088 hdfs 50070,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.修改yarn-site.xml 中vlaue ip为0.0.0.0
slaves里仍然为主机名“zs”
hosts里面为内网ip
访问时为外网ip
<configuration><property><name>yarn.resourcemanager.hostname</name><value>zs</value></property><property><name>yarn.resourcemanager.address</name><value>0.0.0.0:18040</value></property><property><name>yarn.resourcemanager.scheduler.address</name><value>0.0.0.0:18030</value></property><property><name>yarn.resourcemanager.resource-tracker.address</name><value>0.0.0.0:18025</value></property><property><name>yarn.resourcemanager.admin.address</name><value>0.0.0.0:18141</value></property><property><name>yarn.resourcemanager.webapp.address</name><value>0.0.0.0:8088</value></property><property><name>yarn.nodemanager.aux-services</name><value>mapreduce_shuffle</value></property><property><name>yarn.nodemanager.auxservices.mapreduce.shuffle.class</name><value>org.apache.hadoop.mapred.ShuffleHandler</value></property><property><name>yarn.nodemanager.local-dirs</name><value>file:///home/zzh/data/nm</value></property><!-- 新增加的配置 --><property><name>yarn.log.server.url</name><value>http://zs:19888/jobhistory/logs/</value></property><property><name>yarn.log-aggregation-enable</name><value>true</value></property><property><name>yarn.web-proxy.address</name><value>0.0.0.0:20000</value></property><property><name>yarn.log-aggregation.retain-seconds</name><value>-1</value></property><property><name>yarn.nodemanager.remote-app-log-dir</name><value>/logs</value></property><property><name>yarn.nodemanager.pmem-check-enabled</name><value>false</value></property><property><name>yarn.nodemanager.vmem-check-enabled</name><value>false</value></property>
</configuration>
2.放开阿里云端口
查看java端口
netstat -tpnl | grep java
如果修改了还不行建议
.格式化HDFS集群,该操作只进行一次,并且只在主节点上执行(第二次需要把data下文件夹删除):
hdfs namenode -format
这篇关于阿里云虚拟机外网访问yarn 8088 hdfs 50070的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!