Merge branch 'master' of gitea.hptrow.me:pt/notes
This commit is contained in:
commit
77575d3cc3
44
superset.md
Normal file
44
superset.md
Normal file
@ -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`
|
Loading…
Reference in New Issue
Block a user