PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"


RHEL6.5創建本地Yum源后,發現不可用,報錯如下:

[root@namenode1 html]# yum install gcc
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
http://192.168.1.139/cdh5/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: cdh5. Please verify its path and try again
[root@namenode1 html]# 

 檢查配置文件,也沒發現錯誤:

[root@namenode1 html]# vi /etc/yum.repos.d/hadoop.repo 

[cdh5]
name=cdh5
baseurl=http://192.168.1.139/cdh5/
gpgcheck=0

[cm5]
name=cm5
baseurl=http://192.168.1.139/cm5/
gpgcheck=0

[os-pkg]
name=os-pkg
baseurl=http://192.168.1.139/os/
gpgcheck=0

粗暴的修改目錄權限:

[root@namenode1 html]# chmod -Rf 777 *

[root@namenode1 html]# ll
total 12
drwxrwxrwx 5 root root 4096 Mar 20 22:09 cdh5
drwxrwxrwx 4 root root 4096 Mar 20 22:09 cm5
drwxrwxrwx 4 root root 4096 Mar 20 22:12 os

后續安裝haddop正常

 ============

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM