简体   繁体   English

GPG密钥检索失败Hadoop Bigtop安装

[英]GPG Key retrieval failed Hadoop Bigtop installation

Following the instructions in the following site - ( http://www.dummies.com/how-to/content/set-up-the-hadoop-environment-with-apache-bigtop.html ) or rather from the book Hadoop for Dummies. 按照以下站点中的说明进行操作-( http://www.dummies.com/how-to/content/set-up-the-hadoop-environment-with-apache-bigtop.html ),或者从Hadoop书籍中傻瓜。

Step 3 ran successfully till the end with total download size of 616MB but at the end of it I got into this error - 第3步成功运行到最后,总下载大小为616MB,但最后我遇到了这个错误-

  Total                                           130 kB/s | 616 MB     80:52     
    warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID fa08b173: NOKEY
    Retrieving key from https://dist.apache.org/repos/dist/release/bigtop/KEYS


GPG key retrieval failed: [Errno 14] problem making ssl connection

I ignored that error thinking it would not have any effect. 我忽略了该错误,认为它不会产生任何效果。 I then proceeded with rest of steps till 4.2 when I started getting the following error - 然后,我继续其余步骤,直到4.2开始出现以下错误时-

[root@localhost ~]# sudo /etc/init.d/hadoop-hdfs-namenode init
sudo: /etc/init.d/hadoop-hdfs-namenode: command not found

On searching extensively I had come to realize that reinstalling ie running the command yum install hadoop* would fix the issue, which I did and am getting this error - 经过广泛搜索,我开始意识到重新安装即运行命令yum install hadoop *可以解决此问题,而我确实这样做并遇到了此错误-

Total size: 198 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID fa08b173: NOKEY
Retrieving key from https://dist.apache.org/repos/dist/release/bigtop/KEYS


GPG key retrieval failed: [Errno 14] problem making ssl connection

I am desperately trying to get the things work as described in the 'Hadoop For Dummies' book but the struggle is enormous. 我拼命地试图使事情如“ Hadoop For Dummies”一书中所描述的那样工作,但是斗争是巨大的。 At office system in which I was trying to do, I couldn't go beyond step 1 ie getting the repo for which a thread is running - Yum install Hadoop not found error CENTOS but this time around this is in my home system still same error. 在我尝试执行的办公系统中,我无法超越第1步,即获取正在运行线程的存储库-Yum install Hadoop找不到错误CENTOS,但这一次在我的家庭系统中仍然是相同的错误。 No wonder this book has got worst reviews. 难怪这本书得到了最差的评价。

Can someone please guide me on how to fix this? 有人可以指导我如何解决此问题吗?

1) add the following text to the /etc/yum.repos.d/bigtop.repo file. 1)将以下文本添加到/etc/yum.repos.d/bigtop.repo文件中。

[bigtop]
name=Bigtop
enabled=1
gpgcheck=1
type=NONE
baseurl=http://www.apache.org/dist/bigtop/bigtop-1.1.0/repos/centos6/
gpgkey=http://www.apache.org/dist/bigtop/bigtop-1.1.0/repos/GPG-KEY-bigtop

2) as next step try to install the necessary files again with 2)下一步尝试使用

yum install hadoop\* mahout\* oozie\* hbase\* hive\* hue\* pig\* zookeeper\

3) your install will complete now. 3)您的安装将立即完成。

cheers, AJ 干杯,AJ

you need to change the last line in the "/etc/yum.repos.d/bigtop.repo" file and set it like following: gpgkey= http://www.apache.org/dist/bigtop/bigtop-1.0.0/repos/GPG-KEY-bigtop 您需要更改“ /etc/yum.repos.d/bigtop.repo”文件中的最后一行,并将其设置如下:gpgkey = http://www.apache.org/dist/bigtop/bigtop-1.0。 0 /回购/ GPG-KEY-的Bigtop

the problem was because the link of "GPG key" was changed, so you need to change it also 问题是因为“ GPG密钥”的链接已更改,所以您还需要更改它

The answer above is correct. 上面的答案是正确的。 However, if you are new to the installation you need to do the followings: 但是,如果您不熟悉安装,则需要执行以下操作:

  1. do the first step per the book, ie "wget -O /etc/yum.repos.d/bigtop.repo... 完成本书的第一步,即“ wget -O /etc/yum.repos.d/bigtop.repo ...

  2. Edit the bigtop.repo, ie gedit /etc/yum.repos.d/bigtop.repo 编辑bigtop.repo,即gedit /etc/yum.repos.d/bigtop.repo

  3. this will open the bigtop.repo file for editting. 这将打开bigtop.repo文件进行编辑。

  4. Modify the last line using the key above. 使用上面的键修改最后一行。 save and close it. 保存并关闭它。

  5. do the second step per the book. 完成每本书的第二步。

For my case it was a wrong gpgkey path value. 就我而言,这是错误的gpgkey路径值。

I had prepared local repository and received the same error for Ambari installation. 我已经准备了本地存储库,并在安装Ambari时收到了相同的错误。

I had one folder missing in the path. 我的路径中缺少一个文件夹。 Adding the missing path fixed the problem for me. 添加缺少的路径对我来说解决了这个问题。

Old (and wrong) value was: gpgkey= http://mylocal/repo/ambari/AMBARI-2.4.2.0/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins 旧(错误的)值为:gpgkey = http://mylocal/repo/ambari/AMBARI-2.4.2.0/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

Corrected as: gpgkey= http://mylocal/repo/ambari/AMBARI-2.4.2.0/centos7/2.4.2.0-136/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins 更正为:gpgkey = http://mylocal/repo/ambari/AMBARI-2.4.2.0/centos7/2.4.2.0-136/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM