简体   繁体   English

无法激活 Persistent Ignite 集群

[英]Unable to Activate Persistent Ignite Cluster

We are trying to use control.sh to activate out Ignite cluster which is running in Kubernetes and has native persistence as described here , however we are getting to error below.我们正在尝试使用 control.sh 来激活在 Kubernetes 中运行并具有本机持久性的 Ignite 集群,如此所述,但是我们在下面遇到错误。

We have also tried activating the cluster via the post install of the auto deployment but are getting the same error.我们还尝试通过自动部署的安装后激活集群,但遇到了同样的错误。

lifecycle:
    postStart:
        exec:
            command:
              - >-
                /opt/ignite/apache-ignite/bin/control.sh --set-state ACTIVE
                 --yes

Error:错误:

/opt/ignite/apache-ignite/bin/control.sh --set-state ACTIVE
failed - error: command '/bin/sh -c /opt/ignite/apache-ignite/bin/control.sh --set-state ACTIVE' exited with 2: , message: "JVM_OPTS environment variable is set, but will not be used. To pass JVM options use CONTROL_JVM_OPTS
JVM_OPTS=-DIGNITE_WAL_MMAP=false -DIGNITE_UPDATE_NOTIFIER=false -XX:+UseG1GC -Xmx4g -XX:+DisableExplicitGC -server -Xms4g -XX:+AlwaysPreTouch -XX:+ScavengeBeforeFullGC
Control utility [ver. 2.11.1#20211220-sha1:eae1147d]2021 Copyright(C) Apache Software Foundation
User: root
Time: 2022-05-31T18:56:38.690
Connection to cluster failed. Latest topology update failed.
Command [SET-STATE] finished with code: 2
Control utility has completed execution at: 2022-05-31T18:56:41.859
Execution time: 3169 ms

Activating the cluster relates to the lifecycle of the cluster rather than an individual pod, do you don't want to add it to the pod.激活集群与集群的生命周期有关,而不是单个 pod,你不想将它添加到 pod 中。

Instead, it's a "manual" process once all your nodes/pods are up.相反,一旦所有节点/pod 都启动,这是一个“手动”过程。 I wrote about it here . 我在这里写过

In short, either run exec:简而言之,要么运行 exec:

kubectl exec -it ignite-0 --namespace=ignite -- /opt/ignite/apache-ignite-fabric/bin/control.sh --activate

Or create a Kubernetes job.或者创建一个 Kubernetes 作业。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM