Connecting Apache Iceberg clients

Virtual Storage Platform One Object Administration Guide

Version
3.4.x
FileSize
1775 KB
Audience
anonymous
Part Number
MK-24VSP1OB000-05
ft:lastEdition
2026-09-09
Product
Virtual Storage Platform One Object

VSP One Object implements the complete Apache Iceberg REST API, in addition to the S3 Table Bucket and Tables APIs. This allows Apache Iceberg clients to connect directly to VSP One Object as an Iceberg catalog.

Before connecting, ensure the following prerequisites are met:

  • The Apache Iceberg client has network access to the VSP One Object endpoints.
  • An S3 Table bucket has been created, and its S3 access and secret keys are available.
  • Client credentials are created to allow the client to connect to the Apache Iceberg catalog APIs.
  • An S3 Table bucket, namespace, and one or more S3 tables are created.
  • If the Apache Iceberg client does not support self-signed certificates, export the VSP One Object certificates and import them into the client’s trust store.

Apache Iceberg catalog endpoints

Apache Iceberg clients must connect to an Iceberg catalog. In VSP One Object, the catalog is available at a region-specific URL in the following format:

https://lakehouse.s3.<region>.<vsp_one_object_domain>/catalog

For example:

https://lakehouse.s3.us-east-1.vspoc21.tkg.eng.hitachivantara.com/catalog
Note: The Apache Iceberg catalog is region-specific. Connect your client to the catalog in the same region where your S3 Table bucket resides.

To authenticate an Apache Iceberg client with the VSP One Object OIDC provider, use a token endpoint URL in the following format:https://admin.gms.<system-name>.company.com/ui/auth/realms/vsp-object/protocol/openid-connect/token

Generating clients

This section describes how a VSP One Object Keycloak administrator can create an OIDC service-to-service client using the Client Credentials grant type with extended access token lifetimes. This type of client can be used by Trino, Spark, or any service that needs to obtain a bearer token to call data APIs.

The Client Credentials grant does not issue refresh tokens. For long-lived sessions, either increase the access token lifespan (per client) or re-request a new token as needed.

  1. Create a confidential client.
    1. In Keycloak, click Clients.
    2. Click Create client.
    3. Under the General settings step, set the following values:
      • Client type: OpenID Connect
      • Client ID: Use a descriptive name, for example:
        • trino-svc-<client_name> for a Trino client
        • spark-svc-<client_name> for a Spark client
    4. Click Next.
    5. Under the Capability config step, set the following values:
      • Client authentication: On (confidential client)
      • Authorization: Off (unless required)
      • Standard flow: Off
      • Direct access grants: Off
      • Service accounts roles: On
    6. Click Next.
    7. Under the Login settings step, make note of your Root URL and Home URL, then click Save.

Verifying and retrieving client credentials

Use this secret when configuring Trino, Spark, or any other Apache Iceberg client that supports OIDC.

  1. In Keycloak, click Clients.
  2. Select the Credentials tab.
  3. Under Client Secret, view or copy the secret.

Increasing access token lifespan

Set the access token lifespan long enough for the client to complete its session without the token expiring.

  1. In Keycloak, click Clients.
  2. From the Clients list, select your client.
  3. Select the Advanced tab.
  4. Under Advanced settings, enter your desired value for the Access Token Lifespan setting.
  5. Click Save.

Connecting to VSP One Object self-signed certificates

Your Apache Iceberg client typically needs to connect to both the VSP One Object S3 endpoint and the OIDC endpoint hosted by Keycloak. Each endpoint uses its own self-signed certificate. Because many Apache Iceberg clients do not trust self-signed certificates by default, you may need to take additional steps to avoid connection failures due to certificate errors.

