美文网首页我爱编程
Ambari安装hadoop报错1

Ambari安装hadoop报错1

作者: 但韩韩 | 来源:发表于2018-04-17 12:54 被阅读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

    相关文章

      网友评论

        本文标题:Ambari安装hadoop报错1

        本文链接:https://www.haomeiwen.com/subject/khbukftx.html