1、安装minanaconda (1)将minanaconda拖拽到虚拟机中,然后使用命令进行安装
[tom@bigdata1 software]$ rz -E rz waiting to receive. [tom@bigdata1 software]$ bash Miniconda3-latest-Linux-x86_64.sh(2)点击enter回车
Please, press ENTER to continue >>>(3)输入yes
Do you accept the license terms? [yes|no] [no] >>> yes(4)输入安装的目录/opt/module/miniconda3
[/home/tom/miniconda3] >>> /opt/module/miniconda3(5)输入yes
Do you wish the installer to initialize Miniconda3 by running conda init? [yes|no] [no] >>> yes(6)安装成功
Thank you for installing Miniconda3!2、进行相关设置 (1)设置
[tom@bigdata1 software]$ source ~/.bashrc (base) [tom@bigdata1 software]$ conda config --set auto_activate_base false(2)接着配置这个conda的镜像源
(base) [tom@bigdata1 software]$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free (base) [tom@bigdata1 software]$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main (base) [tom@bigdata1 software]$(3)新建python3.9的环境,环境名为 superset
(base) [tom@bigdata1 software]$ conda create --name superset python=3.9(4)测试相关命令
(base) [tom@bigdata1 software]$ conda activate superset (superset) [tom@bigdata1 software]$ conda deactivate (base) [tom@bigdata1 software]$ conda deactivate [tom@bigdata1 software]$ conda activate superset (superset) [tom@bigdata1 software]$ conda info --envs # conda environments: # base /opt/module/miniconda3 superset * /opt/module/miniconda3/envs/superset(5)查看当前superset的Python版本号
查看当前superset的Python版本号 (superset) [tom@bigdata1 software]$ python -V Python 3.9.12(6)接着看看Python能否正常使用
(superset) [tom@bigdata1 software]$ python Python 3.9.12 (main, Jun 1 2022, 11:38:51) [GCC 7.5.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> exit() (superset) [tom@bigdata1 software]$(7)安装系统依赖
(superset) [tom@bigdata1 software]$ sudo yum install -y gcc gcc-c++ libffi-devel python-devel python-pip python-wheel python-setuptools openssl-devel cyrus-sasl-devel openldap-devel(8)更新setup和pip工具包
(superset) [tom@bigdata1 software]$ pip install --upgrade setuptools pip -i https://pypi.douban.com/simple/(9)安装superset的命令
(superset) [tom@bigdata1 software]$ pip install apache-superset -i https://pypi.douban.com/simple/(10)更改 markupsafe的版本
(superset) [tom@bigdata1 software]$ pip3 install --force-reinstall MarkupSafe==2.0.1(11)设置环境变量
(superset) [tom@bigdata1 software]$ export FLASK_APP=superset(12)初始化superset数据库
(superset) [tom@bigdata1 software]$ superset db upgrade(13)创建管理员用户
(superset) [tom@bigdata1 software]$ superset fab create-admin(14)superset初始化
(superset) [tom@bigdata1 software]$ superset init3、启动superset (1)安装gunicorn web容器
(superset) [tom@bigdata1 software]$ pip install gunicorn -i https://pypi.douban.com/simple/(2)启动superset命令
(superset) [tom@bigdata1 software]$ gunicorn --workers 5 --timeout 120 --bind bigdata1:8787 "superset.app:create_app()" --daemon(3)启动成功后,去浏览器打开superset的界面进行登录验证
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。 |
标签: #superset安装 #安装superset