pinot-demo
.pinot-demo
will be used as example value for ${GCLOUD_PROJECT}
variable in script example.pinot-demo@example.com
will be used as example value for ${GCLOUD_EMAIL}
.Below script will:
pinot-quickstart
n1-standard-2
for zookeeper, kafka, pinot controller, pinot broker.n1-standard-8
for Pinot server.Please fill both environment variables: ${GCLOUD_PROJECT}
and ${GCLOUD_EMAIL}
with your gcloud project and gcloud account email in below script.
GCLOUD_PROJECT=[your gcloud project name] GCLOUD_EMAIL=[Your gcloud account email] ./setup.sh
E.g.
GCLOUD_PROJECT=pinot-demo GCLOUD_EMAIL=pinot-demo@example.com ./setup.sh
Feel free to modify the script to pick your preferred sku, e.g. n1-highmem-32
for Pinot server.
Simply run below command to get the credential for the cluster you just created or your existing cluster. Please modify the Env variables ${GCLOUD_PROJECT}
, ${GCLOUD_ZONE}
, ${GCLOUD_CLUSTER}
accordingly in below script.
GCLOUD_PROJECT=pinot-demo GCLOUD_ZONE=us-west1-b GCLOUD_CLUSTER=pinot-quickstart gcloud container clusters get-credentials ${GCLOUD_CLUSTER} --zone ${GCLOUD_ZONE} --project ${GCLOUD_PROJECT}
Look for cluster status
kubectl get all -n pinot-quickstart -o wide
The script requests:
skaffold run -f skaffold.yaml
Below command will
kubectl apply -f pinot-realtime-quickstart.yml
Please use below script to do local port-forwarding and open Pinot query console on your web browser.
./query-pinot-data.sh
Below script will delete the pinot perf cluster and delete the pvc disks.
Note that you need to replace the gcloud project name if you are using another one.
GCLOUD_PROJECT=[your gcloud project name] ./cleanup.sh