Apache Superset is an open-source data exploration and data visualization software application. As a database, RisingWave can act as a data source for Business Intelligence tools like Apache Superset.
This guide will go over how to:
To install and start RisingWave locally, see the Get started guide. We recommend running RisingWave locally for demo purposes.
Connect to a streaming source. For details on connecting to streaming sources and what sources are supported with RisingWave, see CREATE SOURCE.
To install Apache Superset, follow the instructions in Installing locally using Docker Compose. This guide will cover how to install the database driver in Docker, so we recommend installing it using Docker Compose.
Launch an instance of Apache Superset by following the instructions in Launch Superset through Docker Compose. To start Superset, enter http://localhost:8088
into your web browser.
If it is your first time starting Superset and the webpage asks for a username and password, use admin
for both.
The following UI page should appear.
Note that, the new version of RisingWave implements a wrapper on top of the original PostgreSQL SQLAlchemy driver. Therefore, we recommend using the connector library sqlalchemy-risingwave instead of psycopg2.
If the driver is not installed in the Docker container, you can install it by running the following commands:
risingwave://root@host.docker.internal:4566/dev
.
Instead of using Superset to create materialized views or tables, use RisingWave. For this guide, we will create the table t
and insert some data.
Once RisingWave starts, use the following queries to create the table t
and insert some values to the table.
Export the data from materialized views or tables in RisingWave to Superset:
public
schema.t
.Once the materialized view has been added as a dataset, it can be used to create dashboards.
To create a dashboard based on the table t
:
t
.ts
as the time column.AVG(v)
as the metric.For more details on creating dashboards, see the Creating your first dashboard guide.
Apache Superset is an open-source data exploration and data visualization software application. As a database, RisingWave can act as a data source for Business Intelligence tools like Apache Superset.
This guide will go over how to:
To install and start RisingWave locally, see the Get started guide. We recommend running RisingWave locally for demo purposes.
Connect to a streaming source. For details on connecting to streaming sources and what sources are supported with RisingWave, see CREATE SOURCE.
To install Apache Superset, follow the instructions in Installing locally using Docker Compose. This guide will cover how to install the database driver in Docker, so we recommend installing it using Docker Compose.
Launch an instance of Apache Superset by following the instructions in Launch Superset through Docker Compose. To start Superset, enter http://localhost:8088
into your web browser.
If it is your first time starting Superset and the webpage asks for a username and password, use admin
for both.
The following UI page should appear.
Note that, the new version of RisingWave implements a wrapper on top of the original PostgreSQL SQLAlchemy driver. Therefore, we recommend using the connector library sqlalchemy-risingwave instead of psycopg2.
If the driver is not installed in the Docker container, you can install it by running the following commands:
risingwave://root@host.docker.internal:4566/dev
.
Instead of using Superset to create materialized views or tables, use RisingWave. For this guide, we will create the table t
and insert some data.
Once RisingWave starts, use the following queries to create the table t
and insert some values to the table.
Export the data from materialized views or tables in RisingWave to Superset:
public
schema.t
.Once the materialized view has been added as a dataset, it can be used to create dashboards.
To create a dashboard based on the table t
:
t
.ts
as the time column.AVG(v)
as the metric.For more details on creating dashboards, see the Creating your first dashboard guide.