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

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

Asked Jun 27, 2024 Modified Jan 1, 0001
Viewed 75
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
doris3.1.3和doris4出现空指针异常问题
1 answers
FlightSqlDriver 更新一条数据报错,我用的最高权限的root, 只能查询不能更新,更新报错 AdbcException NAUTHENTICATED
1 answers
doris3读取mysql数据写入到hive报错UnsupportedFileSystemException: No FileSystem for scheme "s3"
3 answers
doris会支持iceberg的merge into写入吗
2 answers
Doris2.1.10使用catalog连接paimon,新增数据看不到,必须手动refresh CATALOG才能看得到
1 answers
查询Paimon的Catalog经常超时,查询不到数据。
1 answers

Terms of service Privacy policy

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