- Clone this repo:
git clone https://github.com/thiagodiogo/presto-on-kubernetes.git
- Create a K8S namespace for your cluster:
kubectl create namespace presto
- Install HDFS node it in your K8s cluster:
kubectl apply -f hdfs.yaml --namespace presto
- Install Hive Metastore node it in your K8s cluster:
4.1 Prepare the Hive metastore DB
:
- Check the version you will install here: https://github.com/apache/hive/tree/master/metastore/scripts/upgrade/postgres
- Change the
metastore-db-setup.sh
script to your desired version (in my case it was2.3.0
). - Run the SH pointing to your DB:
./metastore-db-setup.sh
4.2 Install the ReplicationController
:
kubectl apply -f metastore.yaml --namespace presto
- Install Presto Coordinator and Workers in your K8s cluster:
kubectl apply -f presto.yaml --namespace presto
-
Change the configuration file
-
Apply the change to the cluster
kubectl apply -f presto.yaml --namespace presto
Uninstall Presto cluster in your K8s cluster:
kubectl delete -f hdfs.yaml --namespace presto
kubectl delete -f metastore.yaml --namespace presto
kubectl delete -f presto.yaml --namespace presto