soumilshah1995 / trino-k8-locally

trino-k8-locally

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trino-k8-locally

Installing Helm, kubectl, and Trino using Helm

Prerequisites

Before proceeding, ensure you have the following prerequisites installed:

  • Homebrew (for macOS and Linux users)
  • Helm (version 3 or later)
  • kubectl (Kubernetes command-line tool)

Installation

Helm

brew install helm

kubectl

brew install kubectl

Trino Helm Chart

helm repo add trino https://trinodb.github.io/charts

helm install example-trino-cluster trino/trino \
--set server.workers="2" \
--version 0.20.0 \
--set image.tag="400" \
--set coordinator.jvm.maxHeapSize="4G" \
--set worker.jvm.maxHeapSize="4G" \
--set service.type=LoadBalancer

Jupyter notebooks

!pip install trino
!pip install ipython-sql
%load_ext sql
%sql trino://admin@localhost:8080/default
%sql USE tpcds.sf100000
%%time
%sql select * from customer limit 2

change Pods

!helm upgrade example-trino-cluster trino/trino --set server.workers=6 --set service.type=LoadBalancer
%%time
%sql select count(*) from customer

Feel free to add further explanations or instructions as needed!

About

trino-k8-locally

License:BSD 2-Clause "Simplified" License