Skip to main content

Paimon JDBC Catalog

Before creating a catalog or running a load or export job, ensure that the warehouse can reach the service endpoint and that its credentials have the required metadata and data permissions. For private endpoints or service-side credential files, coordinate connectivity and provisioning with VeloDB Cloud support.

This document describes the supported parameters when connecting to and accessing Paimon Catalog metadata services using the JDBC interface through the CREATE CATALOG statement.

Tip:

This experimental feature is available from VeloDB Core 26.1.1. Coordinate JDBC driver requirements with VeloDB Cloud support before use.

Parameters​

Property NameDescriptionDefault ValueRequired
paimon.jdbc.uriSpecifies the JDBC connection URI-Yes
paimon.jdbc.userJDBC connection username, when required by the database-No
paimon.jdbc.passwordJDBC connection password, when required by the database-No
warehouseSpecifies the Paimon warehouse-Yes
paimon.jdbc.driver_classJDBC driver class name, such as org.postgresql.Driver, com.mysql.cj.jdbc.Driver, etc.-No
paimon.jdbc.driver_urlPath to JDBC driver JAR file-No

Note:

  1. Paimon JDBC Catalog supports various relational databases as backend storage, including PostgreSQL, MySQL, etc.

  2. Ask VeloDB Cloud support to approve and provision the JDBC driver. If instructed to use a reachable HTTPS driver URL, specify it via paimon.jdbc.driver_url.

Example configurations​

Use PostgreSQL for metadata​

View use postgresql for metadata

Using PostgreSQL database to store Paimon metadata:

CREATE CATALOG paimon_jdbc_postgresql PROPERTIES (
'type' = 'paimon',
'paimon.catalog.type' = 'jdbc',
'paimon.jdbc.uri' = 'jdbc:postgresql://<postgresql-host>:5432/paimon_db',
'paimon.jdbc.user' = 'paimon_user',
'paimon.jdbc.password' = '<database-password>',
'paimon.jdbc.driver_class' = 'org.postgresql.Driver',
'paimon.jdbc.driver_url' = '<https-jdbc-driver-url>',
'warehouse' = 's3://bucket/warehouse',
's3.access_key' = '<ak>',
's3.secret_key' = '<sk>',
's3.endpoint' = 'https://s3.us-east-1.amazonaws.com',
's3.region' = 'us-east-1'
);

Use MySQL for metadata​

View use mysql for metadata

Using MySQL database to store Paimon metadata:

CREATE CATALOG paimon_jdbc_mysql PROPERTIES (
'type' = 'paimon',
'paimon.catalog.type' = 'jdbc',
'paimon.jdbc.uri' = 'jdbc:mysql://<mysql-host>:3306/paimon_db',
'paimon.jdbc.user' = 'paimon_user',
'paimon.jdbc.password' = '<database-password>',
'paimon.jdbc.driver_class' = 'com.mysql.cj.jdbc.Driver',
'paimon.jdbc.driver_url' = '<https-jdbc-driver-url>',
'warehouse' = 's3://bucket/warehouse',
's3.access_key' = '<ak>',
's3.secret_key' = '<sk>',
's3.endpoint' = 'https://s3.us-east-1.amazonaws.com',
's3.region' = 'us-east-1'
);

Common errors​

For access-denied errors, check the identity and its permissions for both metadata and data. For timeouts, verify the service endpoint and network path from the warehouse. For errors involving a keytab, CA certificate, Hadoop XML file, or JDBC driver, contact VeloDB Cloud support with the error text and the operation that failed.