本地搭建dubbo-samples成功运行的案例
官方提供的仓库
- https://github.com/apache/dubbo-go-samples
参考文档
- https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/config/principle/
本地运行分析
使用提供的dubbo-sample-demo
Provider 运行✅启动成功后的信息
org.apache.dubbo.springboot.demo.provider.ProviderApplication
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
#这里可以看到zookeeper 服务端已启动
22:18:15.609 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServerMain - Starting server
22:18:15.642 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - Server environment:zookeeper.version=3.4.14-4c25d480e66aadd371de8bd2fd8da255ac140bcf, built on 03/06/2019 16:18 GMT
22:18:15.642 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - Server environment:host.name=xiaolhdemacbook-pro.local
22:18:15.642 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - Server environment:java.version=1.8.0_351
22:18:15.642 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - Server environment:java.io.tmpdir=/var/folders/cf/769nvdyd7_72c_f__dqhs6z80000gn/T/
22:18:15.642 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - Server environment:os.version=12.6
22:18:15.643 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - Server environment:user.name=xiaolh
22:18:15.643 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - Server environment:user.home=/Users/xiaolh
22:18:15.643 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - Server environment:user.dir=/Users/xiaolh/IdeaProjects/fork/dubbo-samples
#zookeeper数据文件夹
22:18:15.645 [ZooKeeper Server Starter] DEBUG org.apache.zookeeper.server.persistence.FileTxnSnapLog - Opening datadir:/var/folders/cf/769nvdyd7_72c_f__dqhs6z80000gn/T/c09902ec-f5be-4ff0-a94c-6d6b93108d0a snapDir:/var/folders/cf/769nvdyd7_72c_f__dqhs6z80000gn/T/c09902ec-f5be-4ff0-a94c-6d6b93108d0a
22:18:15.651 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - tickTime set to 3000
22:18:15.651 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - minSessionTimeout set to -1
22:18:15.651 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ZooKeeperServer - maxSessionTimeout set to -1
22:18:15.656 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.ServerCnxnFactory - Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory
22:18:15.667 [ZooKeeper Server Starter] INFO org.apache.zookeeper.server.NIOServerCnxnFactory - binding to port 0.0.0.0/0.0.0.0:2181
2023-04-19 22:18:16.110 INFO 17897 --- [ main] d.s.b.c.e.WelcomeLogoApplicationListener :
:: Dubbo Spring Boot (v3.0.7) : https://github.com/apache/dubbo-spring-boot-project
:: Dubbo (v3.0.7) : https://github.com/apache/dubbo
:: Discuss group : dev@dubbo.apache.org
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.3.1.RELEASE)
[19/04/23 22:18:16:590 CST] main INFO model.FrameworkModel: [DUBBO] Reset global default framework from null to Dubbo Framework[1], dubbo version: 3.0.7, current host: 169.254.12.10
[org.springframework.context.annotation.internalConfigurationBeanNameGenerator], dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:16:989 CST] main INFO annotation.ServiceAnnotationPostProcessor: [DUBBO] Found 1 classes annotated by Dubbo @Service under package [org.apache.dubbo.springboot.demo.provider]:
[19/04/23 22:18:17:042 CST] main INFO annotation.ServiceAnnotationPostProcessor: [DUBBO] Register ServiceBean[ServiceBean:org.apache.dubbo.springboot.demo.DemoService]: Root bean: class [org.apache.dubbo.config.spring.ServiceBean]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:18:17.254 INFO 17897 --- [ main] f.a.ReferenceAnnotationBeanPostProcessor : class org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor was destroying!
2023-04-19 22:18:17.401 INFO 17897 --- [ main] o.a.d.c.s.c.DubboConfigBeanInitializer : loading dubbo config beans ...
2023-04-19 22:18:17.454 INFO 17897 --- [ main] o.a.d.c.s.c.DubboConfigBeanInitializer : dubbo config beans are loaded.
2023-04-19 22:18:17.534 INFO 17897 --- [ main] org.apache.curator.utils.Compatibility : Running in ZooKeeper 3.4.x compatibility mode
2023-04-19 22:18:17.535 INFO 17897 --- [ main] org.apache.curator.utils.Compatibility : Using emulated InjectSessionExpiration
2023-04-19 22:18:17.553 INFO 17897 --- [ main] o.a.c.f.imps.CuratorFrameworkImpl : Starting
2023-04-19 22:18:17.556 INFO 17897 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:zookeeper.version=3.4.14-4c25d480e66aadd371de8bd2fd8da255ac140bcf, built on 03/06/2019 16:18 GMT
2023-04-19 22:18:17.556 INFO 17897 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:host.name=xiaolhdemacbook-pro.local
2023-04-19 22:18:17.556 INFO 17897 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.version=1.8.0_351
2023-04-19 22:18:17.556 INFO 17897 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.vendor=Oracle Corporation
2023-04-19 22:18:17.556 INFO 17897 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_351.jdk/Contents/Home/jre
2023-04-19 22:18:17.565 INFO 17897 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2023-04-19 22:18:17.571 INFO 17897 --- [.0/0.0.0.0:2181] o.a.z.server.NIOServerCnxnFactory : Accepted socket connection from /127.0.0.1:54014
#客户端连接
2023-04-19 22:18:17.572 INFO 17897 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Socket connection established to localhost/127.0.0.1:2181, initiating session
2023-04-19 22:18:17.577 INFO 17897 --- [.0/0.0.0.0:2181] o.a.zookeeper.server.ZooKeeperServer : Client attempting to establish new session at /127.0.0.1:54014
2023-04-19 22:18:17.580 INFO 17897 --- [ SyncThread:0] o.a.z.server.persistence.FileTxnLog : Creating new log file: log.1
2023-04-19 22:18:17.590 INFO 17897 --- [ SyncThread:0] o.a.zookeeper.server.ZooKeeperServer : Established session 0x1000f5c29700000 with negotiated timeout 60000 for client /127.0.0.1:54014
2023-04-19 22:18:17.590 INFO 17897 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x1000f5c29700000, negotiated timeout = 60000
2023-04-19 22:18:17.593 INFO 17897 --- [ain-EventThread] o.a.c.f.state.ConnectionStateManager : State change: CONNECTED
#dubbo注册到了zookeeper
[19/04/23 22:18:17:596 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] No valid zookeeper client found from cache, therefore create a new client for url. zookeeper://127.0.0.1:2181/org.apache.dubbo.config.ConfigCenterConfig?check=true&config-file=dubbo.properties&group=dubbo&include.spring.env=false&namespace=dubbo&timeout=30000, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:17:600 CST] Curator-ConnectionStateManager-0 INFO curator.CuratorZookeeperClient: [DUBBO] Curator zookeeper client instance initiated successfully, session id is 1000f5c29700000, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:17:858 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] find valid zookeeper client from the cache for address: zookeeper://127.0.0.1:2181/org.apache.dubbo.metadata.report.MetadataReport?application=dubbo-springboot-demo-provider&port=2181&protocol=zookeeper, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:17:858 CST] main INFO deploy.DefaultApplicationDeployer: [DUBBO] Dubbo Application[1.1](dubbo-springboot-demo-provider) has been initialized!, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:187 CST] main INFO deploy.DefaultModuleDeployer: [DUBBO] Dubbo Module[1.1.1] is starting., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:188 CST] main INFO deploy.DefaultApplicationDeployer: [DUBBO] Dubbo Application[1.1](dubbo-springboot-demo-provider) is starting., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:274 CST] main INFO config.ServiceConfig: [DUBBO] Export dubbo service org.apache.dubbo.springboot.demo.DemoService to local registry url : injvm://127.0.0.1/org.apache.dubbo.springboot.demo.DemoService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=169.254.12.10&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.springboot.demo.DemoService&methods=sayHello,sayHelloAsync&pid=17897&qos.enable=false&release=3.0.7&side=provider×tamp=1681913898212, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:274 CST] main INFO config.ServiceConfig: [DUBBO] Register dubbo service org.apache.dubbo.springboot.demo.DemoService url dubbo://169.254.12.10:20880/org.apache.dubbo.springboot.demo.DemoService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=169.254.12.10&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.springboot.demo.DemoService&methods=sayHello,sayHelloAsync&pid=17897&qos.enable=false&release=3.0.7&service-name-mapping=true&side=provider×tamp=1681913898212 to registry 127.0.0.1:2181, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:276 CST] main INFO protocol.QosProtocolWrapper: [DUBBO] qos won't be started because it is disabled. Please check dubbo.application.qos.enable is configured either in system property, dubbo.properties or XML/spring-boot configuration., dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:18:18.287 WARN 17897 --- [tor-Framework-0] org.apache.curator.utils.ZKPaths : The version of ZooKeeper being used doesn't support Container nodes. CreateMode.PERSISTENT will be used instead.
[19/04/23 22:18:18:444 CST] main INFO transport.AbstractServer: [DUBBO] Start NettyServer bind /0.0.0.0:20880, export /169.254.12.10:20880, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:481 CST] main INFO store.MetaCacheManager: [DUBBO] Successfully loaded mapping cache from file .metadata.zookeeper127.0.0.1:2181, entries 0, dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:18:18.484 INFO 17897 --- [ main] o.a.c.f.imps.CuratorFrameworkImpl : Starting
2023-04-19 22:18:18.484 INFO 17897 --- [ main] org.apache.zookeeper.ZooKeeper : Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@2b8d084
2023-04-19 22:18:18.485 INFO 17897 --- [ main] o.a.c.f.imps.CuratorFrameworkImpl : Default schema
2023-04-19 22:18:18.487 INFO 17897 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2023-04-19 22:18:18.488 INFO 17897 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Socket connection established to localhost/127.0.0.1:2181, initiating session
2023-04-19 22:18:18.488 INFO 17897 --- [.0/0.0.0.0:2181] o.a.z.server.NIOServerCnxnFactory : Accepted socket connection from /127.0.0.1:54025
2023-04-19 22:18:18.488 INFO 17897 --- [.0/0.0.0.0:2181] o.a.zookeeper.server.ZooKeeperServer : Client attempting to establish new session at /127.0.0.1:54025
2023-04-19 22:18:18.489 INFO 17897 --- [ SyncThread:0] o.a.zookeeper.server.ZooKeeperServer : Established session 0x1000f5c29700001 with negotiated timeout 60000 for client /127.0.0.1:54025
2023-04-19 22:18:18.489 INFO 17897 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x1000f5c29700001, negotiated timeout = 60000
2023-04-19 22:18:18.490 INFO 17897 --- [ain-EventThread] o.a.c.f.state.ConnectionStateManager : State change: CONNECTED
[19/04/23 22:18:18:536 CST] main INFO metadata.MappingCacheManager: [DUBBO] Successfully loaded mapping cache from file .mapping, entries 0, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:541 CST] main INFO migration.MigrationRuleListener: [DUBBO] Listening for migration rules on dataId dubbo-springboot-demo-provider.migration, group DUBBO_SERVICEDISCOVERY_MIGRATION, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:547 CST] main INFO config.ServiceConfig: [DUBBO] Register dubbo service org.apache.dubbo.springboot.demo.DemoService url dubbo://169.254.12.10:20880/org.apache.dubbo.springboot.demo.DemoService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=169.254.12.10&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.springboot.demo.DemoService&methods=sayHello,sayHelloAsync&pid=17897&qos.enable=false&release=3.0.7&service-name-mapping=true&side=provider×tamp=1681913898212 to registry 127.0.0.1:2181, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:548 CST] main INFO protocol.QosProtocolWrapper: [DUBBO] qos won't be started because it is disabled. Please check dubbo.application.qos.enable is configured either in system property, dubbo.properties or XML/spring-boot configuration., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:552 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] find valid zookeeper client from the cache for address: zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?REGISTRY_CLUSTER=zookeeper1&application=dubbo-springboot-demo-provider&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=17897&qos.enable=false&release=3.0.7, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:553 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Register: dubbo://169.254.12.10:20880/org.apache.dubbo.springboot.demo.DemoService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.springboot.demo.DemoService&methods=sayHello,sayHelloAsync&pid=17897&release=3.0.7&service-name-mapping=true&side=provider×tamp=1681913898212, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:557 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Subscribe: provider://169.254.12.10:20880/org.apache.dubbo.springboot.demo.DemoService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=169.254.12.10&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.springboot.demo.DemoService&methods=sayHello,sayHelloAsync&pid=17897&qos.enable=false&release=3.0.7&service-name-mapping=true&side=provider×tamp=1681913898212, dubbo version: 3.0.7, current host: 169.254.12.10
#通知订阅服务提供者
[19/04/23 22:18:18:562 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Notify urls for subscribe url provider://169.254.12.10:20880/org.apache.dubbo.springboot.demo.DemoService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=169.254.12.10&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.springboot.demo.DemoService&methods=sayHello,sayHelloAsync&pid=17897&qos.enable=false&release=3.0.7&service-name-mapping=true&side=provider×tamp=1681913898212, url size: 1, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:577 CST] DubboSaveMetadataReport-thread-1 INFO zookeeper.ZookeeperMetadataReport: [DUBBO] store provider metadata. Identifier : org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@2a8918a8; definition: FullServiceDefinition{parameters=org.apache.dubbo.common.url.component.URLParam$URLParamMap@4e78b309} ServiceDefinition [canonicalName=org.apache.dubbo.springboot.demo.DemoService, codeSource=file:/Users/xiaolh/IdeaProjects/fork/dubbo-samples/dubbo-samples-spring-boot/dubbo-samples-spring-boot-interface/target/classes/, methods=[MethodDefinition [name=sayHello, parameterTypes=[java.lang.String], returnType=java.lang.String], MethodDefinition [name=sayHelloAsync, parameterTypes=[java.lang.String], returnType=java.util.concurrent.CompletableFuture]]], dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:583 CST] main INFO config.ServiceConfig: [DUBBO] Successfully registered interface application mapping for service org.apache.dubbo.springboot.demo.DemoService, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:584 CST] main INFO deploy.DefaultModuleDeployer: [DUBBO] Dubbo Module[1.1.0] is starting., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:585 CST] main INFO deploy.DefaultModuleDeployer: [DUBBO] Dubbo Module[1.1.0] has started., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:585 CST] main INFO deploy.DefaultModuleDeployer: [DUBBO] Dubbo Module[1.1.1] has started., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:586 CST] main INFO metadata.ConfigurableMetadataServiceExporter: [DUBBO] Metadata Service Port hasn't been set will use default protocol defined in protocols., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:586 CST] main INFO metadata.ConfigurableMetadataServiceExporter: [DUBBO] Using dubbo protocol to export metadata service on port 20880, dubbo version: 3.0.7, current host: 169.254.12.10
#本地的元数据
[19/04/23 22:18:18:630 CST] main INFO config.ServiceConfig: [DUBBO] Export dubbo service org.apache.dubbo.metadata.MetadataService to local registry url : injvm://127.0.0.1/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=169.254.12.10&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-provider&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=17897&qos.enable=false&release=3.0.7&revision=3.0.7&side=provider×tamp=1681913898598&version=1.0.0, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:631 CST] main INFO config.ServiceConfig: [DUBBO] Register dubbo service org.apache.dubbo.metadata.MetadataService url dubbo://169.254.12.10:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=169.254.12.10&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-provider&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=17897&qos.enable=false&release=3.0.7&revision=3.0.7&service-name-mapping=true&side=provider×tamp=1681913898598&version=1.0.0 to registry 127.0.0.1:2181, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:635 CST] main INFO migration.MigrationRuleListener: [DUBBO] Listening for migration rules on dataId dubbo-springboot-demo-provider.migration, group DUBBO_SERVICEDISCOVERY_MIGRATION, dubbo version: 3.0.7, current host: 169.254.12.10
#这里看出来是注册dubbo服务的url&元数据
[19/04/23 22:18:18:636 CST] main INFO config.ServiceConfig: [DUBBO] Register dubbo service org.apache.dubbo.metadata.MetadataService url dubbo://169.254.12.10:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=169.254.12.10&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-provider&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=17897&qos.enable=false&release=3.0.7&revision=3.0.7&service-name-mapping=true&side=provider×tamp=1681913898598&version=1.0.0 to registry 127.0.0.1:2181, dubbo version: 3.0.7, current host: 169.254.12.10
#可以看到这里的接口应用已经注册到dubbo服务了,也就是已经暴露了接口
[19/04/23 22:18:18:645 CST] main INFO config.ServiceConfig: [DUBBO] Successfully registered interface application mapping for service dubbo-springboot-demo-provider/org.apache.dubbo.metadata.MetadataService:1.0.0, dubbo version: 3.0.7, current host: 169.254.12.10
#这里是dubbo的metaData元数据
[19/04/23 22:18:18:645 CST] main INFO metadata.ConfigurableMetadataServiceExporter: [DUBBO] The MetadataService exports urls : [dubbo://169.254.12.10:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-provider&background=false&bind.ip=169.254.12.10&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-provider&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=17897&qos.enable=false&release=3.0.7&revision=3.0.7&service-name-mapping=true&side=provider×tamp=1681913898598&version=1.0.0], dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:646 CST] main INFO metadata.ServiceInstanceMetadataUtils: [DUBBO] Start registering instance address to registry., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:18:18:654 CST] main INFO metadata.MetadataInfo: [DUBBO] metadata revision changed: null -> d4e2a91de74be704a845b8b5abc0875d, app: dubbo-springboot-demo-provider, services: 2, dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:18:18.716 INFO 17897 --- [:0 cport:2181):] o.a.z.server.PrepRequestProcessor : Got user-level KeeperException when processing sessionid:0x1000f5c29700001 type:create cxid:0x1 zxid:0x15 txntype:-1 reqpath:n/a Error Path:/services/dubbo-springboot-demo-provider Error:KeeperErrorCode = NoNode for /services/dubbo-springboot-demo-provider
[19/04/23 22:18:18:723 CST] main INFO deploy.DefaultApplicationDeployer: [DUBBO] Dubbo Application[1.1](dubbo-springboot-demo-provider) is ready., dubbo version: 3.0.7, current host: 169.254.12.10
#提供方服务已经已启动了
2023-04-19 22:18:18.729 INFO 17897 --- [ main] o.a.d.s.d.provider.ProviderApplication : Started ProviderApplication in 2.973 seconds (JVM running for 3.782)
dubbo service started
2023-04-19 22:18:18.739 INFO 17897 --- [pool-1-thread-1] .b.c.e.AwaitingNonWebApplicationListener : [Dubbo] Current Spring Boot Application is await...
comsumer启动✅
#dubbo加载zookeeper成功了
[19/04/23 22:31:36:532 CST] main INFO store.MetaCacheManager: [DUBBO] Successfully loaded mapping cache from file .metadata.zookeeper127.0.0.1:2181, entries 0, dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:31:36.535 INFO 18020 --- [ main] o.a.c.f.imps.CuratorFrameworkImpl : Starting
2023-04-19 22:31:36.536 INFO 18020 --- [ main] org.apache.zookeeper.ZooKeeper : Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@2ed71727
2023-04-19 22:31:36.537 INFO 18020 --- [ main] o.a.c.f.imps.CuratorFrameworkImpl : Default schema
2023-04-19 22:31:36.539 INFO 18020 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2023-04-19 22:31:36.540 INFO 18020 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Socket connection established to localhost/127.0.0.1:2181, initiating session
2023-04-19 22:31:36.542 INFO 18020 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x1000f5c29700003, negotiated timeout = 60000
2023-04-19 22:31:36.542 INFO 18020 --- [ain-EventThread] o.a.c.f.state.ConnectionStateManager : State change: CONNECTED
[19/04/23 22:31:36:587 CST] main INFO metadata.MetadataServiceNameMapping: [DUBBO] Local cache mapping is empty, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:596 CST] main INFO client.ServiceDiscoveryRegistry: [DUBBO] Trying to subscribe from apps dubbo-springboot-demo-provider for service key org.apache.dubbo.springboot.demo.DemoService, , dubbo version: 3.0.7, current host: 169.254.12.10
#这里看到服务发现了
[19/04/23 22:31:36:596 CST] main-EventThread INFO client.ServiceDiscoveryRegistry$DefaultMappingListener: [DUBBO] Received mapping notification from meta server, {serviceKey: org.apache.dubbo.springboot.demo.DemoService, apps: [dubbo-springboot-demo-provider]}, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:596 CST] main-EventThread INFO client.ServiceDiscoveryRegistry$DefaultMappingListener: [DUBBO] Mapping of service org.apache.dubbo.springboot.demo.DemoServicechanged from null to [dubbo-springboot-demo-provider], dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:661 CST] main INFO listener.ServiceInstancesChangedListener: [DUBBO] Received instance notification, serviceName: dubbo-springboot-demo-provider, instances: 1, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:677 CST] NettyClientWorker-1-2 INFO netty4.NettyClientHandler: [DUBBO] The connection of /169.254.12.10:54245 -> /169.254.12.10:20880 is established., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:677 CST] main INFO transport.AbstractClient: [DUBBO] Successfully connect to server /169.254.12.10:20880 from NettyClient 169.254.12.10 using dubbo version 3.0.7, channel is NettyChannel [channel=[id: 0xd18e266c, L:/169.254.12.10:54245 - R:/169.254.12.10:20880]], dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:677 CST] main INFO transport.AbstractClient: [DUBBO] Start NettyClient /169.254.12.10 connect to the server /169.254.12.10:20880, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:926 CST] main INFO netty4.NettyChannel: [DUBBO] Close netty channel [id: 0xd18e266c, L:/169.254.12.10:54245 - R:/169.254.12.10:20880], dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:938 CST] NettyClientWorker-1-2 INFO netty4.NettyClientHandler: [DUBBO] The connection of /169.254.12.10:54245 -> /169.254.12.10:20880 is disconnected., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:939 CST] main INFO listener.ServiceInstancesChangedListener: [DUBBO] 1 unique working revisions: d4e2a91de74be704a845b8b5abc0875d , dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:984 CST] main INFO client.ServiceDiscoveryRegistryDirectory: [DUBBO] Refreshed invoker size 1, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:997 CST] main INFO listener.ServiceInstancesChangedListener: [DUBBO] Received instance notification, serviceName: dubbo-springboot-demo-provider, instances: 1, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:998 CST] main INFO listener.ServiceInstancesChangedListener: [DUBBO] 1 unique working revisions: d4e2a91de74be704a845b8b5abc0875d , dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:998 CST] main INFO listener.ServiceInstancesChangedListener: [DUBBO] Notify service org.apache.dubbo.springboot.demo.DemoService with urls 1, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:000 CST] main INFO client.ServiceDiscoveryRegistryDirectory: [DUBBO] Refreshed invoker size 1, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:003 CST] main-EventThread INFO client.ServiceDiscoveryRegistry: [DUBBO] Trying to subscribe from apps dubbo-springboot-demo-provider for service key org.apache.dubbo.springboot.demo.DemoService, , dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:004 CST] main-EventThread INFO client.ServiceDiscoveryRegistryDirectory: [DUBBO] Refreshed invoker size 1, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:014 CST] main INFO migration.DefaultMigrationAddressComparator: [DUBBO] serviceKey:org.apache.dubbo.springboot.demo.DemoService Instance address size 1, interface address size 1, threshold 0.0, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:015 CST] main INFO migration.MigrationRuleHandler: [DUBBO] Succeed Migrated to APPLICATION_FIRST mode. Service Name: org.apache.dubbo.springboot.demo.DemoService, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:015 CST] main INFO config.ReferenceConfig: [DUBBO] Referred dubbo service: [org.apache.dubbo.springboot.demo.DemoService]. it's not GenericService reference, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:017 CST] DubboSaveMetadataReport-thread-1 INFO zookeeper.ZookeeperMetadataReport: [DUBBO] store consumer metadata. Identifier : org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@1a393dab; definition: org.apache.dubbo.common.url.component.URLParam$URLParamMap@98b26f60, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:028 CST] main INFO deploy.DefaultModuleDeployer: [DUBBO] Dubbo Module[1.1.1] has started., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:031 CST] main INFO metadata.ConfigurableMetadataServiceExporter: [DUBBO] Metadata Service Port hasn't been set will use default protocol defined in protocols., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:031 CST] main INFO metadata.ConfigurableMetadataServiceExporter: [DUBBO] Using dubbo protocol to export metadata service on port -1, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:075 CST] main WARN config.ServiceConfig: [DUBBO] Use random available port(20881) for protocol dubbo, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:119 CST] main INFO config.ServiceConfig: [DUBBO] Export dubbo service org.apache.dubbo.metadata.MetadataService to local registry url : injvm://127.0.0.1/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-consumer&background=false&bind.ip=169.254.12.10&bind.port=20881&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-consumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=18020&qos.enable=false&release=3.0.7&revision=3.0.7&side=provider×tamp=1681914697066&version=1.0.0, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:120 CST] main INFO config.ServiceConfig: [DUBBO] Register dubbo service org.apache.dubbo.metadata.MetadataService url dubbo://169.254.12.10:20881/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-consumer&background=false&bind.ip=169.254.12.10&bind.port=20881&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-consumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=18020&qos.enable=false&release=3.0.7&revision=3.0.7&service-name-mapping=true&side=provider×tamp=1681914697066&version=1.0.0 to registry 127.0.0.1:2181, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:121 CST] main INFO protocol.QosProtocolWrapper: [DUBBO] qos won't be started because it is disabled. Please check dubbo.application.qos.enable is configured either in system property, dubbo.properties or XML/spring-boot configuration., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:136 CST] main INFO transport.AbstractServer: [DUBBO] Start NettyServer bind /0.0.0.0:20881, export /169.254.12.10:20881, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:140 CST] main INFO migration.MigrationRuleListener: [DUBBO] Listening for migration rules on dataId dubbo-springboot-demo-consumer.migration, group DUBBO_SERVICEDISCOVERY_MIGRATION, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:142 CST] main INFO config.ServiceConfig: [DUBBO] Register dubbo service org.apache.dubbo.metadata.MetadataService url dubbo://169.254.12.10:20881/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-consumer&background=false&bind.ip=169.254.12.10&bind.port=20881&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-consumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=18020&qos.enable=false&release=3.0.7&revision=3.0.7&service-name-mapping=true&side=provider×tamp=1681914697066&version=1.0.0 to registry 127.0.0.1:2181, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:143 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Register: dubbo://169.254.12.10:20881/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-consumer&background=false&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-consumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=18020&release=3.0.7&revision=3.0.7&service-name-mapping=true&side=provider×tamp=1681914697066&version=1.0.0, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:148 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Subscribe: provider://169.254.12.10:20881/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-consumer&background=false&bind.ip=169.254.12.10&bind.port=20881&category=configurators&check=false&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-consumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=18020&qos.enable=false&release=3.0.7&revision=3.0.7&service-name-mapping=true&side=provider×tamp=1681914697066&version=1.0.0, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:149 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Notify urls for subscribe url provider://169.254.12.10:20881/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-consumer&background=false&bind.ip=169.254.12.10&bind.port=20881&category=configurators&check=false&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-consumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=18020&qos.enable=false&release=3.0.7&revision=3.0.7&service-name-mapping=true&side=provider×tamp=1681914697066&version=1.0.0, url size: 1, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:152 CST] main INFO config.ServiceConfig: [DUBBO] Successfully registered interface application mapping for service dubbo-springboot-demo-consumer/org.apache.dubbo.metadata.MetadataService:1.0.0, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:152 CST] main INFO metadata.ConfigurableMetadataServiceExporter: [DUBBO] The MetadataService exports urls : [dubbo://169.254.12.10:20881/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=dubbo-springboot-demo-consumer&background=false&bind.ip=169.254.12.10&bind.port=20881&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&group=dubbo-springboot-demo-consumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition&pid=18020&qos.enable=false&release=3.0.7&revision=3.0.7&service-name-mapping=true&side=provider×tamp=1681914697066&version=1.0.0], dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:152 CST] main INFO metadata.ServiceInstanceMetadataUtils: [DUBBO] Start registering instance address to registry., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:37:161 CST] main INFO metadata.MetadataInfo: [DUBBO] metadata revision changed: null -> 794c2fed116a21664c056451b4f77202, app: dubbo-springboot-demo-consumer, services: 1, dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:31:37.198 WARN 18020 --- [ main] org.apache.curator.utils.ZKPaths : The version of ZooKeeper being used doesn't support Container nodes. CreateMode.PERSISTENT will be used instead.
[19/04/23 22:31:37:207 CST] main INFO deploy.DefaultApplicationDeployer: [DUBBO] Dubbo Application[1.1](dubbo-springboot-demo-consumer) is ready., dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:31:37.216 INFO 18020 --- [ main] o.a.d.s.d.consumer.ConsumerApplication : Started ConsumerApplication in 3.598 seconds (JVM running for 4.243)
2023-04-19 22:31:37.229 INFO 18020 --- [pool-1-thread-1] .b.c.e.AwaitingNonWebApplicationListener : [Dubbo] Current Spring Boot Application is await...
result: Hello world
再回到provider提供方控制台查看
2023-04-19 22:18:18.739 INFO 17897 --- [pool-1-thread-1] .b.c.e.AwaitingNonWebApplicationListener : [Dubbo] Current Spring Boot Application is await...
[19/04/23 22:28:18:489 CST] Dubbo-framework-cache-refreshing-scheduler-thread-1 INFO metadata.AbstractCacheManager$CacheRefreshTask: [DUBBO] Dumping meta caches, latest entries 0, dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:28:18:540 CST] Dubbo-framework-cache-refreshing-scheduler-thread-1 INFO metadata.AbstractCacheManager$CacheRefreshTask: [DUBBO] Dumping mapping caches, latest entries 0, dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:31:35.425 INFO 17897 --- [.0/0.0.0.0:2181] o.a.z.server.NIOServerCnxnFactory : Accepted socket connection from /127.0.0.1:54240
2023-04-19 22:31:35.428 INFO 17897 --- [.0/0.0.0.0:2181] o.a.zookeeper.server.ZooKeeperServer : Client attempting to establish new session at /127.0.0.1:54240
2023-04-19 22:31:35.436 INFO 17897 --- [ SyncThread:0] o.a.zookeeper.server.ZooKeeperServer : Established session 0x1000f5c29700002 with negotiated timeout 60000 for client /127.0.0.1:54240
[19/04/23 22:31:36:501 CST] NettyServerWorker-3-1 INFO netty4.NettyServerHandler: [DUBBO] The connection of /169.254.12.10:54243 -> /169.254.12.10:20880 is established., dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:31:36.540 INFO 17897 --- [.0/0.0.0.0:2181] o.a.z.server.NIOServerCnxnFactory : Accepted socket connection from /127.0.0.1:54244
2023-04-19 22:31:36.541 INFO 17897 --- [.0/0.0.0.0:2181] o.a.zookeeper.server.ZooKeeperServer : Client attempting to establish new session at /127.0.0.1:54244
2023-04-19 22:31:36.542 INFO 17897 --- [ SyncThread:0] o.a.zookeeper.server.ZooKeeperServer : Established session 0x1000f5c29700003 with negotiated timeout 60000 for client /127.0.0.1:54244
[19/04/23 22:31:36:685 CST] NettyServerWorker-3-2 INFO netty4.NettyServerHandler: [DUBBO] The connection of /169.254.12.10:54245 -> /169.254.12.10:20880 is established., dubbo version: 3.0.7, current host: 169.254.12.10
[19/04/23 22:31:36:932 CST] NettyServerWorker-3-2 INFO netty4.NettyServerHandler: [DUBBO] The connection of /169.254.12.10:54245 -> /169.254.12.10:20880 is disconnected., dubbo version: 3.0.7, current host: 169.254.12.10
2023-04-19 22:31:36.990 INFO 17897 --- [:0 cport:2181):] o.a.z.server.PrepRequestProcessor : Got user-level KeeperException when processing sessionid:0x1000f5c29700003 type:create cxid:0x3 zxid:0x1e txntype:-1 reqpath:n/a Error Path:/services/dubbo-springboot-demo-provider Error:KeeperErrorCode = NodeExists for /services/dubbo-springboot-demo-provider
2023-04-19 22:31:37.190 INFO 17897 --- [:0 cport:2181):] o.a.z.server.PrepRequestProcessor : Got user-level KeeperException when processing sessionid:0x1000f5c29700003 type:create cxid:0x7 zxid:0x22 txntype:-1 reqpath:n/a Error Path:/services/dubbo-springboot-demo-consumer Error:KeeperErrorCode = NoNode for /services/dubbo-springboot-demo-consumer
#这里已经打印,成功完成接口的调用
Hello world, request from consumer: /169.254.12.10:54243