页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
languagebash
java -version

2.安装Python主程序

上传Python安装包到服务器的/data目录

①安装依赖包

代码块
languagebash
linenumberstrue
rpm -ivh bzip2-1.0.6-13.el7.x86_64.rpm
yum install gcc


注意
title注意事项

Centos7.4 以上,无需安装依赖包

②安装Anaconda3并指定安装目录为/data/anaconda3

代码块
languagebash
linenumberstrue
cd /data
chmod +x Anaconda3-2019.10-Linux-x86_64.sh
bash Anaconda3-2019.10-Linux-x86_64.sh -b -p /data/anaconda3

③配置环境变量

代码块
languagebash
linenumberstrue
vi /etc/profile

在末尾添加以下内容:

代码块
languagebash
linenumberstrue
export PATH=/data/anaconda3/bin:$PATH

使配置生效,查看python版本

代码块
languagebash
linenumberstrue
source /etc/profile
python --version

显示Python 3.7.4 表示安装成功。

添加权限

代码块
languagebash
linenumberstrue
chmod -R 755 /data/anaconda3

3.离线安装Python插件包

①上传离线压缩包到服务器/data目录,并解压

代码块
languagebash
linenumberstrue
cd /data
unzip plugin.zip

②批量安装插件

代码块
languagebash
linenumberstrue
cd /data
pip install --no-index --find-links=./plugin/ -r requirements.txt

4.部署数据挖掘引擎包

上传安装包到服务器,并解压到指定目录

代码块
languagebash
linenumberstrue
tar -zxvf SmartbiMiningEngine-V10.0.64186.21183.tar.gz -C /data


注意
title注意事项

数据挖掘引擎包版本需要与Smartbi版本一致。

Python计算节点和数据挖掘引擎部署在相同服务器,无需重复解压安装包,使用相同安装包即可。

5.创建Python执行用户

创建用户组、用户并设置密码

...