Documentation Index

Fetch the complete documentation index at: https://kb.vastdata.com/llms.txt

Use this file to discover all available pages before exploring further.

Installing and Configuring the VAST Connector for Trino

Prev Next

Installing and Configuring the VAST Connector for Trino

VAST provides a Trino server and VAST Connector for Trino in a docker image.

Download the image for your version of VAST Cluster from https://hub.docker.com/r/vastdataorg/trino-vast. Follow the instructions there to configure the image on your client.

Compatibility of Trino versions with VAST Cluster

Trino Version

Trino Connector Version

Compatible VAST Cluster Versions

375

375

4.7 and later

420

420

5.0 and later

429

429

5.1 and later

443

443

5.2 and later

462

462

5.3 and later

475

475

5.4

Configuring Trino

vast.properties

The Trino image includes a VAST configuration file, vast.properties, which looks like this:

connector.name=vast
endpoint={VAST_ENDPOINT}
region=us-east-1
access_key_id={VAST_ACCESS_KEY_ID}
secret_access_key={VAST_SECRET_ACCESS_KEY}

# Preliminary tuning parameters
num_of_splits=64
num_of_subsplits=10
vast.http-client.request-timeout=60m
vast.http-client.idle-timeout=60m

data_endpoints={VAST_DATA_ENDPOINTS}

vast.http-client.request-timeout=100h
vast.http-client.idle-timeout=290s
vast.http-client.max-connections=100
vast.http-client.max-connections-per-server=50

Over-the-wire Compression of Query Results

You can configure the connector to compress query results as they are sent to the client, using zstandard compression.

To do this, add this line to the vast.properties file:

vast.compression=zstd

jvm.config

Add these lines to the jvm.config file:

--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED