Apache Doris 中文技术论坛
Questions Tags Users Badges

doris 通过jdbc或者arrow-flight-sql 如何连接到外部的 Catalog读取数据

Asked Jun 27, 2024 Modified Jan 1, 0001
Viewed 64
catalog

在代码中直接通过jdbc连接,默认连接到 internal catalog,如何切换到外部的catalog读取数据

edited Jan 1, 0001
280810563
asked Jun 27, 2024
1 Answers

三种方式
1、使用 SQL 切换 Catalog:switch catalog_name;
2、使用 SQL 直接切换 Catalog 下面的 Database:use catalog_name.database_name;
3、JDBC URL 中使用 catalog_name.db 可以指定默认 Catalog,例如:jdbc:mysql://FE_IP:FE_PORT/catalog.db?useSSL=false

edited Jun 27, 2024
zy-kkk666
answered Jun 27, 2024
Related Questions
doris存算分离查询paimon catalog问题
1 answers
manager-agent报错 异常信息:Agent heartbeat failed too many times
3 answers
使用 JOB 定时执行 INSERT INTO SELECT 报错 Execute timeout
Doris2.1.7版本在使用JDBC类型的catalog遇到数据源大小写一致表名无法处理的问题
1 answers
flink写入数据到doris flink程序没有异常 doris在查询的时候出现rpc超时
1 answers
【doris查询paimon catalog表】连续执行同一个查询sql出现性能波动 和 并发执行同一个查询明显变慢
3 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Doris 中文技术论坛.