Skip to content

Instantly share code, notes, and snippets.

@iamshreeram
Last active September 13, 2019 18:15
Show Gist options
  • Select an option

  • Save iamshreeram/2dfa3b594a0702f85608df4be813584e to your computer and use it in GitHub Desktop.

Select an option

Save iamshreeram/2dfa3b594a0702f85608df4be813584e to your computer and use it in GitHub Desktop.
Setting up druid and superset

Set up Druid

Follow the druid doc

Set up superset

Pre-Req

sudo apt-get install libsasl2-dev

conda activate superset
pip install --upgrade setuptools pip
pip install superset
pip install pandas==0.23.4
pip install flask==1.0.0
pip install sqlalchemy==1.2.18
pip install cryptography==2.4.2

pip install superset

superset db upgrade

Before starting,

export FLASK_APP=superset
flask fab create-admin
superset load_examples

Starting superset

gunicorn -w 2 --timeout 60 -b 0.0.0.0:8088 --limit-request-line 0 --limit-request-field_size 0 superset:app or superset run -p 9002 --with-threads --reload --debugger

Notes :

  1. Mostly, you would be seeing below error when you do db upgrade, ImportError: cannot import name '_maybe_box_datetimelike' from 'pandas.core.common' (/pathtofile/supersetvirtualenvironment/lib/python3.7/site-packages/pandas/core/common.py). You can fix by downgrading pandas with pip install pandas==0.23.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment