Error Downloading Packages:
cloudera-manager-server-db-4.8.1-1.cm481.p0.74.el6.x86_64: failure: RPMS/x86_64/cloudera-manager-server-db-4.8.1-1.cm481.p0.74.el6.x86_64.rpm from cloudera-manager: [Errno 256] No more mirrors to try.,这个问题是由于下载的mirror包超时或者连接限制,这只是其中一个包,还有很多cm相关包需要下载,为了避免再次出现类似情况,建议先把所有的相关包下载下来,自己安装,下载地址http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/RPMS/x86_64/,下载完了以后可以自己指定目录位置,安装,详见通过Cloudera Manager来安装Hadoop。安装完成以后,重启cloudera-manager-installer.bin,出现错误,查阅cat /var/log/cloudera-manager-installer/3.install-cloudera-manager-server.log安装日志,发现
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID e8f86acd: NOKEY
Retrieving key from http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/RPM-GPG-KEY-clouderaGPG key retrieval failed: [Errno 14] PYCURL ERROR 5 - "Couldn't resolve proxy 'server'"
发生一系列问题的解决办法是:
- 没有依赖包的强制安装步骤
-
# rpm -ivh db4-devel-4.3.29-9.fc6.i386.rpm --force --nodeps
-
- 从 RPM 版本 4.1 开始,在安装或升级软件包时会检查软件包的签名。
- 如果签名校验失败,你就会看到如下所示的错误消息:
- 6.error: V3 DSA signature: BAD, key ID 0352860f
- 如果它是新的、只针对文件头的签名,你会看到如下所示的错误消息:
-
error: Header V3 DSA signature: BAD, key ID 0352860f
-
- 如果你没有安装合适的钥匙来校验签名,消息中就会包含 NOKEY ,如:
- warning: V3 DSA signature: NOKEY, key ID 0352860f
- 在CentOS下有的时候用yum安装软件的时候最后会提示:
- warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID*****
- 这是由于yum安装了旧版本的GPG keys造成的,解决办法就是
- 下载并导入Key
- cd /etc/pki/rpm-gpg
- wget http://mirror.centos.org/centos/RPM-GPG-KEY-cloudera
- rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
这样重新启动cloudera-manager-installer.bin就不会发生错误。
为了安装顺利,我们要提前在centos上面安装好各个软件包,如下:
cloudera-manager-daemons-4.8.1-1.cm481.p0.74.el6.x86_64.rpm
cloudera-manager-server-4.8.1-1.cm481.p0.74.el6.x86_64.rpm
cloudera-manager-server-db-4.8.1-1.cm481.p0.74.el6.x86_64.rpm
postgresql-8.4.20-1.el6_5.x86_64.rpm
postgresql-libs-8.4.20-1.el6_5.x86_64.rpm
postgresql-server-8.4.20-1.el6_5.x86_64.rpm
安装好以后运行cloudera-manager-installer.bin,然后又碰到了问题,在日志中/var/log/cloudera-manager-installer/6.start-scm-server.log出现
Starting cloudera-scm-server: [FAILED],我们找到答案是:http://grokbase.com/t/cloudera/scm-users/126m1qvtar/cloudera-manager-server-failed-to-start-suse-linux/oldest,是
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
虚拟机内存不够,则提高内存量