1

尝试安装 Cloudera Manager。在 hadoop 主机中步骤自动安装失败。

Error:
Installing JDK package...
BEGIN yum info jdk 
Loaded plugins: fastestmirror 
Loading mirror speeds from cached hostfile 
* base: archive.cs.uu.nl 
* extras: archive.cs.uu.nl 
* updates: mirror.fraunhofer.de 
http://archive.cloudera.com/redhat/cdh/3/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> 
Trying other mirror. 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: cloudera-cdh3. Please verify its path and try again 
END (1) 
remote package jdk is not available, giving up


From OS command 
yum info jdk 
complete success.

In the OS set proxy (export http_proxy=....)
4

1 回答 1

0

Cloudera SCM 失败,因为它无法使用 yum 下载和安装 JDK。

到目前为止,我看到它总是试图这样做。

您可以自己更新机器上的 yum 存储库,具体取决于您使用的 Linux 版本。

这是使用 RHEL / OEL 5 的示例:

# This adds Oracle Yum repo
cd /etc/yum.repos.d/
wget http://public-yum.oracle.com/public-yum-el5.repo

# This adds Fedora EPEL yum repo
yum remove epel-release-5-4
rpm -Uvh http://mirrors.kernel.org/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm

看看能不能手动安装JDK。

[编辑:]

检查您是否能够在没有问题的情况下执行以下操作:

python
>>> import urllib
>>> x = urllib.urlopen('http://archive.cloudera.com/redhat/cdh/3/repodata/repomd.xml')
>>> x.getcode()
200
>>> print x.readlines()
于 2012-06-20T18:50:13.963 回答