Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 996 Bytes

trino.md

File metadata and controls

43 lines (29 loc) · 996 Bytes

Docs home

Deploy a Trino server

Launch a Trino server and shell, and query your Aerospike cluster with SQL.

Get the Aerospike cluster IPs

aerolab cluster list

Create the Trino client machine

Use 172.17.0.3:3000 as the Aerospike server seed IP:PORT

aerolab client create trino -n trino -s 172.17.0.3:3000

Change which Aerospike cluster the Trino server communicates with

Use 172.17.0.4:3000 as seed IP:PORT

aerolab client configure trino -n trino -s 172.17.0.4:3000

Attach to the Trino shell

In this example we'll connect the shell to the Aerospike cluster's test namespace.

aerolab attach trino -n trino -m test

Attach to the Trino shell - the long way

This example demonstrates passing the Trino shell command to the Trino client machine.

aerolab attach client -n trino -- su - trino -c "bash ./trino --server 127.0.0.1:8080 --catalog aerospike --schema test"