how to prepare the Env of trino
- with docker-compose. trino centor
version: "3.3"
services:
trino:
ports:
- "8080:8080"
image: "trinodb/trino:444"
volumes:
- ./trino/catalog:/etc/trino/catalog
network_mode: "host"
- mount catalog, from files
# casandra.properties
connect.name=
connect.contact-points=<host>
connect.load-policy.dc-aware.local-dc=
connect.username=
connect.password=
Open CLI
docker run exec -it --rm --network host trinodb/trino:444 /bin/bash -c "trino"
Restful
curl --localtion --requestion POST '127.0.0.1:8080/v1/statement' \
--header 'X-Trino-Source: postman'
--data-raw 'Select * From <TableName>'