Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAK으로 Add Cluster 시에 KeeperErrorCode = Unimplemented for /kafka-manager/mutex 에러 발생 #1

Open
cse0518 opened this issue May 8, 2023 · 0 comments
Assignees

Comments

@cse0518
Copy link
Owner

cse0518 commented May 8, 2023

이슈 사항

  • CMAK에서 Add Cluster 시에 KeeperErrorCode = Unimplemented for /kafka-manager/mutex 에러 발생


원인 파악

  • issue → Kafka가 CMAK에서 지원하지 않는 zookeeper 버전을 사용하고 있는 문제
  • 최신 CMAK은 Apache Curator 2.12.0을 사용하기 때문에,
    기본적으로 3.5.x 버전의 zookeeper를 지원하고 build에 수정 사항이 있는 3.4.x 버전만 지원함

해결 방법

  • zookeeper에 접속 후 ./bin/zkCli.sh 실행 (주키퍼 클라이언트 실행) → /kafka-manager 경로에 3개 znode 생성

    $ ./bin/zkCli.sh
    Connecting to localhost:2181
    ...
    
    $ ls /kafka-manager
    [configs, clusters, deleteClusters]
    
    $ create /kafka-manager/mutex ""
    Created /kafka-manager/mutex
    
    $ create /kafka-manager/mutex/locks ""
    Created /kafka-manager/mutex/locks
    
    $ create /kafka-manager/mutex/leases ""
    Created /kafka-manager/mutex/leases
  • 자동화 → 스크립트 zookeeper-add-znodes.sh 추가

    #! /bin/sh
    
    echo "# Add Zookeeper's ZNodes"
    docker-compose exec -t zookeeper bash <<EOF
      ./bin/zkCli.sh
        create /kafka-manager/mutex ""
        create /kafka-manager/mutex/locks ""
        create /kafka-manager/mutex/leases ""
      quit
    exit
    EOF
  • 해결


References

@cse0518 cse0518 self-assigned this May 8, 2023
@cse0518 cse0518 closed this as completed May 8, 2023
@cse0518 cse0518 reopened this May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant