|
преди 5 години | |
---|---|---|
.. | ||
dev-support | 1e13fe6310 HDDS-2044.Remove 'ozone' from the recon module names. | преди 5 години |
src | f267917ce3 HDDS-2282. scmcli pipeline list command throws NullPointerException. Contributed by Xiaoyu Yao. (#1642) | преди 5 години |
README.md | 21c9080121 HDDS-872. Add Dockerfile and skaffold config to deploy ozone dev build to k8s. Contributed by Elek, Marton. | преди 6 години |
pom.xml | 4f5f46eb4a HDDS-1935. Improve the visibility with Ozone Insight tool (#1255) | преди 6 години |
This folder contains the project to create the binary ozone distribution and provide all the helper script and docker files to start it locally or in the cluster.
After a full dist build you can find multiple docker-compose based cluster definition in the target/ozone-*/compose
folder.
Please check the README files there.
Usually you can start the cluster with:
cd compose/ozone
docker-compose up -d
You can also test the ozone cluster in kubernetes. If you have no active kubernetes cluster you can start a local one with minikube:
minikube start
For testing in kubernetes you need to:
The easiest way to do all these steps is using the skaffold tool. After the installation of skaffold, you can execute
skaffold run
in this (hadoop-ozone/dist
) folder.
The default kubernetes resources set (src/main/k8s/
) contains NodePort based service definitions for the Ozone Manager, Storage Container Manager and the S3 gateway.
With minikube you can access the services with:
minikube service s3g-public
minikube service om-public
minikube service scm-public
Apache Hadoop Ozone supports Prometheus out-of the box. It contains a prometheus compatible exporter servlet. To start the monitoring you need a prometheus deploy in your kubernetes cluster:
cd src/main/k8s/prometheus
kubectl apply -f .
The prometheus ui also could be access via a NodePort service:
minikube service prometheus-public
Please not that the provided kubernetes resources are not suitable production: