Skip to main content

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​

ScenarioSupport Status
Data IntegrationRead Kudu data and write to warehouse tables
Data Write-backNot 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 NameRequiredDefaultDescription
trino.kudu.client.master-addressesYes-List of Kudu Master node addresses
trino.kudu.authentication.typeNoNONEAuthentication type: NONE or KERBEROS
trino.kudu.authentication.client.principalNo-Kerberos client principal
trino.kudu.authentication.client.keytabNo-Kerberos keytab file path
trino.kudu.authentication.configNo-Kerberos configuration file path
trino.kudu.authentication.server.principal.primaryNo-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 TypeTrino TypeVeloDB Cloud TypeNotes
booleanbooleanboolean
int8tinyinttinyint
int16smallintsmallint
int32integerint
int64bigintbigint
floatrealfloat
doubledoubledouble
decimal(P, S)decimal(P, S)decimal(P, S)
binaryvarbinarystringUse HEX(col) function to query for display results consistent with Trino
stringvarcharstring
datedatedate
unixtime_microstimestamp(3)datetime(3)
otherUNSUPPORTED-Unsupported type

Tip:

For binary type, if you need to display in hexadecimal format, use the HEX() function to wrap the column name, for example: SELECT HEX(binary_col) FROM table.