HA Ozone Deployment on Kubernetes does not work with bootstrap flag for SCM #5019
-
I am trying to make a HA deployment of Apache Ozone version 1.3.0 on Kubernetes cluster. OM looks like is working in HA mode, but not SCM.
From that point the documentation contradicts the log output. Am I missing something in my configuration? Is there anybody who made HA on Kubernetes for Ozone successfully? Helm chart: Command:
Log output from Just in case all logs for P.S. Surprisingly, docker-compose example does not have |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
One of In Kubernetes, Hope that helps.
The entrypoint script looks for these and runs the corresponding command: ozone/hadoop-ozone/dist/src/main/dockerlibexec/entrypoint.sh Lines 113 to 123 in dd25740 It could be safely adapted to the same model recommended for Kubernetes, I've just tried it now locally. |
Beta Was this translation helpful? Give feedback.
-
Hello @adoroszlai , I have tried to follow your offer having command:
- bash
- -c
args:
- if [[ "$OZONE-SITE.XML_ozone.scm.primordial.node.id" == "$OZONE-SITE.XML_ozone.scm.node.id" ]]; then env; ozone scm --bootstrap && ozone scm; else env; ozone scm --bootstrap; fi But possibly I am doing something wrong here, because surprisingly it tries to connect to localhost:
Or maybe this issue is related to the ticket, you have mentioned before. Could you confirm that? And if so, that means this issue still exists in version 1.3.0? P.S. I also enclose logs from all containers and the statefulset configuration together with configmap in one archive, if it can help: Thank you in advance. |
Beta Was this translation helpful? Give feedback.
-
BTW, is there any documentation, where all configuration parameters are present with some description, similar like it's done for Apache Flink (See: https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/deployment/config/)? I am asking, because I have seen |
Beta Was this translation helpful? Give feedback.
-
To sum it up, I'll put here the Kubernetes configuration for SCM deployment as a hint for others. |
Beta Was this translation helpful? Give feedback.
@dantalian-pv
One of
--init
and--bootstrap
will succeed for each SCM, depending on node ID and primordial node ID. These are just one-off commands that initialize metadata storage.ozone scm
starts the actual server process, it should be run for all three nodes.In Kubernetes,
ozone scm --bootstrap
should be executed in aninitContainer
, similarly toozone scm --init
.Hope that helps.
Ozone has a small set of sample Kubernetes environments where basic tes…