You have two main options:

  1. Check for client support of self-signed certificates.

    Some Apache Iceberg clients allow connections to self-signed certificates by using an ignore or override flag. Consult your client’s documentation to determine if this option is available.

  2. Import the VSP One Object CA certificates.

    Export the Keycloak and S3 CA certificates from VSP One Object, then import them into the certificate trust store used by your Apache Iceberg client.

    • To export the Keycloak CA certificate:
      openssl s_client -connect admin.gms.100gvsp1o.company.com:443 < /dev/null 2>/dev/null | openssl x509 > pem/kc.pem
      
    • To export the S3 CA certificate:
      openssl s_client -connect s3.site02.100gvsp1o.company.com:443 < /dev/null 2>/dev/null | openssl x509 > pem/s3.pem
      

    After exporting, follow your Apache Iceberg client’s documentation to import the certificates into its trust store.

Connecting Apache Iceberg clients

The following example shows how to configure Apache Trino to connect to VSP One Object. Before configuring Trino, ensure the following requirements are met:

  • Network access to VSP One Object endpoints has been assigned
  • S3 bucket access keys and secret keys have been created
  • Client credentials for Trino have been created in Keycloak
  • An S3 Table bucket, namespace, and table have been created
Note: This section covers only the high-level configuration options for Trino. It assumes Trino is already installed and running in your environment.

In addition to the S3 access key, secret key, and client credentials, the Keycloak and S3 CA certificates must be added to the Java keystore used by your Trino deployment. This ensures that Trino can trust the self-signed certificates and avoids SSL verification errors.

To export the Keycloak CA certificate:
openssl s_client -connect admin.gms.100gvsp1o.company.com:443 < /dev/null 2>/dev/null | openssl x509 > pem/kc.pem
To export the the S3 CA certificate:
openssl s_client -connect s3.site02.100gvsp1o.company.com:443 < /dev/null 2>/dev/null | openssl x509 > pem/s3.pem

With the prerequisites and certificates in place, you can now configure Trino to connect to VSP One Object.

Importing the Keycloak and S3 Certificates

Before Trino can connect securely to VSP One Object, it must trust the self-signed certificates used by the Keycloak and S3 endpoints. To establish this trust, you need to import the exported Keycloak and S3 CA certificates into the Java keystore on each Trino coordinator and worker node.

To do this:

  1. Copy the exported certificates (kc.pem and s3.pem) to the Trino coordinator and worker nodes. For this example, the certificates are placed in /etc/trino/custom-ca/.
  2. On each coordinator and worker node, import the certificates into the Java keystore:
    keytool -import -alias s3 -keystore $JAVA_HOME/lib/security/cacerts \
      -file /etc/trino/custom-ca/s3.pem -storepass changeit -noprompt  
    
    keytool -import -alias kc -keystore $JAVA_HOME/lib/security/cacerts \
      -file /etc/trino/custom-ca/kc.pem -storepass changeit -noprompt  
    
  3. Verify that the certificates were successfully imported:
    keytool -list -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit | grep s3  
    keytool -list -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit | grep kc  
    

Creating the catalog properties file

After the certificates are imported, create a catalog properties file for the new bucket. The file defines how Trino connects to the VSP One Object catalog and bucket.

It should include the following key properties:

  • iceberg.rest-catalog.uri: Points to the VSP One Object catalog endpoint. It should be formatted as:
    https://lakekeeper.s3.<region>.<system-name>.company.com/catalog
    
  • iceberg.rest-catalog.oauth2.credential: The catalog client credentials generated earlier. It should be formatted as:
    <client-name>:<client-secret>
  • iceberg.rest-catalog.oauth2.server-uri: The VSP One Object Keycloak endpoint. It should be formatted as:
    https://admin.gms.<system-name>.company.com/ui/auth/realms/vsp-object/protocol/openid-connect/token
    
  • iceberg.rest-catalog.warehouse: Specifies the target S3 Table bucket.
  • s3.aws-access-key and s3.aws-secret-key: The bucket access key and secret key created earlier.
  • s3.region: Specifies the region (for example, site02).

Deploying the catalog properties File

Copy the completed catalog properties file to the /etc/trino/catalog/ directory on the coordinator node and each worker node.

Verifying Trino access to VSP One Object S3 Tables

After configuring Trino and deploying the catalog properties file, verify that it can connect to VSP One Object and access the S3 Table using the CLI.
trino> show catalogs;
This ensures the certificates, credentials, and catalog settings are all applied correctly before using Trino for queries.