我爱编程

Ambari安装hadoop报错1

2018-04-17  本文已影响0人  但韩韩

报错如下:

[root@test yum.repos.d]# yum install ambari-server

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Loading mirror speeds from cached hostfile

http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.0/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'public-repo-1.hortonworks.com'"

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: Updates-ambari-2.0.0. Please verify its path and try again

解决办法:resolve.conf中添加dns服务器

[root@test yum.repos.d]# more /etc/resolv.conf

# Generated by NetworkManager

# No nameservers found; try putting DNS servers into your

# ifcfg files in /etc/sysconfig/network-scripts like so:

#

# DNS1=xxx.xxx.xxx.xxx

# DNS2=xxx.xxx.xxx.xxx

# DOMAIN=lab.foo.com bar.foo.com

nameserver 8.8.8.8

nameserver 114.114.114.114

上一篇下一篇

猜你喜欢

热点阅读