云集群本地访问

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

增加配置hdfs-site.xml

1 <configuration>
2     <property>
3         <name>dfs.client.use.datanode.hostname</name>
4         <value>true</value>
5     </property>
6 </configuration>

 

posted @ 2021-08-17 09:22  Wind_LPH  阅读(33)  评论(0编辑  收藏  举报