欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

superset安装配置

发布时间:2025/3/15 43 豆豆
生活随笔 收集整理的这篇文章主要介绍了 superset安装配置 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

1、安装操作系统依赖

yum -y install vim net-tools
yum upgrade python-setuptools
yum -y install gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel bzip2 sqlite-devel


2、安装python3

tar -zxvf Python-3.7.0.tgz
cd Python-3.7.0
./configure --prefix=/usr/lcoal/python3
make && make install

3、安装Python virtualenv

/usr/local/python3/bin/pip install virtualenv

# virtualenv is shipped in Python 3 as pyvenv
/usr/local/python3/bin/virtualenv venv
. ./venv/bin/activate

#exit
deactivate

4、更新pip

/usr/local/python3/bin/pip install --upgrade setuptools pip

5、安装superset

# Install superset
/usr/local/python3/bin/pip install superset

# Create an admin user (you will be prompted to set a username, first and last name before setting a password)
/usr/local/python3/bin/fabmanager create-admin --app superset

# Initialize the database
/usr/local/python3/bin/superset db upgrade

# Load some data to play with
/usr/local/python3/bin/superset load_examples

# Create default roles and permissions
/usr/local/python3/bin/superset init

# To start a development web server on port 8088, use -p to bind to another port
/usr/local/python3/bin/superset runserver -d

浏览器 http://localhost:8088 访问。

转载于:https://www.cnblogs.com/wcwen1990/p/10206452.html

总结

以上是生活随笔为你收集整理的superset安装配置的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。