0% found this document useful (0 votes)
271 views

Superset Documentation

To install Superset, you need to: 1. Create a virtual environment and activate it. 2. Install Superset and its dependencies using PIP. 3. Upgrade the database and make the initial admin user. 4. Configure Superset by setting variables in the config file. 5. Load example data, create roles and permissions, and start the web server to run Superset.

Uploaded by

Mikhael Avner
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
271 views

Superset Documentation

To install Superset, you need to: 1. Create a virtual environment and activate it. 2. Install Superset and its dependencies using PIP. 3. Upgrade the database and make the initial admin user. 4. Configure Superset by setting variables in the config file. 5. Load example data, create roles and permissions, and start the web server to run Superset.

Uploaded by

Mikhael Avner
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

SUPERSET

How to install
Installation requirements :

 Python 3.8 (python.org/downloads)


 Microsoft Visual C++ 14.x standalone: Build tools for Visual Studio 2019
(https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019)

Create folder for installing superset and go to that folder using cmd

Create venv environment

python -m venv venv
Activate virtual environment

venv\Scripts\activate

Install PIP virtual environment

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py --ssl-no-revoke
Should be like this

Upgrade and setup PIP

pip install --upgrade setuptools pip
Install Apache Superset

pip install apache-superset

Install driver database

pip install psycopg2
Open Scripts folder and use command superset db upgrade

cd venv/Scripts

superset db upgrade

Make user admin

set FLASK_APP=superset

flask fab create-admin
Create MAPBOX account (account.mapbox.com) and use default public token

Copy and paste token to file directory [drive]:\superset\venv\Lib\site-packages\superset\config.py

Change variable ENABLE_JAVASCRIPT_CONTROLS inside file directory [drive]:\superset\venv\Lib\site-packages\


superset\config.py

On the same file directory, change some variables:

AUTH_ROLE_PUBLIC
WTF_CSRF_ENABLED

PUBLIC_ROLE_LIKE

Load data

superset load_examples
Create default roles and permission

superset init

Start web server

superset run -p 8088 --with-threads --reload --debugger
Superset Web Application
After server is running open local host as your superset port run in (example: http://127.0.0.1:8088/)

Login as previous account you created


Start by connecting to a database using Data tab > + Database
Input the database information and connect.
Start by exploring SQL Lab and run some query you need for charts:

Press EXPLORE and you can change how you want to visualize your data by clicking visualization type
After that you can choose how you want to aggregate your data by editing the metrics and series, also you can
customized how you want to show your data in charts, run the query and see results:

Save your chart as you create new Dashboard for your project:
And your project Dashboard will show, here you can add more charts and edit position, also CSS for extra
customization. Have fun.

Avner

Superset Documentation - September 2021

You might also like