Superset 설치
pip3를 사용하여 superset을 설치해야 하므로 이전 포스팅의 pip3 업데이트를 진행 후 시작~!
2020/08/10 - [linux] - Linux python path설정 & pip3 업데이트
# Install superset
$ sudo pip install apache-superset
# Initialize the database
superset db upgrade
Admin user 생성
# Create an admin user (you will be prompted to set a username, first and last name before setting a password)
$ export FLASK_APP=superset
# admin user 생성
$ superset fab create-admin
load 데이터
# Load some data to play with
$ superset load_examples
# Create default roles and permissions
$ superset init
웹으로 확인하기
# To start a development web server on port 8088, use -p to bind to another port
$ superset run -p 8088 --with-threads --reload --debugger
만약, 서버에 붙어서 개발 중이라면 모든 ip 허용시키고 접근 (보안문제로 내부에서 테스트 할 때만 사용 권장)
$ superset run -h 0.0.0.0 -p 8088 --reload --debugger --with-threads
create admin에서 설정한 username과 password 사용
load 데이터로 시각화
참고
https://superset.apache.org/installation.html#superset-installation-and-initialization
Installation & Configuration — Apache Superset documentation
Getting Started Superset has deprecated support for Python 2.* and supports only ~=3.6 to take advantage of the newer Python features and reduce the burden of supporting previous versions. We run our test suite against 3.6, but 3.7 is fully supported as we
superset.apache.org
'Database > Superset' 카테고리의 다른 글
Superset에서 Druid database 사용하기 (1) | 2020.08.10 |
---|