wget unable to resolve host address>问题>解决方法

2018-04-28 15:29:17 浏览数 (1)

>问题

今天在CDH资源上

http://archive.cloudera.com/cdh5/cdh/5/

下载 hive-1.1.0-cdh5.7.0

http://archive.cloudera.com/cdh5/cdh/5/hive-1.1.0-cdh5.7.0.tar.gz

在客户端窗口上执行 wget -c http://archive.cloudera.com/cdh5/cdh/5/hive-1.1.0-cdh5.7.0.tar.gz 报错了:

Resolving archive.cloudera.com... failed: Temporary failure in name resolution. wget: unable to resolve host address “archive.cloudera.com”

>解决方法

执行sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0 配置DNS

代码语言:javascript复制
BOOTPROTO=static
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.92.128
GATEWAY=192.168.92.1
NETMASK=255.255.255.0
》DNS=192.168.92.1
》DNS1=180.76.76.76   百度的DNS服务器
》DNS2=223.5.5.5      阿里云的DNS服务器

再次执行,ok了。 wget -c http://archive.cloudera.com/cdh5/cdh/5/hive-1.1.0-cdh5.7.0.tar.gz 截图

wget

0 人点赞