LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-22-2012, 02:15 AM   #1
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Rep: Reputation: 3
[Errno 14] Could not open/read


ok I'm trying to install a local repo.
I added a new .repo in /etc/yum.repos.d/
it is called Cloudera-local.repo
here it is
[cloudera-local]
name=Cloudera's Distribution for Hadoop, Version 4
###baseurl=http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4/
baseurl=http://127.0.0.1/HadoopRPMS/
###gpgkey = http://archive.cloudera.com/cdh4/red...G-KEY-cloudera
####gpgcheck =1
enabled =1

I'm doint it this way because when i try to download the packages i need using yum i get an error saying Metadata does not match checksum
couldn't find an solution online that worked so i thought i would make my own repo and solve it.

I have downloaded all the repos from the server and they are in /var/www/html/HadoopRPMS/
the repomd.xml and primary.xml.gz are in /var/www/html/Hadoop/repodata

this is what happens, I'm stuck and not sure what to do to solve this issue.
edit: also i can navigate to http://127.0.0.1/HadoopRPMS/repodata/ on my browser and open repomd.xml in the browser....

[root@example /]# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit
Cleaning repos: base cloudera-local extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@example /]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* base: centos.mirror.lstn.net
* extras: centos-distro.cavecreek.net
* updates: centos.digitalcompass.net
base | 3.7 kB 00:00
base/primary_db | 4.5 MB 00:11
http://127.0.0.1/HadoopRPMS/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 502"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: cloudera-local. Please verify its path and try again

Last edited by malak33; 08-22-2012 at 03:18 AM. Reason: it should be baseurl=http (i had baseurl-file) i changed that and then got new errors
 
Old 08-22-2012, 03:02 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by malak33 View Post
http:///127.0.0.1/HadoopRPMS/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 502"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: cloudera-local. Please verify its path and try again
The three slashes in "http:///" look suspicious.

Evo2.
 
Old 08-22-2012, 03:19 AM   #3
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
You are correct, sorry i copied from the wrong terminal window i had open. It is now correct. It's late here where i am...
 
Old 08-22-2012, 03:39 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

ok, have you checked your web server logs to see what is going on? Also, I know you already said that that url works with your browser, but have you also tried with something simple like wget? Eg
Code:
wget http://127.0.0.1/HadoopRPMS/repodata/repomd.xml
Evo2.
 
Old 08-22-2012, 03:52 AM   #5
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
Code:
[root@example /]# wget http://127.0.0.1/HadoopRPMS/repodata/repomd.xml
--2012-08-21 14:08:20--  http://127.0.0.1/HadoopRPMS/repodata/repomd.xml
Connecting to 10.16.0.25:8080... connected.
Proxy request sent, awaiting response... 502 Proxy Error ( An internal error occurred.  )
2012-08-21 14:08:20 ERROR 502: Proxy Error ( An internal error occurred.  ).
in the access log and error log there is nothing relevent in there.

I see proxy error, I'm behind proxy at my work and have put in the appropiate IP settings following this guide here http://wiki.centos.org/TipsAndTricks...7ebae9cc4fcb5a

Maybe relevent information i am on a VM sitting on a windows machine.
 
Old 08-22-2012, 05:46 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
It looks like you need to disable the proxy for localhost.

Evo2.
 
Old 08-22-2012, 07:06 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I checked the rpm.conf man page and it seems you can set a different proxy for each repository, and that you can use the value '_none_' if you want to disable it.
So please try adding the following to Cloudera-local.repo
Code:
proxy=_none_
Evo2.
 
Old 08-23-2012, 01:30 AM   #8
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
i will try that out tomorrow, not at wirk today. ill let u kbow if it works. thanks
 
Old 08-23-2012, 07:25 PM   #9
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
ok, i have taken your advice and it worked. Kinda i'm not getting the same error now. Now I'm getting the meta data one again...sigh

Code:
[root@example /]# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit
Cleaning repos: base cloudera-local extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@example /]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
 * base: centos-distro.cavecreek.net
 * extras: centos.mirror.nac.net
 * updates: centos.aol.com
base                                                     | 3.7 kB     00:00     
base/primary_db                                          | 4.5 MB     00:08     
cloudera-local                                           |  951 B     00:00     
cloudera-local/primary                                   |  22 kB     00:00     
http://127.0.0.1/HadoopRPMS/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
cloudera-local/primary                                   |  22 kB     00:00     
http://127.0.0.1/HadoopRPMS/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from cloudera-local: [Errno 256] No more mirrors to try.
[root@example /]#
 
Old 08-23-2012, 07:43 PM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by malak33 View Post
ok, i have taken your advice and it worked.
Ok so your problem is solved.
Quote:
Kinda i'm not getting the same error now. Now I'm getting the meta data one again...sigh
And you have a new problem. This problem is very much specific to yum repositories (the previous one was an http proxy issue), so I suggest you start a new thread with a descriptive title.

Cheers,

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel module development: how to open block devices and use them (open, seek, read). eantoranz Linux - Kernel 41 07-08-2013 08:11 AM
[SOLVED] ErrNo 14 and ErrNo 256 in yum server configuration nivedhitha Linux - Server 4 05-22-2011 12:45 AM
[SOLVED] Python "IOError: [Errno 24] Too many open files" Snark1994 Programming 2 02-03-2011 06:51 PM
"IOError: [Errno 30] Read-only file system" when installing SME Server 8 from USB penyuan Linux - Newbie 2 11-22-2010 02:28 PM
read() on pipe returns -1 and errno set to 0 velemas Programming 2 12-18-2009 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration