【问题标题】:Can't Install Ambari service on Cluster无法在集群上安装 Ambari 服务
【发布时间】:2018-11-27 08:54:53
【问题描述】:

我无法像在他们的文档中那样为 Hortonworks 存储库添加密钥服务器:https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.1.0/bk_ambari-installation/content/download_the_ambari_repo_ubuntu16.html 我收到以下错误:

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD

Executing: /tmp/tmp.x2atUw3zqB/gpg.1.sh --recv-keys
--keyserver
keyserver.ubuntu.com
B9733A7A07513CAD
gpg: requesting key 07513CAD from hkp server keyserver.ubuntu.com
gpgkeys: key B9733A7A07513CAD can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm

我也尝试了这个命令,结果相同:

apt-key adv --keyserver-options https-proxy=http://ip:port --keyserver-options http-proxy=http://ip:port --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD

Executing: /tmp/tmp.N5FIhVOT5y/gpg.1.sh --keyserver-options
https-proxy=http://ip:port
--keyserver-options
http-proxy=http://ip:port
--recv-keys
--keyserver
keyserver.ubuntu.com
B9733A7A07513CAD
gpg: requesting key 07513CAD from hkp server keyserver.ubuntu.com
gpgkeys: key B9733A7A07513CAD can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm

【问题讨论】:

    标签: proxy hortonworks-data-platform azure-hdinsight ambari


    【解决方案1】:

    我终于用下面的命令模板成功添加了key。

    sudo apt-key adv --keyserver-options http-proxy="http:// : @ : " --keyserver hkp://keyserver.ubuntu.com:80 --recv 07513ACD 
    

    我的命令:

    apt-key adv --keyserver-options https-proxy=http://ip:port --keyserver-options http-proxy=http://ip:port --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 --recv B9733A7A07513CAD
    
    Executing: /tmp/tmp.a5ctOrZAWP/gpg.1.sh --keyserver-options
    https-proxy=http://ip:port
    --keyserver-options
    http-proxy=http://ip:port
    --recv-keys
    --keyserver
    hkp://keyserver.ubuntu.com:80
    --recv
    B9733A7A07513CAD
    gpg: requesting key 07513CAD from hkp server keyserver.ubuntu.com
    gpg: key 07513CAD: public key "Jenkins (HDP Builds) <jenkin@hortonworks.com>" imported
    gpg: Total number processed: 1
    gpg:               imported: 1  (RSA: 1)
    

    【讨论】:

    • 所以这是一个连接问题(你应该使用 HTTP 代理)
    • 不仅是 HTTP 代理,我还必须为 keyserver 选项添加 hkp:// 方案和端口:80
    猜你喜欢
    • 1970-01-01
    • 2017-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-12
    • 1970-01-01
    相关资源
    最近更新 更多