简体   繁体   English

在安装 `yum install python -pip` 时在 HDP 2.5 中出现以下错误

[英]while Installing `yum install python -pip` getting the below error in HDP 2.5

http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/BUILDS/2.4.0.0-1225/repodata/repomd.xml : [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden" Trying other mirror. http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/BUILDS/2.4.0.0-1225/repodata/repomd.xml:[Errno 14] PYCURL 错误 22 -“请求的 URL返回错误:403 Forbidden”尝试其他镜像。 To address this issue please refer to the below knowledge base article要解决此问题,请参阅以下知识库文章

https://access.redhat.com/solutions/69319 https://access.redhat.com/solutions/69319

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.如果以上文章不能帮助解决此问题,请向 Red Hat 支持开工单。

Error: Cannot retrieve repository metadata (repomd.xml) for repository: AMBARI.2.4.0.0-2.x.错误:无法检索存储库元数据 (repomd.xml):AMBARI.2.4.0.0-2.x。 Please verify its path and try again [root@sandbox maria_dev]# cd /etc/yum.repos.d [root@sandbox yum.repos.d]# cp sandbox.repo /tmp cp: cannot stat `sandbox.repo': No such file or directory [root@sandbox yum.repos.d]#请验证其路径并重试 [root@sandbox maria_dev]# cd /etc/yum.repos.d [root@sandbox yum.repos.d]# cp sandbox.repo /tmp cp: cannot stat `sandbox.repo':没有那个文件或目录 [root@sandbox yum.repos.d]#


I tried these commands in the root我在根目录中尝试了这些命令

[root@sandbox maria_dev]# cd /etc/yum.repos.d
[root@sandbox yum.repos.d]# cp sandbox.repo /tmp
[root@sandbox yum.repos.d]# rm sandbox.repo

I am using HDP 2.5我正在使用 HDP 2.5

After deleting a repo try删除回购后尝试

yum clean all

Then try again.然后再试一次。

Also suggest, listing the files in the directory since your error says it doesn't exist:还建议列出目录中的文件,因为您的错误表明它不存在:

cd /etc/yum.repos.d 
ls -al

I had the same problem so I followed the same strategy deleting every file the error mention, I just did the same thing you did deleting sandbox.repo and copying them somewhere safe for backup.我遇到了同样的问题,所以我遵循相同的策略删除错误提到的每个文件,我只是做了与删除 sandbox.repo 并将它们复制到安全备份的地方相同的事情。 I d like to mention that I just started learning about big data and Hadoop ecosystem, this method worked and I installed python-pip on HDP 2.5 but I don't know if I'm going to face problems in the future caused by deleting those files.我想提一下,我刚刚开始学习大数据和 Hadoop 生态系统,这种方法奏效了,我在 HDP 2.5 上安装了 python-pip 但我不知道我将来会不会因为删除那些而遇到问题文件。

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

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