晋光峰 wrote:
> 
> Dear all,
> 
> While I configure and use the hadoop framework, it seems that the DNS
> server
> must be used to do hostname resolution (even if i configure the IP address
> but not hostname in config/slaves and config/masters file). Because we
> don't
> have local DNS server in our local ethernet, so i have to add the hostname
> -
> IP mappings in /etc/hosts file.
> I have two questions about the hostname configuration:
>        1) Can we do some configuration in hadoop to avoid hostname
> resolution, but use IP address directly?
> 
>        2) If I add a new machine to the cluster, it seems that i have to
> add
> the new machines hostname or IP address on each node's config/slaves file.
> If the cluster size is too large, this way could be impossible to
> maintain.
> Is there      any simply way to add a node dynamically without modifying
> all
> the other cluster nodes?
> 
> Thanks & Regards
> -- 
> Guangfeng Jin
> 
> Software Engineer
> 
> iZENEsoft (Shanghai) Co., Ltd
> 
> 

You can point your DNS serve through dfs.datanode.dns.interface or
dfs.datanode.dns.nameserver to DN,and configure
mapred.tasktracker.dns.interface or mapred.tasktracker.dns.nameserver to
JT.The config/slaves file is uesed  by one node launch hadoop-daemons.sh to
start all DN or JT in that file.also you can configure
topology.script.file.name to solve your cluster topology.

Hope answer can solve your problem.:-p

马士华

http://www.hadoop.org.cn www.hadoop.org.cn 





-- 
View this message in context: 
http://www.nabble.com/How-to-run-hadoop-without-DNS-server--tp18863172p18867061.html
Sent from the Hadoop core-user mailing list archive at Nabble.com.

Reply via email to