> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# Apache Superset

> Apache Superset 支持对 数据库 的内部数据和外部数据进行查询和可视化处理。

Apache Superset 支持对 数据库 的内部数据和外部数据进行查询和可视化处理。

## 前提条件

确保您已完成如下工具安装：

1. 在 Apache Superset 服务器上安装 数据库 的 Python 客户端。

   ```SQL theme={null}
   pip install starrocks
   ```

2. 安装最新版本的 Apache Superset。具体参见[安装 Superset](https://superset.apache.org/docs/intro).

## 集成

在 Apache Superset 中创建数据库：

![Apache Superset - 1](https://mintcdn.com/mirrorship-docs/8gpPdHU-sBXASb5i/documents/images/164e6452ac3dac2271556a30.png?fit=max\&auto=format\&n=8gpPdHU-sBXASb5i\&q=85\&s=baa40f9fc2c975e611f38bd70ffc8abc)

![Apache Superset - 2](https://mintcdn.com/mirrorship-docs/8gpPdHU-sBXASb5i/documents/images/1bb5791f41d8f90cac7045c6.png?fit=max\&auto=format\&n=8gpPdHU-sBXASb5i\&q=85\&s=7f50104884a16cf3fe8ef80346725c9d)

创建过程中需要注意以下几点：

* 在 **SUPPORTED DATABASES** 里选择 **数据库** 作为数据源。
* 在 **SQLALCHEMY** **URI** 里，按如下 数据库 SQLAlchemy URI 格式填写 URI：

  ```SQL theme={null}
  starrocks://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>
  ```

  URI 参数说明如下：

  * `User`：用于登录 集群的用户名，如 `admin`。
  * `Password`：用于登录 集群的用户密码。
  * `Host`：集群的 FE 主机 IP 地址。
  * `Port`：集群的 FE 查询端口，如 `9030`。
  * `Catalog`：集群中的目标 Catalog。Internal Catalog 和 External Catalog 均支持。
  * `Database`：集群中的目标数据库。内部数据库和外部数据库均支持。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.