Apache Superset 2 1 installation in ec2 | Latest supserset handson

Опубликовано: 27 Сентябрь 2024
на канале: Sreyobhilashi IT
3,620
42

If u want Pyspark and superset training, call: +91-8500002025 or join https://t.me/SparkTraining for better communication
in this video, i am explaining how to install Apache superset 2.1 version in AWS Ec2 hands-on.

sudo apt update
sudo apt upgrade
sudo apt-get install build-essential libssl-dev libffi-dev python3-dev python3-pip libsasl2-dev libldap2-dev default-libmysqlclient-dev

pip install --upgrade pip

pip install virtualenv


export PATH=/home/ubuntu/venv/bin:$PATH

sudo apt-get install pkg-config

pip install mysqlclient
pip install cx_Oracle
pip install snowflake-sqlalchemy
pip install pymssql
pip install pyhive
pip install sqlalchemy-redshift

sudo apt install python3.10-venv
python3 -m venv venv

. venv/bin/activate

//install superset
sudo pip install numpy pandas

pip install apache-superset

pip install marshmallow-enum
pip install sqlparse==0.4.3
export FLASK_APP=superset
flask fab create-admin

'''
A Default SECRET_KEY was detected, please use superset_config.py to override it.
Use a strong complex alphanumeric string and use a tool to help you generate
a sufficiently random sequence, ex: openssl rand -base64 42''''
#if u get like this execute this command

openssl rand -base64 42
WWR8GwolaJNuKyJMwh/K1mtx9MKP+qXduNCB4EM1wdeJG/kVk7I+GLz5


vi venv/lib64/python3.10/site-packages/superset/config.py
#go to 195 line

superset db upgrade

superset init



superset load_examples

#ModuleNotFoundError: No module named 'marshmallow_enum'

flask fab create-admin

#go to ec2, add 8088 port in security group

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


superset run -h 0.0.0.0 -p 8088 --with-threads --reload --debugger
superset run -h ip-172-31-40-155.ap-south-1.compute.internal -p 8088 --with-threads --reload --debugger // its private host

http://ec2-172-31-40-20.ap-south-1.co... // its public hostname