简体   繁体   English

KeeperErrorCode = /kafka-manager/mutex 未实现

[英]KeeperErrorCode = Unimplemented for /kafka-manager/mutex

The following error is being prompted when it is tried to add a new cluster in 'CMAK' in the K8s cluster.尝试在K8s集群的“CMAK”中添加新集群时提示如下错误。

Yikes! KeeperErrorCode = Unimplemented for /kafka-manager/mutex Try again.

My cluster configurations are as follows,我的集群配置如下,

zookeeper: wurstmeister/zookeeper
kafka-manager: kafkamanager/kafka-manager:3.0.0.4
kafka: wurstmeister/kafka:2.12-2.4.1

I could resolve it by following the steps.我可以按照以下步骤解决它。

  1. Connect to the 'zookeeper' container in k8s连接到 k8s 中的“zookeeper”容器

    k exec -it podid -- bash k exec -it podid -- bash

  2. Connect with zookeeper cli,与 zookeeper cli 连接,

    ./bin/zkCli.sh ./bin/zkCli.sh

  3. Make sure that it has created the 'kafka-manager' path already.确保它已经创建了“kafka-manager”路径。 if it does not exist, then try to create a cluster in 'kafka-manager' first.如果它不存在,那么首先尝试在“kafka-manager”中创建一个集群。

    ls /kafka-manager ls /kafka-manager

  4. Hit the following commands to create subsequent paths,点击以下命令创建后续路径,

    create /kafka-manager/mutex ""创建 /kafka-manager/mutex ""

    create /kafka-manager/mutex/locks ""创建 /kafka-manager/mutex/locks ""

    create /kafka-manager/mutex/leases ""创建 /kafka-manager/mutex/leases ""

  5. Now try to create the cluster again.现在尝试再次创建集群。

The output would be like this, output 是这样的,

WATCHER::

WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0] ls /kafka-manager
[configs, deleteClusters, clusters]
[zk: localhost:2181(CONNECTED) 1] create /kafka-manager/mutex ""
Created /kafka-manager/mutex
[zk: localhost:2181(CONNECTED) 2] create /kafka-manager/mutex/locks ""
Created /kafka-manager/mutex/locks
[zk: localhost:2181(CONNECTED) 3] create /kafka-manager/mutex/leases ""
Created /kafka-manager/mutex/leases
[zk: localhost:2181(CONNECTED) 4]

The original answer is mentioned here,https://github.com/yahoo/CMAK/issues/731#issuecomment-643880544这里提到了原始答案,https://github.com/yahoo/CMAK/issues/731#issuecomment-643880544

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

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