尝试安装 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=....)
最佳答案
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()
关于hadoop - Cloudera manager - hadoop安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11124314/