CENTOS7离线安装CDH5.6遇到的问题
Posted 羽翼清风
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CENTOS7离线安装CDH5.6遇到的问题相关的知识,希望对你有一定的参考价值。
1,安装cloudera-manager-agent 时,报错,报端口80问题,
开启80端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
命令含义:
--zone #作用域
--add-port=80/tcp #添加端口,格式为:端口/通讯协议
--permanent #永久生效,没有此参数重启后失效
运行、停止、禁用firewalld
启动:# systemctl start firewalld
查看状态:# systemctl status firewalld 或者 firewall-cmd --state
停止:# systemctl disable firewalld
禁用:# systemctl stop firewalld
systemctl disable firewalld.service #禁止firewall开机启动
端口开启后正常,centos 7的防火墙已不是iptables了(对系统不熟悉)。
2,修改主机名
Centos 7.1下修改主机名:
[root@localhost ~]# hostnamectl status
Static hostname: localhost.localdomain
Icon name: computer
Chassis: n/a
Machine ID: caa35e54020e4930a35b28c8e501b51a
Boot ID: 95321dfa104f423d9d1fc7dbade66dbb
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-229.el7.x86_64
Architecture: x86_64
[root@localhost ~]# hostnamectl set-hostname master
[root@localhost ~]# hostnamectl status
Static hostname: master
Icon name: computer
Chassis: n/a
Machine ID: caa35e54020e4930a35b28c8e501b51a
Boot ID: 95321dfa104f423d9d1fc7dbade66dbb
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-229.el7.x86_64
Architecture: x86_64
3, 安装提示失败,无法安装包
为CM创建索引
[root@master cm]# createrepo -v /opt/cloudera/cm
Spawning worker 0 with 21 pkgs
Worker 0: reading 5.6.0/RPMS/x86_64/cloudera-manager-agent-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6.0/RPMS/x86_64/cloudera-manager-daemons-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6.0/RPMS/x86_64/cloudera-manager-server-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6.0/RPMS/x86_64/cloudera-manager-server-db-2-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6.0/RPMS/x86_64/enterprise-debuginfo-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6.0/RPMS/x86_64/jdk-6u31-linux-amd64.rpm
Worker 0: reading 5.6.0/RPMS/x86_64/oracle-j2sdk1.7-1.7.0+update67-1.x86_64.rpm
Worker 0: reading 5.6/RPMS/x86_64/cloudera-manager-agent-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6/RPMS/x86_64/cloudera-manager-daemons-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6/RPMS/x86_64/cloudera-manager-server-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6/RPMS/x86_64/cloudera-manager-server-db-2-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6/RPMS/x86_64/enterprise-debuginfo-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5.6/RPMS/x86_64/jdk-6u31-linux-amd64.rpm
Worker 0: reading 5.6/RPMS/x86_64/oracle-j2sdk1.7-1.7.0+update67-1.x86_64.rpm
Worker 0: reading 5/RPMS/x86_64/cloudera-manager-agent-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5/RPMS/x86_64/cloudera-manager-daemons-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5/RPMS/x86_64/cloudera-manager-server-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5/RPMS/x86_64/cloudera-manager-server-db-2-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5/RPMS/x86_64/enterprise-debuginfo-5.6.0-1.cm560.p0.54.el7.x86_64.rpm
Worker 0: reading 5/RPMS/x86_64/jdk-6u31-linux-amd64.rpm
Worker 0: reading 5/RPMS/x86_64/oracle-j2sdk1.7-1.7.0+update67-1.x86_64.rpm
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Starting other db creation: Mon May 23 17:06:37 2016
Ending other db creation: Mon May 23 17:06:37 2016
Starting filelists db creation: Mon May 23 17:06:37 2016
Ending filelists db creation: Mon May 23 17:06:37 2016
Starting primary db creation: Mon May 23 17:06:37 2016
Ending primary db creation: Mon May 23 17:06:37 2016
Sqlite DBs complete
[root@master cm]#
4,cm启动nfs报错:No portmap or rpcbind service is running on this host. Please start portmap
[root@master cm]#service rpcbind start
Redirecting to /bin/systemctl start rpcbind.service
以上是关于CENTOS7离线安装CDH5.6遇到的问题的主要内容,如果未能解决你的问题,请参考以下文章