Skip to content

Data analysis and visualization with Apache Superset

简介

Apache软件基金会近日宣布Apache Superset晋升为ASF顶级项目。与此同时,Apache Superset也迎来了重大里程碑 1.0 版本。

主要具有以下功能特性:

  • 丰富的数据可视化集
  • 易于使用的界面,用于浏览和可视化数据
  • 创建和共享仪表板
  • 与主要身份验证提供程序(数据库,OpenID,LDAP,OAuth和REMOTE_USER通过Flask AppBuilder集成)集成的企业就绪身份验证
  • 可扩展的高粒度安全性/权限模型,允许有关谁可以访问单个要素和数据集的复杂规则
  • 一个简单的语义层,允许用户通过定义哪些字段应显示在哪些下拉列表中以及哪些聚合和功能度量可供用户使用来控制如何在UI中显示数据源
  • 通过SQLAlchemy与大多数说SQL的RDBMS集成
  • 与Druid.io的深度集成

安装

参考Installing Superset from Scratch,推荐使用pip安装

1、准备pyenv环境

  • 推荐virtualenv或者miniconda发行版

2、安装apache-superset

pip install apache-superset

3、初始化数据库

superset db upgrade

4、创建用户

# Create an admin user (you will be prompted to set a username, first and last name before setting a password)
$ export FLASK_APP=superset
superset fab create-admin

# Load some data to play with
superset load_examples

# Create default roles and permissions
superset init

5、启动

# To start a development web server on port 8088, use -p to bind to another port
superset run -p 8088 --with-threads --reload --debugger

后端是flask,默认监听127.0.0.1,如果希望监听0.0.0.0,添加-h 0.0.0.0参数

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

参考资料

  • https://github.com/apache/superset
  • https://superset.apache.org/
  • 支持数据源列表:https://superset.apache.org/docs/databases/installing-database-drivers

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try iOS App