Skip to content

Starburst Enterprise Trino with the Aeropsike connector Docker Image

License

Notifications You must be signed in to change notification settings

aerospike-examples/starburst-aerospike.docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

starburst-aerospike-docker

Starburst Enterprise Trino with the Aeropsike connector Docker Image.

Quickstart

Build a Docker image. Make sure to adjust the server and the connector configuration in the docker/etc folder. You can pass the STARBURST_VERSION and the CONNECTOR_VERSION arguments with the docker build command.

docker build . -t starburst-aerospike

To launch it, execute the following:

docker run --rm -p 8080:8080 --name starburst-aerospike starburst-aerospike

Below is the list of environment variables you can specify to configure the Trino server and the Aerospike connector using the -e option.

Variable Description Default Value
AS_HOSTLIST Aerospike host list, a comma separated list of potential hosts to seed the cluster.
TABLE_DESC_DIR Path of the directory containing table description files.1 /etc/starburst/aerospike
SPLIT_NUMBER Number of Trino splits. See Parallelism section for more information. 4
CACHE_TTL_MS Number of milliseconds to keep the inferred schema cached. 1800000
STRICT_SCHEMAS Use a strict schema.2 false
DEFAULT_SET_NAME Table name for the default set. This is used when your namespace has a null set or no sets. __default
RECORD_KEY_NAME Column name for the record's primary key. Use this in the WHERE clause for queries involving primary key (PK) comparisons. __key
RECORD_KEY_HIDDEN If set to false, the primary key column will be available in the result set. true
INSERT_REQUIRE_KEY Require the primary key on INSERT queries. Although we recommend that you provide a primary key, you can choose not to by setting this property to false, in which case a UUID is generated for the PK. You can view it by setting aerospike.record-key-hidden to false for future queries. true
TRINO_DISCOVERY_URI The URI to the Discovery server. This should be the URI of the Trino coordinator. Replace the default value to match the host and port of the Trino coordinator. This URI must not end in a slash. http://localhost:8080
TRINO_NODE_TYPE The Trino node type, can be either coordinator or worker. single-node

1 To set the required schema configuration, bind-mount the table description folder on docker run.

-v "$(pwd)"/docker/etc/aerospike:/etc/starburst/aerospike

Wait for the following message log line:

INFO	main	io.trino.server.Server	======== SERVER STARTED ========

The Trino server is now running on localhost:8080 (the default port).

Multi-Node Starburst Enterprise Trino Cluster

To run a Trino cluster of one coordinator and one worker:

  • Start a Trino coordinator.
docker run --rm -p 8080:8080 -e TRINO_NODE_TYPE=coordinator -e AS_HOSTLIST=docker.for.mac.host.internal:3000 --name trino-aerospike-coordinator starburst-aerospike
  • Start a Trino worker1, specify the TRINO_DISCOVERY_URI to be the URI of the Trino coordinator.
docker run --rm -e TRINO_NODE_TYPE=worker -e AS_HOSTLIST=docker.for.mac.host.internal:3000 -e TRINO_DISCOVERY_URI=http://172.17.0.3:8080 --name trino-aerospike-worker starburst-aerospike

1 Run this command number of times with different container names to add more workers.

About

Starburst Enterprise Trino with the Aeropsike connector Docker Image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published