[improvment](doc) add FAQ for Jdbc catalog (#31338)

This commit is contained in:
Petrichor
2024-02-23 20:33:25 +08:00
committed by yiguolei
parent 57d604c48a
commit e50a427113
2 changed files with 5 additions and 0 deletions

View File

@ -993,3 +993,5 @@ It is recommended to use the following versions of Driver to connect to the corr
You can download the [lz4-1.3.0.jar](https://repo1.maven.org/maven2/net/jpountz/lz4/lz4/1.3.0/lz4-1.3.0.jar) package first, and then put it in DorisFE lib directory and BE's `lib/lib/java_extensions` directory (versions before Doris 2.0 need to be placed in BE's lib directory).
Starting from version 2.0.2, this file can be placed in the `custom_lib/` directory of FE and BE (if it does not exist, just create it manually) to prevent the file from being lost due to the replacement of the lib directory when upgrading the cluster.
11. If there is a prolonged delay or no response when querying MySQL through JDBC catalog, or if it hangs for an extended period and a significant number of "write lock" logs appear in the fe.warn.log, consider adding a socketTimeout parameter to the URL. For example: `jdbc:mysql://host:port/database?socketTimeout=30000`. This prevents the JDBC client from waiting indefinitely after MySQL closes the connection.

View File

@ -996,3 +996,6 @@ CREATE CATALOG jdbc_oceanbase PROPERTIES (
可以先下载[lz4-1.3.0.jar](https://repo1.maven.org/maven2/net/jpountz/lz4/lz4/1.3.0/lz4-1.3.0.jar)包,然后放到DorisFE lib 目录以及BE 的 `lib/lib/java_extensions`目录中(Doris 2.0 之前的版本需放到 BE 的 lib 目录下)。
从 2.0.2 版本起,可以将这个文件放置在 FE 和 BE 的 `custom_lib/` 目录下(如不存在,手动创建即可),以防止升级集群时因为 lib 目录被替换而导致文件丢失。
11. 如果通过 Jdbc catalog 查询 MySQL 的时候,出现长时间卡住没有返回结果,或着卡住很长时间并且 fe.warn.log 中出现出现大量 write lock 日志,可以尝试在 url 添加 socketTimeout ,例如:`jdbc:mysql://host:port/database?socketTimeout=30000` , 防止 MySQL 在关闭连接后 Jdbc 客户端无限等待。