Run Presto cluster on Kubernetes.
-
Clone this.
git clone https://github.com/dharmeshkakadia/presto-kubernetes/ && cd presto-kubernetes
-
Start Coordinator.
kubectl create -f coordinator-deployment.yaml kubectl create -f presto-service.yaml
-
Start Workers
kubectl create -f worker-deployment.yaml
-
Start using Presto. You can find out the address to connect using service URL.
kubectl get service presto NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE presto NodePort 10.0.0.251 <none> 8080:30126/TCP 20h
If you are using minikube, you can find out the address as follows
minikube service presto --url http://192.168.64.4:30126
Here is how you can use presto-cli to connect and start running queries. The presto UI is also available at the above URI.
presto-cli --server http://192.168.64.4:30126 --catalog tpch --schema sf1