云集群本地访问

当集群部署在阿里云或者腾讯云或者其他云上的时候,使用本地客户端访问会出现问题,解析的时候是内网地址,需要使用如下参数进行转换。

增加配置hdfs-site.xml

1 <configuration>
2     <property>
3         <name>dfs.client.use.datanode.hostname</name>
4         <value>true</value>
5     </property>
6 </configuration>
有朝一日同风起,扶摇直上九万里
原文地址:https://www.cnblogs.com/wind-man/p/15150878.html