Kudu Catalog
Run catalog SQL with a warehouse SQL user that can manage catalogs and access the source. Ensure network access from the warehouse to metadata, storage, and source endpoints. For connector deployment, host files, JVM settings, or service configuration changes, contact VeloDB Cloud support.
Note:
This integration is experimental. Confirm connector availability and the required endpoint and credential configuration with VeloDB Cloud support before using these examples.
Overview
Kudu Catalog accesses Kudu tables through the Trino Connector compatibility framework using Trino Kudu Connector.
Note:
- This connector is experimental.
- This feature does not depend on a Trino cluster environment and only uses the Trino compatibility plugin.
Use cases
| Scenario | Support Status |
|---|---|
| Data Integration | Read Kudu data and write to warehouse tables |
| Data Write-back | Not supported |
Version compatibility
- Warehouse: Confirm connector availability with VeloDB Cloud support.
- Trino Connector Version: 435
- Kudu Version: For supported versions, please refer to Trino Documentation
Quick start
1. prepare the managed connector
Contact VeloDB Cloud support to confirm this experimental connector's availability, plugin version, source credentials, and network access for the warehouse. Plugin installation and service restarts are managed operations.
2. create a catalog
Basic Configuration (Without Authentication)
CREATE CATALOG kudu_catalog PROPERTIES (
'type' = 'trino-connector',
'trino.connector.name' = 'kudu',
'trino.kudu.client.master-addresses' = 'ip1:port1,ip2:port2,ip3:port3',
'trino.kudu.authentication.type' = 'NONE'
);
Kerberos Authentication Configuration
CREATE CATALOG kudu_catalog PROPERTIES (
'type' = 'trino-connector',
'trino.connector.name' = 'kudu',
'trino.kudu.client.master-addresses' = 'ip1:port1,ip2:port2,ip3:port3',
'trino.kudu.authentication.type' = 'KERBEROS',
'trino.kudu.authentication.client.principal' = 'user@DOMAIN.COM',
'trino.kudu.authentication.client.keytab' = '/path/to/kudu.keytab',
'trino.kudu.authentication.config' = '/etc/krb5.conf',
'trino.kudu.authentication.server.principal.primary' = 'kudu'
);
3. query data
After creating the Catalog, you can query Kudu table data using one of the following three methods:
-- Method 1: Query after switching to Catalog
SWITCH kudu_catalog;
USE kudu_db;
SELECT * FROM kudu_tbl LIMIT 10;
-- Method 2: Use two-level path
USE kudu_catalog.kudu_db;
SELECT * FROM kudu_tbl LIMIT 10;
-- Method 3: Use fully qualified name
SELECT * FROM kudu_catalog.kudu_db.kudu_tbl LIMIT 10;
Configuration
Catalog configuration parameters
The basic syntax for creating a Kudu Catalog is as follows:
CREATE CATALOG [IF NOT EXISTS] catalog_name PROPERTIES (
'type' = 'trino-connector', -- Required, fixed value
'trino.connector.name' = 'kudu', -- Required, fixed value
{TrinoProperties}, -- Trino Connector related properties
{CommonProperties} -- Common properties
);
TrinoProperties parameters
TrinoProperties are used to configure Trino Kudu Connector specific properties, prefixed with trino.. Common parameters include:
| Parameter Name | Required | Default | Description |
|---|---|---|---|
trino.kudu.client.master-addresses | Yes | - | List of Kudu Master node addresses |
trino.kudu.authentication.type | No | NONE | Authentication type: NONE or KERBEROS |
trino.kudu.authentication.client.principal | No | - | Kerberos client principal |
trino.kudu.authentication.client.keytab | No | - | Kerberos keytab file path |
trino.kudu.authentication.config | No | - | Kerberos configuration file path |
trino.kudu.authentication.server.principal.primary | No | - | Kudu server principal prefix |
For more Kudu Connector configuration parameters, please refer to Trino Official Documentation.
CommonProperties parameters
CommonProperties are used to configure general Catalog properties, such as metadata refresh policies, access control, etc. For detailed information, please refer to the "Common Properties" section in Catalog Overview.
Data type mapping
When using Kudu Catalog, data types are mapped according to the following rules:
| Kudu Type | Trino Type | VeloDB Cloud Type | Notes |
|---|---|---|---|
| boolean | boolean | boolean | |
| int8 | tinyint | tinyint | |
| int16 | smallint | smallint | |
| int32 | integer | int | |
| int64 | bigint | bigint | |
| float | real | float | |
| double | double | double | |
| decimal(P, S) | decimal(P, S) | decimal(P, S) | |
| binary | varbinary | string | Use HEX(col) function to query for display results consistent with Trino |
| string | varchar | string | |
| date | date | date | |
| unixtime_micros | timestamp(3) | datetime(3) | |
| other | UNSUPPORTED | - | Unsupported type |
Tip:
For
binarytype, if you need to display in hexadecimal format, use theHEX()function to wrap the column name, for example:SELECT HEX(binary_col) FROM table.