๐ณ๏ธโ๐ [๊ถ๊ธํ์ ]
๋ฌธ์ ์ฐ๊ฒฐ
helm repo add trino https://trinodb.github.io/charts
helm pull trino/trino --untar
sudo apt update
sudo apt install openjdk-21-jdk-headless
curl -O https://repo1.maven.org/maven2/io/trino/trino-cli/366/trino-cli-366-executable.jar
chmod +x trino-cli-366-executable.jar
sudo ln -s trino-cli-366-executable.jar /usr/local/bin/trino
cp values.yaml dev-values.yaml
service:
type: NodePort
helm install mytrino . -n trino --create-namespace -f dev-values.yaml
NAME: mytrino
LAST DEPLOYED: Fri May 30 18:42:08 2025
NAMESPACE: trino
STATUS: deployed
REVISION: 1
NOTES:
Get the application URL by running these commands:
export NODE_PORT=$(kubectl get --namespace trino -o jsonpath="{.spec.ports[0].nodePort}" services mytrino-trino)
export NODE_IP=$(kubectl get nodes --namespace trino -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
http://192.168.56.10:32501
TRINO ์๋น์ค
kubectl get svc -n trino
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
mytrino-trino NodePort 10.111.8.162 8080:32501/TCP 53s
mytrino-trino-worker ClusterIP None 8080/TCP 53s
> ## TRINO POD
``` bash
kubectl get po -n trino
NAME READY STATUS RESTARTS AGE
mytrino-trino-coordinator-74f7b6955d-wqxvz 1/1 Running 0 63s
mytrino-trino-worker-54b468cb49-4xn26 1/1 Running 0 63s
mytrino-trino-worker-54b468cb49-ks77f 1/1 Running 0 63s
admin/ํจ์ค์๋๋ถํ์

Postgres ๋๋ผ์ด๋ฒ ํ์ธ
k exec -it mytrino-trino-coordinator-74f7b6955d-wqxvz -n trino -- bash
[trino@mytrino-trino-coordinator-74f7b6955d-wqxvz /]$ ls /usr/lib/trino/plugin/postgresql/ | grep postgre
io.trino_trino-postgresql-475.jar
org.postgresql_postgresql-42.7.4.jar
trino-postgresql-475-services.jar
### postgreql ์นดํ๋ก๊ทธ ์ฐ๊ฒฐ
``` bash
trino --server 192.168.56.10:32501 --catalog postgres --schema public
trino:public> CREATE TABLE customers (
-> id INTEGER,
-> name VARCHAR,
-> email VARCHAR,
-> created_at TIMESTAMP
-> );
->
CREATE TABLE
trino:public> SHOW TABLES;
Table
-----------
customers
(1 row)
Query 20250530_100845_00005_feuap, FINISHED, 3 nodes
Splits: 8 total, 8 done (100.00%)
0.44 [1 rows, 25B] [2 rows/s, 56B/s]