Apache Doris catalog
Introduction
Apache Gravitino provides the ability to manage Apache Doris metadata through JDBC connection.
Gravitino saves some system information in schema and table comments, like
(From Gravitino, DO NOT EDIT: gravitino.v1.uid1078334182909406185), please don't change or remove this message.
Catalog
Catalog capabilities
- Gravitino catalog corresponds to the Doris instance.
- Supports metadata management of Doris (1.2.x).
- Supports table index.
- Supports column default value.
Catalog properties
You can pass to a Doris data source any property that isn't defined by Gravitino by adding
gravitino.bypass. prefix as a catalog property. For example, catalog property
gravitino.bypass.maxWaitMillis will pass maxWaitMillis to the data source property.
You can check the relevant data source configuration in data source properties for more details.
Besides the common catalog properties, the Doris catalog has the following properties:
| Configuration item | Description | Default value | Required | Since Version |
|---|---|---|---|---|
jdbc-url | JDBC URL for connecting to the database. For example, jdbc:mysql://localhost:9030 | (none) | Yes | 0.5.0 |
jdbc-driver | The driver of the JDBC connection. For example, com.mysql.jdbc.Driver. | (none) | Yes | 0.5.0 |
jdbc-user | The JDBC user name. | (none) | Yes | 0.5.0 |
jdbc-password | The JDBC password. | (none) | Yes | 0.5.0 |
jdbc.pool.min-size | The minimum number of connections in the pool. 2 by default. | 2 | No | 0.5.0 |
jdbc.pool.max-size | The maximum number of connections in the pool. 10 by default. | 10 | No | 0.5.0 |
jdbc.pool.max-size | The maximum number of connections in the pool. 10 by default. | 10 | No | 0.5.0 |
replication_num | The number of replications for the table. If not specified and the number of backend servers less than 3, then the default value is 1; If not specified and the number of backend servers greater or equals to 3, the default value (3) in Doris server will be used. For more, please see the doc | 1 or 3 | No | 0.6.0-incubating |
Before using the Doris Catalog, you must download the corresponding JDBC driver to the catalogs/jdbc-doris/libs directory.
Gravitino doesn't package the JDBC driver for Doris due to licensing issues.
Catalog operations
Refer to Manage Relational Metadata Using Gravitino for more details.
Schema
Schema capabilities
- Gravitino's schema concept corresponds to the Doris database.
- Supports creating schema.
- Supports dropping schema.
Schema properties
- Support schema properties, including Doris database properties and user-defined properties.
Schema operations
Please refer to Manage Relational Metadata Using Gravitino for more details.