尝试安装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=....)
答案 0 :(得分: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()