FAQ
Hi Narayan,

Are you running commands with "sudo" when logged in as root? If not, can
you try that out (i.e. login as root and run sudo <command>)? If that
succeeds, run visudo and add following:

Defaults umask = 0022
Defaults umask_override

and then try again.

- Vikas


On Wed, Oct 23, 2013 at 1:12 PM, Narayan chalasani
wrote:
I just did same command and added sudo before it.

sudo wget *http://archive.cloudera.com/search/redhat/6/x86_64/search/
1/repodata/repomd.xml*<http://archive.cloudera.com/search/redhat/6/x86_64/search/1/repodata/repomd.xml>

It didn't work....it timed out

Narayan
On Wednesday, October 23, 2013 1:10:02 PM UTC-7, Darren Lo wrote:

Do they work when you use "sudo" before wget?

On Wed, Oct 23, 2013 at 1:02 PM, Narayan chalasani wrote:


Yes the wget works.

Wierdly if I do yum makecache it works. So from there itself I kinda
know that wget works. Its just that if I put sudo before the "yum
makecache" it fails. Any thoughts?

[root@hadoop2 ~]# wget http://archive.cloudera.com/**
search/redhat/6/x86_64/search/**1/repodata/repomd.xml<http://archive.cloudera.com/search/redhat/6/x86_64/search/1/repodata/repomd.xml>
--2013-10-23 12:58:29-- http://archive.cloudera.com/**
search/redhat/6/x86_64/search/**1/repodata/repomd.xml<http://archive.cloudera.com/search/redhat/6/x86_64/search/1/repodata/repomd.xml>
Resolving lXXXXXX... 10.XX.XXX
Connecting to XXXXXXXX:... connected.
Proxy request sent, awaiting response... 200 OK
Length: 951 [application/xml]
Saving to: ârepomd.xmlâ
100%[=========================**=============>] 951 --.-K/s
in 0s
2013-10-23 12:58:29 (102 MB/s) - ârepomd.xmlâ
[root@hadoop2 ~]#



On Wednesday, October 23, 2013 12:49:58 PM UTC-7, Darren Lo wrote:

Sorry I misunderstood. Seems like a strange problem. Do the URLs work
when you sudo? ie sudo wget <url>.

I'm not sure what's going on here, so others may have more useful
advice, or you can check general linux help (I am not an expert), since
this doesn't seem to be an issue with Cloudera Manager.

Thanks,
Darren


On Wed, Oct 23, 2013 at 9:21 AM, Narayan chalasani <chalas...@gmail.com
wrote:
Like I said - The url do work fine. The servers that I am installing
on has internet access.

if I give "yum makecache" or "yum info jdk" - It works. It goes and
does its thing and downloads.
if I give "sudo yum makecache" or "sudo yum info jdk" - it throws me
an error.

The word "sudo" before the command is causing the issue. The process
puts sudo when installing through CM.

Hope I am clear.

Narayan

On Wednesday, October 23, 2013 8:31:09 AM UTC-7, Darren Lo wrote:

Hi Narayan,

The error indicates a networking problem. Those urls work for me. Can
you wget those urls from your machine? If not, you need to make sure your
machines have internet access, or use an installation method that does not
require the internet.

Thanks,
Darren


On Tue, Oct 22, 2013 at 11:04 PM, Narayan chalasani <
chalas...@gmail.com> wrote:
Other recipients:
I am getting error when installing chd 4.1.2 I have seen ppl post it
some time ago regarding same error but couldn't find a solution. So the
command is failing on sudo yum makecache and sudo yum info jdk Weird
thing is - if I manually issue the com
I am getting error when installing chd 4.1.2

I have seen ppl post it some time ago regarding same error but
couldn't find a solution.

So the command is failing on

sudo yum makecache and sudo yum info jdk

Weird thing is - if I manually issue the command without sudo as root

like Yum makecache - it execuites fine

if I issue with sudo - like sudo yum makecache (as root)
it fails.

My sudoer file reads
username ALL=(ALL) NOPASSWD: ALL

Error details:
Cleaning up Everything
END (0)
BEGIN sudo rm -Rf /var/cache/yum/x86_64
END (0)
BEGIN sudo yum makecache
Loaded plugins: rhnplugin, versionlock
*http://archive.cloudera.com/search/redhat/6/x86_64/search/1/
repodata/repomd.xml*<http://archive.cloudera.com/search/redhat/6/x86_64/search/1/repodata/repomd.xml>:
[Errno 12] Timeout on *http://archive.cloudera.com/se
arch/redhat/6/x86_64/search/1/repodata/repomd.xml*<http://archive.cloudera.com/search/redhat/6/x86_64/search/1/repodata/repomd.xml>:
(28, 'connect() timed out!')
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for
repository: cdh-solr. Please verify its path and try again
END (1)

Installing jdk package...
BEGIN sudo yum list installed jdk
Loaded plugins: rhnplugin, versionlock
Installed Packages
jdk.x86_64 2000:1.6.0_32-fcs @rhel6-snei-x86_64
END (0)
BEGIN echo jdk cloudera-manager-agent cloudera-manager-daemons |
grep jdk
jdk cloudera-manager-agent cloudera-manager-daemons
END (0)
BEGIN sudo yum info jdk
Loaded plugins: rhnplugin, versionlock
*http://archive.cloudera.com/search/redhat/6/x86_64/search/1/
repodata/repomd.xml*<http://archive.cloudera.com/search/redhat/6/x86_64/search/1/repodata/repomd.xml>:
[Errno 12] Timeout on *http://archive.cloudera.com/se
arch/redhat/6/x86_64/search/1/repodata/repomd.xml*<http://archive.cloudera.com/search/redhat/6/x86_64/search/1/repodata/repomd.xml>:
(28, 'connect() timed out!')
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for
repository: cdh-solr. Please verify its path and try again
END (1)
remote package jdk is not available, giving up
waiting for rollback request

To unsubscribe from this group and stop receiving emails from it,
send an email to scm-users+...@**cloudera.org.


--
Thanks,
Darren
To unsubscribe from this group and stop receiving emails from it,
send an email to scm-users+...@**cloudera.org.


--
Thanks,
Darren
To unsubscribe from this group and stop receiving emails from it, send
an email to scm-users+...@**cloudera.org.


--
Thanks,
Darren
To unsubscribe from this group and stop receiving emails from it, send an
email to scm-users+unsubscribe@cloudera.org.
To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 9 | next ›
Discussion Overview
groupscm-users @
categorieshadoop
postedOct 23, '13 at 6:04a
activeOct 23, '13 at 9:29p
posts9
users3
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase