docs: modify fine bi plug windows path

This commit is contained in:
menshibin 2025-03-06 19:23:22 +08:00
parent a594199461
commit 362d77e5a2
2 changed files with 15 additions and 9 deletions

View File

@ -17,7 +17,10 @@ By using the TDengine Java connector, FineBI can quickly access the data in TDen
## Configure Data Source ## Configure Data Source
**Step 1**, Modify the FineBI service configuration. Open the configuration file `/usr/local/FineBI6.1/webapps/webroot/WEB-INF/embed/finedb/db.script`, find the configuration item `SystemConfig.driverUpload` and change its value to true. **Step 1**, In the `db.script` configuration file of the FineBI server, find the `SystemConfig.driverUpload` configuration item and change its value to true.
- Windows system: The path of the configuration file is webapps/webroot/WEB-INF/embed/finedb/db.script under the installation directory.
- Linux/Mac system: The path of the configuration file is /usr/local/FineBI6.1/webapps/webroot/WEB-INF/embed/finedb/db.script.
**Step 2**, Start the FineBI service. Enter `http://ip:37799/webroot/decision` in the browser, where "ip" is the IP address of the FineBI server. **Step 2**, Start the FineBI service. Enter `http://ip:37799/webroot/decision` in the browser, where "ip" is the IP address of the FineBI server.
@ -37,7 +40,7 @@ By using the TDengine Java connector, FineBI can quickly access the data in TDen
![finebi-workbook](./finebi/jdbc-connect.jpg) ![finebi-workbook](./finebi/jdbc-connect.jpg)
**Step 7**, On the configuration page, first enter the name of the data connection. Then, select "Custom" in the [Driver] option and choose the previously created data connection from the drop-down list (e.g., `com.taosdata.jdbc.ws.WebSocketDriver (tdengine-websocket)`). After that, configure the "Data Connection URL" (e.g., `jdbc:TAOS-WS://localhost:6041/power?user=root&password=taosdata&fineBIDialect=mysql`). Once the settings are completed, click [Test Connection] in the top-right corner to test the connection. After the verification is successful, click [Save] to finish the configuration. **Step 7**, On the configuration page, first enter the name of the data connection. Then, select "Custom" in the [Driver] option and choose the configured driver from the drop-down list (e.g., `com.taosdata.jdbc.ws.WebSocketDriver (tdengine-websocket)`). After that, configure the "Data Connection URL" (e.g., `jdbc:TAOS-WS://localhost:6041/power?user=root&password=taosdata&fineBIDialect=mysql`). Once the settings are completed, click [Test Connection] in the top-right corner to test the connection. After the verification is successful, click [Save] to finish the configuration.
:::tip :::tip
`fineBIDialect=mysql` The meaning of this setting is to adopt the SQL dialect rules of the MySQL database. Simply put, it tells FineBI to parse and execute relevant queries and operations in the specific way that the MySQL database handles SQL statements. `fineBIDialect=mysql` The meaning of this setting is to adopt the SQL dialect rules of the MySQL database. Simply put, it tells FineBI to parse and execute relevant queries and operations in the specific way that the MySQL database handles SQL statements.

View File

@ -5,7 +5,7 @@ title: 与 Fine BI 集成
帆软是一家专注于商业智能与数据分析领域的科技企业,凭借自主研发的 FineBI 和 FineReport 两款核心产品在行业内占据重要地位。帆软的 BI 工具广泛应用于各类企业,帮助用户实现数据的可视化分析、报表生成和数据决策支持。 帆软是一家专注于商业智能与数据分析领域的科技企业,凭借自主研发的 FineBI 和 FineReport 两款核心产品在行业内占据重要地位。帆软的 BI 工具广泛应用于各类企业,帮助用户实现数据的可视化分析、报表生成和数据决策支持。
通过使用 `TDengine Java connector` 连接器FineBI 可以快速访问 TDengine 的数据。用户可以在帆软 BI 中直接连接 TDengine 数据库,获取时序数据进行分析并制作可视化报表,整个过程不需要任何代码编写过程。 通过使用 `TDengine Java connector` 连接器FineBI 可以快速访问 TDengine 的数据。用户可以在 FineBI 中直接连接 TDengine 数据库,获取时序数据进行分析并制作可视化报表,整个过程不需要任何代码编写过程。
## 前置条件 ## 前置条件
@ -15,11 +15,14 @@ title: 与 Fine BI 集成
- taosAdapter 能够正常运行,详细参考 [taosAdapter 参考手册](../../../reference/components/taosadapter)。 - taosAdapter 能够正常运行,详细参考 [taosAdapter 参考手册](../../../reference/components/taosadapter)。
- FineBI 安装(如未安装,请下载并安装 [FineBI 下载](https://www.finebi.com/product/download))。 - FineBI 安装(如未安装,请下载并安装 [FineBI 下载](https://www.finebi.com/product/download))。
- 下载 `fine_conf_entity` 插件用于支持允许添加JDBC驱动, [下载地址](https://market.fanruan.com/plugin/1052a471-0239-4cd8-b832-045d53182c5d)。 - 下载 `fine_conf_entity` 插件用于支持允许添加JDBC驱动, [下载地址](https://market.fanruan.com/plugin/1052a471-0239-4cd8-b832-045d53182c5d)。
- 安装 JDBC 驱动。从 `maven.org` 下载 `TDengine JDBC` 连接器文件 `taos-jdbcdriver-3.4.0-dist.jar` 以上版本。 - 安装 JDBC 驱动。从 `maven.org` 下载 `TDengine JDBC` 连接器文件 `taos-jdbcdriver-3.4.0-dist.jar` 以上版本。
## 配置数据源 ## 配置数据源
**第 1 步**,修改 FineBI 服务配置,打开 `/usr/local/FineBI6.1/webapps/webroot/WEB-INF/embed/finedb/db.script` 配置文件,找到 `SystemConfig.driverUpload` 配置项并将其修改为 `true` **第 1 步**,在 FineBI 服务端 `db.script` 配置文件中,找到 `SystemConfig.driverUpload` 配置项并将其修改为 `true`
- Windows 系统:配置文件路径是安装目录下 `webapps/webroot/WEB-INF/embed/finedb/db.script`
- Liunx/Mac 系统:配置文件路径是 `/usr/local/FineBI6.1/webapps/webroot/WEB-INF/embed/finedb/db.script`
**第 2 步**,启动 FineBI 服务,在浏览器中输入 `http://ip:37799/webroot/decision`, 其中 ip 是 FineBI 服务端 ip 地址。 **第 2 步**,启动 FineBI 服务,在浏览器中输入 `http://ip:37799/webroot/decision`, 其中 ip 是 FineBI 服务端 ip 地址。
@ -39,10 +42,10 @@ title: 与 Fine BI 集成
![finebi-workbook](./finebi/jdbc-connect.jpg) ![finebi-workbook](./finebi/jdbc-connect.jpg)
**第 7 步**,在配置页面,先输入数据连接名称,接着在【驱动】选项中选择 “自定义”,并从下拉列表里选取已创建的数据连接(例如 `com.taosdata.jdbc.ws.WebSocketDriver (tdengine-websocket)`),之后配置 “数据连接 URL”例如 `jdbc:TAOS-WS://localhost:6041/power?user=root&password=taosdata&fineBIDialect=mysql`)。设置完成后,点击右上角的【测试连接】进行连接测试,验证成功后点击【保存】即可完成配置。 **第 7 步**,在配置页面,先输入数据连接名称,接着在【驱动】选项中选择 “自定义”,并从下拉列表里选取已配置的驱动(例如 `com.taosdata.jdbc.ws.WebSocketDriver (tdengine-websocket)`),之后配置 “数据连接 URL”例如 `jdbc:TAOS-WS://localhost:6041/power?user=root&password=taosdata&fineBIDialect=mysql`)。设置完成后,点击右上角的【测试连接】进行连接测试,验证成功后点击【保存】即可完成配置。
:::tip :::tip
`fineBIDialect=mysql` 设置的含义是采用 MySQL 数据库的 SQL 方言规则。简单来说,就是告诉帆软按照 MySQL 数据库处理 SQL 语句的特定方式来解析和执行相关的查询与操作。 `fineBIDialect=mysql` 设置的含义是采用 MySQL 数据库的 SQL 方言规则。简单来说,就是告诉 FineBI 按照 MySQL 数据库处理 SQL 语句的特定方式来解析和执行相关的查询与操作。
::: :::
![finebi-workbook](./finebi/jdbc-config.jpg) ![finebi-workbook](./finebi/jdbc-config.jpg)
@ -51,7 +54,7 @@ title: 与 Fine BI 集成
### 数据准备 ### 数据准备
**第 1 步**,点击【公共数据】在右侧页面中点击【新建文件夹】即可创建一个文件夹(比如 `TDengine` 接着在文件夹的右侧点击【+】按钮,可创建 “数据库表” 数据集或 “SQL数据集 **第 1 步**,点击【公共数据】在右侧页面中点击【新建文件夹】即可创建一个文件夹(比如 `TDengine` 接着在文件夹的右侧点击【+】按钮,可创建 “数据库表” 数据集或 “SQL数据集
![finebi-workbook](./finebi/common.jpg) ![finebi-workbook](./finebi/common.jpg)
@ -61,7 +64,7 @@ title: 与 Fine BI 集成
![finebi-workbook](./finebi/table-data.jpg) ![finebi-workbook](./finebi/table-data.jpg)
**第 3 步**,点击 “SQL数据集”打开 SQL 数据集的配置页面,首先输入表名(用于在帆软页面显示),接着在 “数据来自数据连接” 下拉列表中选择已创建的连接, 之后输入 SQL 语句并点击预览即可看到查询结果最后点击【确定】SQL 数据集即可创建成功。 **第 3 步**,点击 “SQL数据集”打开 SQL 数据集的配置页面,首先输入表名(用于在 FineBI 页面显示),接着在 “数据来自数据连接” 下拉列表中选择已创建的连接, 之后输入 SQL 语句并点击预览即可看到查询结果最后点击【确定】SQL 数据集即可创建成功。
![finebi-workbook](./finebi/sql-data-config.jpg) ![finebi-workbook](./finebi/sql-data-config.jpg)