Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install superset on EC2

Getting Started With Superset: Airbnb’s data exploration platform

These instructions are for Amazon Linux Version 2

Update Python and PIP versions on EC2 (Amazon AMI)

sudo yum update -y
sudo yum install python3 -y

Adjust PATH

Add below lines to ~/.bashrc

export PATH=/usr/local/bin:$PATH
alias python=python3
source ~/.bashrc

Update PIP & other OS dependencies for Superset

sudo apt-get install --reinstall build-essential
sudo yum install gcc gcc-c++ python3-devel cyrus-sasl-devel
pip3 install cchardet==1.0.0

Validate Python and PIP

Check Python and PIP

$ python -V
Python 3.5.1

$ pip -V
pip 9.0.1 from /usr/local/lib/python3.5/site-packages (python 3.5)

Setup Superset

Install superset

sudo pip3 install superset

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

fabmanager create-admin --app superset

Initialize the database

superset db upgrade

Load some data to play with

superset load_examples

Create default roles and permissions

superset init

Start the web server on port 8088, use -p to bind to another port

superset runserver -p 8080

Adjust security group to allow http port

http://<EC2 Public DNS>:8080/



This comment has been minimized.

Copy link

@eponkratova eponkratova commented Jan 2, 2020

Hi Phillip, thank you for the write-up. Just wanted to comment that instead of 'sudo apt-get install --reinstall build-essential', you should change it to 'sudo yum groupinstall "Development Tools"'. I also believe that the 'superset runserver' should be changed to 'fabmanager run --app superset'.


This comment has been minimized.

Copy link

@thoang2347 thoang2347 commented Apr 2, 2020

Typo in 'superset load_examples'. Should be 'superset load-examples'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.