apache / helix

Mirror of Apache Helix
Apache License 2.0
457 stars 218 forks source link

service-discovery-demo.sh run fail #2811

Closed JoeCqupt closed 3 weeks ago

JoeCqupt commented 1 month ago

Describe the bug

branch: master

run command
./service-discovery-demo.sh

sh service-discovery-demo.sh
START:Service discovery demo mode:WATCH
558  [main] ERROR org.apache.helix.manager.zk.ZKHelixManager [] - fail to createClient. retry 1
org.apache.helix.HelixException: Cluster structure is not set up for cluster: service-discovery-demo
        at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:1384) ~[helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:783) [helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:818) [helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.servicediscovery.ServiceDiscovery.start(ServiceDiscovery.java:78) [service-discovery-1.3.2-SNAPSHOT.jar:?]
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.demo(ServiceDiscoveryDemo.java:50) [service-discovery-1.3.2-SNAPSHOT.jar:?]
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.main(ServiceDiscoveryDemo.java:38) [service-discovery-1.3.2-SNAPSHOT.jar:?]
567  [main] ERROR org.apache.helix.manager.zk.ZKHelixManager [] - fail to createClient. retry 2
org.apache.helix.HelixException: Cluster structure is not set up for cluster: service-discovery-demo
        at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:1384) ~[helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:783) [helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:818) [helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.servicediscovery.ServiceDiscovery.start(ServiceDiscovery.java:78) [service-discovery-1.3.2-SNAPSHOT.jar:?]
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.demo(ServiceDiscoveryDemo.java:50) [service-discovery-1.3.2-SNAPSHOT.jar:?]
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.main(ServiceDiscoveryDemo.java:38) [service-discovery-1.3.2-SNAPSHOT.jar:?]
570  [main] ERROR org.apache.helix.manager.zk.ZKHelixManager [] - fail to createClient. retry 3
org.apache.helix.HelixException: Cluster structure is not set up for cluster: service-discovery-demo
        at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:1384) ~[helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:783) [helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:818) [helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.servicediscovery.ServiceDiscovery.start(ServiceDiscovery.java:78) [service-discovery-1.3.2-SNAPSHOT.jar:?]
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.demo(ServiceDiscoveryDemo.java:50) [service-discovery-1.3.2-SNAPSHOT.jar:?]
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.main(ServiceDiscoveryDemo.java:38) [service-discovery-1.3.2-SNAPSHOT.jar:?]
570  [main] ERROR org.apache.helix.manager.zk.ZKHelixManager [] - fail to connect service-discovery
org.apache.helix.HelixException: Cluster structure is not set up for cluster: service-discovery-demo
        at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:1384) ~[helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:783) ~[helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:818) [helix-core-1.3.2-SNAPSHOT.jar:1.3.2-SNAPSHOT]
        at org.apache.helix.servicediscovery.ServiceDiscovery.start(ServiceDiscovery.java:78) [service-discovery-1.3.2-SNAPSHOT.jar:?]
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.demo(ServiceDiscoveryDemo.java:50) [service-discovery-1.3.2-SNAPSHOT.jar:?]
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.main(ServiceDiscoveryDemo.java:38) [service-discovery-1.3.2-SNAPSHOT.jar:?]
Exception in thread "main" org.apache.helix.HelixException: Cluster structure is not set up for cluster: service-discovery-demo
        at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:1384)
        at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:783)
        at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:818)
        at org.apache.helix.servicediscovery.ServiceDiscovery.start(ServiceDiscovery.java:78)
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.demo(ServiceDiscoveryDemo.java:50)
        at org.apache.helix.servicediscovery.ServiceDiscoveryDemo.main(ServiceDiscoveryDemo.java:38)

To Reproduce

Steps to reproduce the behavior.

  1. checkout master branch
  2. maven build
  3. run ./service-discovery-demo.sh

Expected behavior

service-discovery-demo.sh run normally

Additional context

none