Install Apache Superset on Ubuntu without docker

First, ensure your system is up to date and install the necessary packages. These commands assume you have sudo privileges.
Package | Command |
---|---|
build-essential | sudo apt-get update && sudo apt-get install build-essential |
venv | sudo apt install python3.10-venv |
python3.10-dev | sudo apt-get install python3.10-dev |
app
, and navigate to the folder:mkdir app && cd app
env
inside the folder:python3.10 -m venv env
Make sure to use python3.10
to ensure compatibility with the installed Python version. env
:source env/bin/activate
pip
(package installer for Python):pip install --upgrade pip
pip
:pip install apache-superset
openssl rand -base64 42
Store this key securely and do not expose it publicly. cd /home/yourusername/app/env/lib/python3.10/site-packages/superset/
Open config.py
and replace or add the following line after the SECRET_KEY
(around line number 180):SECRET_KEY = '<your_generated_key_here>'
Replace <your_generated_key_here>
with the key generated in step 6. .bashrc
or .profile
to make it permanent):export FLASK_APP=superset
superset db upgrade
superset fab create-admin
superset load-examples
superset init
superset run
Ensure that your firewall and port settings allow you to access the Superset web interface. To avoid having to export the FLASK_APP
environment variable every time you activate your virtual environment and run Apache-Superset
, you can make this setting persistent by adding it to your virtual environment's activation script. Here’s how you can do that:
[virtual Environment]/bin/activate
nano env/bin/activate
export FLASK_APP=superset
This line will automatically set the FLASK_APP
environment variable every time you activate your virtual environment.
deactivate
source env/bin/activate
echo $FLASK_APP
It should output superset.
If you encounter any issues during the installation, consider checking for:
This guide aims to help you smoothly set up Apache Superset on an Ubuntu system using Python 3.10. Happy data exploring!