UnknownHostException is thrown when hadoop tries to resolve the DNS name (srv-clc-04.univ-nantes.prive3) to an ip address. This fails.
Look for the domain name in the configuration files and replace it by "localhost". (Or update the DNS up resolve the name to an ip address)
reference:http://blog.csdn.net/shirdrn/article/details/6562292#userconsent#
如果出现: failed on connection exception: java.net.ConnectException: Connection refused;
检查一下:
1.etc/hosts 是不是配置了 本机的地址 --- hostname
2.etc/sysconfig/network 是不是和 ‘1’ 中的hostname 一致
3.是不是访问的时候,端口写错了;