Installing Apache Superset on Ubuntu (Linux) Machine

Apache Superset

Installing Superset from Scratch

In Ubuntu 20.04 the following command will ensure that the required dependencies are installed:

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev python3-pip libsasl2-dev libldap2-dev

Python Virtual Environment

We highly recommend installing Superset inside of a virtual environment.

pip install virtualenv

You can create and activate a virtual environment using:

# virtualenv is shipped in Python 3.6+ as venv instead of pyvenv.
# See https://docs.python.org/3.6/library/venv.html
python3 -m venv venv
. venv/bin/activate

Installing and Initializing Superset

First, start by installing apache-superset:

pip install apache-superset

Then, you need to initialize the database:

superset db upgrade

Finish installing by running through the following commands:

# Create an admin user (you will be prompted to set a username, first and last name before setting a password)

$export FLASK_APP=superset
superset fab create-admin

Username [admin]: admin
User first name [admin]: Bigdata #Enter your first name as per your information I have choose Bigdata
User last name [user]: Engineer #Enter your last nace as per your information I have choose Engineer
Email [[email protected]]: [email protected]
Password: [Enter Password]
Repeat for confirmation:
Recognized Database Authentications.
Admin User admin created.

# Load some data to play with
superset load_examples

# Create default roles and permissions
superset init

# To start a development web server on port 8088, use -p to bind to another port
superset run -p 8088 --with-threads --reload --debugger

If everything worked, you should be able to navigate to hostname:port in your browser (e.g. locally by default at localhost:8088) and login using the username and password you created

Steps to Start and Stop Apache Superset

By Bhavesh

Leave a Reply

Your email address will not be published. Required fields are marked *