其他分享
首页 > 其他分享> > 云集群本地访问

云集群本地访问

作者:互联网

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

增加配置hdfs-site.xml

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

 

标签:xml,hdfs,site,访问,本地,云集,内网
来源: https://www.cnblogs.com/wind-man/p/15150878.html