Closed fxc109406 closed 4 years ago
spring-boot-starter-parent用的是最新的2.2.4.RELEASE。 zook用的是最新的3.5.6。 dubbo-spring-boot-starter和dubbo-dependencies-zookeeper用的是2.7.5。 启动后报错: 2020-02-01 11:36:49.709 INFO 9176 --- [ main] org.apache.zookeeper.ZooKeeper : Initiating client connection, connectString=192.168.133.136:2181,192.168.133.136:2182,192.168.133.136:2183 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@eb6449b 2020-02-01 11:36:49.734 INFO 9176 --- [ main] o.a.c.f.imps.CuratorFrameworkImpl : Default schema 2020-02-01 11:36:52.760 INFO 9176 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-02-01 11:36:52.777 ERROR 9176 --- [ main] o.s.boot.SpringApplication : Application run failed
java.lang.IllegalStateException: zookeeper not connected
zookeeper肯定是运行正常的,就是连不上,降到2.7.3就一切正常了。如果不降版本,则需要加上: dubbo.config-center.timeout: 50000 dubbo.registry.timeout: 40000
此外,org.apache.dubbo的dubbo-spring-boot-starter比com.alibaba.boot的dubbo-spring-boot-starter连接外部zookeeper要慢不少。后者连接同一个zookeeper,基本瞬间就连上。
Duplicated https://github.com/apache/dubbo-spring-boot-project/issues/657
同样遇到这个问题。
win7 dubbo.version=2.7.5 zookeeper.version=3.5.7 curator.version=4.0.0
spring-boot-starter-parent用的是最新的2.2.4.RELEASE。 zook用的是最新的3.5.6。 dubbo-spring-boot-starter和dubbo-dependencies-zookeeper用的是2.7.5。 启动后报错: 2020-02-01 11:36:49.709 INFO 9176 --- [ main] org.apache.zookeeper.ZooKeeper : Initiating client connection, connectString=192.168.133.136:2181,192.168.133.136:2182,192.168.133.136:2183 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@eb6449b 2020-02-01 11:36:49.734 INFO 9176 --- [ main] o.a.c.f.imps.CuratorFrameworkImpl : Default schema 2020-02-01 11:36:52.760 INFO 9176 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-02-01 11:36:52.777 ERROR 9176 --- [ main] o.s.boot.SpringApplication : Application run failed
java.lang.IllegalStateException: zookeeper not connected
zookeeper肯定是运行正常的,就是连不上,降到2.7.3就一切正常了。如果不降版本,则需要加上: dubbo.config-center.timeout: 50000 dubbo.registry.timeout: 40000
此外,org.apache.dubbo的dubbo-spring-boot-starter比com.alibaba.boot的dubbo-spring-boot-starter连接外部zookeeper要慢不少。后者连接同一个zookeeper,基本瞬间就连上。