简体   繁体   English

HDP sanbox:yum install 抛出 403 错误

[英]HDP sanbox: yum install is throwing 403 error

I am trying to setup HDP sandbox and work on a big data project.But when trying to do yum install, I am getting below error我正在尝试设置 HDP 沙箱并处理大数据项目。但是在尝试进行 yum 安装时,出现以下错误

 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. To address this issue please refer to the below knowledge base article https://access.redhat.com/solutions/69319 If above article doesn't help to resolve this issue please open a ticket with Red Hat Support. Error: Cannot retrieve repository metadata (repomd.xml) for repository: AMBARI.2.4.0.0-2.x. Please verify its path and try again

I tried below instructions: in /etc/yum.repos.d/sandbox.repo, updated the enabled=0我尝试了以下说明:在 /etc/yum.repos.d/sandbox.repo 中,更新了 enabled=0

yum clean all百胜干净

yum update百胜更新

But yum update gives me this error.I cannot even install any python related libraries to proceed with my work.Can someone give me solution for this error.但是 yum update 给了我这个错误。我什至无法安装任何与 python 相关的库来继续我的工作。有人能给我解决这个错误的方法吗? Thanks!!谢谢!!

I had the same problem, and in order to solve it, I backed up the repositories:我遇到了同样的问题,为了解决它,我备份了存储库:

  • ambari.repo ambari.repo
  • HDP.repo HDP.repo
  • HDP-UTILS.repo HDP-UTILS.repo

then I removed them from the /yum.repos.d folder.然后我从 /yum.repos.d 文件夹中删除了它们。

Then I ran the following command:然后我运行了以下命令:

yum clean all

After that the yum update worked, and I managed to install the things I needed.之后 yum 更新起作用了,我设法安装了我需要的东西。

** What I noticed, is that whenever I tried to use any YUM command, it gave preference to these repositories that I mentioned. ** 我注意到,每当我尝试使用任何 YUM 命令时,它都会优先考虑我提到的这些存储库。

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

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