...
IP | 主机名 | 角色 |
192.168.99.104 | test1 | Zookeeper,smartbi-mpp |
192.168.99.105 | test2 | Zookeeper,smartbi-mpp |
操作系统 | Linux内核3.10以上 |
CPU | 8核 |
内存 | 16G及以上 |
磁盘 | 200G |
...
...
磁盘分区
...
磁盘空间
...
备注
...
/data
...
200G
...
Smartbi MPP
安装权限要求:
具有 sudo权限的用户或root用户,推荐使用root用户安装
安装时用root用户运行或使用具有 sudo权限的用户执行。
1.2防火墙配置
PS:所有集群内的主机均需进行防火墙配置。(集群主机:test1,test2)
为了便于安装,建议在安装前关闭防火墙。使用过程中,为了系统安全可以选择启用防火墙,但必须启用Smartbi使用到的相关端口。
...
代码块 | ||
---|---|---|
| ||
systemctl status firewalld |
1.2.2开启防火墙
相关服务及端口对照表
服务名 |
开放端口 | |
smartbi-mpp | 9000,8123 |
Zookeeper | 2181,2888,3888 |
如果确实需要打开防火墙安装,需要给防火墙放开以下需要使用到的端口
开启端口:9000、8123
代码块 | ||
---|---|---|
| ||
firewall-cmd --permanent --add-port=9000/tcp firewall-cmd --permanent --add-port=8123/tcp firewall-cmd --permanent --add-port=2181/tcp firewall-cmd --permanent --add-port=2888/tcp firewall-cmd --permanent --add-port=3888/tcp |
配置完以后重新加载firewalld,使配置生效#
代码块 | ||
---|---|---|
| ||
firewall-cmd --reload |
查看防火墙的配置信息#
代码块 | ||
---|---|---|
| ||
firewall-cmd --list-all |
1.2.3关闭selinux
临时关闭selinux,立即生效,不需要重启服务器。
代码块 | ||
---|---|---|
|
...
setenforce 0 |
永久关闭selinux,修改完配置后需要重启服务器才能生效#sed
代码块 | ||
---|---|---|
| ||
sed -i 's/=enforcing/=disabled/g' /etc/selinux/config |
2、开始安装
2.1安装介质
Centos 7.x/Redhat7.x
...
上传Smartbi-MPP安装包到CentOS操作系统,本文档安装包存放在/data目录下
代码块 | ||
---|---|---|
| ||
tar -zxvf Smartbi-MPP-Colony.tar.gz |
...
cd Smartbi-MPP-Colony |
2.2设置系统环境
PS:所有集群内的主机均需设置系统环境(集群主机:test1,test2)
1、取消打开文件限制:
在 /etc/security/limits.conf 文件末尾加入以下内容:
soft nofile 65536
hard nofile 65536
soft nproc 131072
hard nproc 131072
2、添加hosts文件:
192.168.99.104 test1
192.168.99.105 test2
...