From 36ca9c1064f8a4f18591363a7cb461c3a7aa5c57 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 22 Nov 2024 13:06:39 -0500 Subject: [PATCH] commit: 2024-11-22 13:06:39 --- superset.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 superset.md diff --git a/superset.md b/superset.md new file mode 100644 index 0000000..2366bb0 --- /dev/null +++ b/superset.md @@ -0,0 +1,44 @@ +https://superset.apache.org/docs/installation/configuring-superset/ + +create direcotry +``` +mkdir /opt/supserset/ +``` + +install pip +`sudo apt install python3-pip -y` + +setup virtual environment +``` +pip install virtualenv +# 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 +``` + +install superset +``` +pip install apache-superset +``` + +clone the default config file: +``` +wget https://github.com/apache/superset/blob/master/superset/config.py -o supset_config.py +``` + +configure: +https://superset.apache.org/docs/installation/configuring-superset/ +``` +~~export SUPERSET_CONFIG_PATH=/app/superset_config.py~~ +export SUPERSET_SECRET_KEY= +export SUPERSET_HOME= +export FLASK_APP=superset +superset db upgrade +``` + +create an admin user: +`superset fab create-admin` + +Create default roles and permissions +`superset init`