Apache Superset(아파치 슈퍼셋)을 설치하는 방법에는 몇 가지 방법이 있는데 공식문서에 잘 정리되어 있다.
1. Docker로 설치하는 방법
https://superset.apache.org/docs/installation/installing-superset-using-docker-compose
Installing Locally Using Docker Compose
The landing page and doc size for getting started with Apache Superset
superset.apache.org
2. 그냥 생으로 설치하는 방법
https://superset.apache.org/docs/installation/installing-superset-from-scratch
Installing From Scratch
The landing page and doc size for getting started with Apache Superset
superset.apache.org
안타깝게도 Windows는 공식적으로는 지원하고 있지 않다고 한다.
하지만 Installing From Scrath에 나와있는 Python Virtual Environment을 활용하면 Windows에서도 설치가 가능하다.
우선 Microsoft Visual C++ standalon Build Tool과 Python을 설치한다.
1. Microsoft Visual C++ 14.x standalone Build Tools for Visual Studio 2019 (x86, x64, ARM, ARM64)
- MSVCv142 - VS 2019 C++ x64/x86 build tools 최신버전 선택
- Windows 10 SDK 선택하여 설치
2. Python 설치(참고한 자료에서는 3.7.x에서 설치했다고 하고 3.8.x에서도 정상 동작하는 것을 확인했다.)
- installer의 PIP도 선택하여 설치
- PATH에 추가
3. 그 다음으로는 아래 내용을 명령 프롬프트나 powershell에서 실행하면 된다.
:: 폴더 생성
mkdir D:\superset
cd /d D:\superset
:: 버전 체크(python과 pip이 제대로 설치되어 있다면 버전이 표시된다)
python --version
pip --version
:: Setuptools & PIP 업그레이드
pip install --upgrade setuptools pip
:: python 가상환경 생성
python -m venv venv
:: python 가상환경 활성화
venv\Scripts\activate
:: 가상환경에 pip 설치
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py --ssl-no-revoke
python get-pip.py
:: 가상환경에서 pip 업그레이드
pip install --upgrade setuptools pip
:: Superset 설치
pip install apache-superset
:: DB Drivers(Postgres & MS SQL) 설치
pip install psycopg2
pip install pymssql
:: Scripts 폴더로 이동
cd venv\Scripts
:: superset db 생성
superset db upgrade
:: admin user 생성
set FLASK_APP=superset
flask fab create-admin
:: 예제 Load(안해도 됨)
superset load_examples
:: 기본 role, 권한 생성
superset init
:: superset 시작(8088포트)
superset run -p 8088 --with-threads --reload --debugger
localhost:8088로 접속을 한 후 아까 생성한 admin 계정으로 로그인을 하면 된다.
참고자료
1. https://gist.github.com/mark05e/d9cccae129dd11a21d7219eddd7d9923
Installing Apache Superset on Windows 10
Installing Apache Superset on Windows 10. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
'데이터 시각화 > superset' 카테고리의 다른 글
Apache Superset(아파치 슈퍼셋) 개요, 장/단점 (2) | 2022.03.13 |
---|---|
Apache Superset(아파치 슈퍼셋) 검색조건 Filter 추가하기 - 1 (0) | 2021.11.19 |
Apache Superset(아파치 슈퍼셋) 설정 파일(superset_config.py) (0) | 2021.11.19 |
Apache Superset(아파치 슈퍼셋) Chart(차트), Dashboard(대시보드) (0) | 2021.11.19 |
Apache Superset(아파치 슈퍼셋) DB 연결하기 (0) | 2021.11.19 |