You are on page 1of 3

--------------

Pre-requisite:
--------------

1. MS Visual Studio 2019 and above : (Download Here:


https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019)

After installation, launch the application and sign in with your Kanini
Microsoft id.
In case of any difficulties w.r.t login id, please reach to Dinesh Ganesh of IT
Application Support.

2. Install Python 3.7.x (Download from Microsoft Store)

3. Install MySQL Database : (Watch this YouTube Video


https://www.youtube.com/watch?v=vykyVa7qsGE)
After successfull installation, MySQL Shell and MySQL Workbench will pop up. In
MySQL Workbench, click on the instance listed at bottom.

-----------------------------------------------------------------------------------
-
###### Apache Superset Installation ######
-----------------------------------------------------------------------------------
-
## Follow next three steps in case existing installation failed or unable to
recover from failure point
## To uninstall the setup, delete the folder d:\superset that was created during
installation
## Clear superset cache in C:\ by searching keyword 'superset' and delete the
folder '.superset' under C:\Users\Administrator\
## Clear pip cache in C:\ by searching keyword 'pip' and delete the folder 'pip'
under C:\Users\Administrator\AppData\Local\Packages\
PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\Local\

-----------------------------------
## New installation steps start ##
-----------------------------------
## https://gist.github.com/mark05e/d9cccae129dd11a21d7219eddd7d9923

#Install superset in Python environment

#Ideally run these commands sequentially ...

# :: Create directory to host the files

mkdir D:\superset

cd /d D:\superset

# :: Check Versions

python --version

pip --version

# :: Upgrade Setuptools & PIP

pip install --upgrade setuptools pip


# :: Create Virtual Environment named venv

python -m venv venv

# :: Activate Virtual Environment

venv\Scripts\activate

# :: Workaround - Install PIP within Virtual Environment

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

python get-pip.py

# :: Workaround - Upgrade Setuptools & PIP within venv

pip install --upgrade setuptools pip

# :: Install Superset

pip install apache-superset

## If this shows python-geohash error then we have to manually add the


library to D:\superset\venv\Lib\site-packages
## geohash.py, python_geohash-0.8.5.dist-info

# :: Install SQLAlchemy (optional) (**preferably the latest version**) in case the


above step shows any warning or error related to SQLAlchemy

pip install SQLAlchemy==1.3.24

# :: Install DB Drivers - Postgres & MS SQL

pip install psycopg2

pip install pymssql

# :: Open Scripts folder to do superset related stuff

cd venv\Scripts

# :: Create application database

python superset db upgrade

# If this step shows error, then check the installed packages and it should
list superset

pip freeze

# above command will list all the python packages installed and we should
see superset listed. If superset not listed then

pip install superset

and then

python superset db upgrade


# :: Create admin user

set FLASK_APP=superset

flask fab create-admin

# :: Use the below credentials:


# :: We use User name as admin because superset load_examples works only when the
user name is admin and nothing else

User name: admin


First name: admin
Last name: superset
Email: admin@gmail.org
Pwd: Admin@123

# :: Load some data to play with (optional)

python superset load_examples

# :: Create default roles and permissions

python superset init

# :: Start web server on port 8088

python superset run -p 8088 --with-threads --reload --debugger

#If the above command is successful. You will get a host link which can be used to
launch Superset--

You might also like