我想连接到现有的定位器。
现在我没有客户端服务器。
我启动了一个定位器,端口是 40001,server1 端口是 40411。
gfsh>列出成员 姓名 | ID -------- | ---------------------------------------------- 测试1 | 192.168.1.106(test1:1880:locator):1024 服务器1 | 192.168.1.106(server1:7532):1025
配置是:
<?xml 版本="1.0" 编码="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:gfe-data="http://www.springframework.org/schema/data/gemfire" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gfe="http://www.springframework.org/schema/gemfire" xmlns:repository="http://www.springframework.org/schema/data/repository" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/data/gemfire http://www.springframework.org/schema/data/gemfire/spring-data-gemfire.xsd http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/data/repository/spring-repository.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <util:properties id="gemfireProperties"> <prop key="locators">本地主机[40001] <prop key="mcast-port">0 </util:properties> <gfe:cache properties-ref="gemfireProperties"/> <gfe:cache-server port="40411" /> <bean id="portGenerator" class="com.demo.server.ServerPortGenerator" /> <gfe:replicated-region id="Person"/> </beans>
错误是:
[info 2017/07/04 23:48:12.546 CST tid=0x1] 默认许可工作目录为当前工作目录“C:\Users\IBM_ADMIN\Documents\Workspace - Shirley\Workspace_SpringBoot\demo”。 [info 2017/07/04 23:48:12.547 CST tid=0x1] 许可需要 2 毫秒。 [info 2017/07/04 23:48:12.923 CST tid=0x1] GemFire P2P 侦听器在 tcp:///192.168.1.106:53073 上启动 [info 2017/07/04 23:48:13.094 CST tid=0x20] 无法连接到定位器 localhost(null):40001 2017-07-04 23:48:16.200 WARN 10904 --- [main] scaAnnotationConfigApplicationContext:上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.BeanCreationException:创建名为“gemfireServer”的bean时出错:不能在设置 bean 属性 'cache' 时解析对 bean 'gemfireCache' 的引用;嵌套异常是 org.springframework.beans.factory.BeanCreationException:创建名为“gemfireCache”的 bean 时出错:FactoryBean 在创建对象时抛出异常;嵌套异常是 com.gemstone.gemfire.GemFireConfigException:无法联系定位器服务。操作超时或定位器不存在。配置的定位器列表是“[localhost(null):40001]”。 2017-07-04 23:48:16.200 WARN 10904 --- [main] osbfsupport.DisposableBeanAdapter:在名为“gemfireCache”的 bean 上调用销毁方法失败:com.gemstone.gemfire.cache.CacheClosedException:缓存尚未被创建。 2017-07-04 23:48:16.219 错误 10904 --- [main] osboot.SpringApplication:应用程序启动失败 org.springframework.beans.factory.BeanCreationException:创建名为“gemfireServer”的bean时出错:设置bean属性“cache”时无法解析对bean“gemfireCache”的引用;嵌套异常是 org.springframework.beans.factory.BeanCreationException:创建名为“gemfireCache”的 bean 时出错:FactoryBean 在创建对象时抛出异常;嵌套异常是 com.gemstone.gemfire.GemFireConfigException:无法联系定位器服务。操作超时或定位器不存在。配置的定位器列表是“[localhost(null):40001]”。 在 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) ~[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE] 在 org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) ~[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE] 在 org.springframework.boot.SpringApplication.run(SpringApplication.java:303) ~[spring-boot-1.5.4.RELEASE.jar:1.5.4.RELEASE] 在 com.demo.server.ServerApplication.main(ServerApplication.java:32) [classes/:na] 原因:org.springframework.beans.factory.BeanCreationException:创建名为“gemfireCache”的bean时出错:FactoryBean在对象创建时抛出异常;嵌套异常是 com.gemstone.gemfire.GemFireConfigException:无法联系定位器服务。操作超时或定位器不存在。配置的定位器列表是“[localhost(null):40001]”。 在 org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1634) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] 在 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE] ...省略了16个常用框架 原因:com.gemstone.gemfire.GemFireConfigException:无法联系定位器服务。操作超时或定位器不存在。配置的定位器列表是“[localhost(null):40001]”。 在 com.gemstone.org.jgroups.protocols.TCPGOSSIP.sendGetMembersRequest(TCPGOSSIP.java:222) ~[gemfire-8.2.4.jar:na] 在 com.gemstone.org.jgroups.protocols.PingSender.run(PingSender.java:85) ~[gemfire-8.2.4.jar:na] 在 java.lang.Thread.run(Unknown Source) ~[na:1.8.0_111]
哦,我的上帝,我不知道这个问题。
谁能帮助我?
我只想构建一个客户端-服务器系统。
但现在我什至无法设置服务器。
2017 年 7 月 9 日更新
你好约翰,我试过你的例子,但我仍然遇到错误。
首先,我使用 gfsh 启动定位器。
C:\用户\IBM_ADMIN>gfsh _________________________ __ / _____/ ______/ ______/ /____/ / / / __/ /___ /_____ / _____ / / /__/ / ____/ _____/ / / / / /______/_/ /______/_/ /_/ 9.0.4 监控和管理 Pivotal GemFire gfsh>start locator --name=GemFireLocator --log-level=config 在 C:\Users\IBM_ADMIN\GemFireLocator 中启动 Geode Locator... …… ADMINIB-CI3Q48M[10334] 上的 C:\Users\IBM_ADMIN\GemFireLocator 中的定位器,因为 GemFireLocator 当前在线。 进程 ID:7256 正常运行时间:8 秒 宝石火版本:9.0.4 Java版本:1.8.0_101 日志文件:C:\Users\IBM_ADMIN\GemFireLocator\GemFireLocator.log JVM 参数:-Dgemfire.enable-cluster-configuration=true -Dgemfire.load-cluster-configuration-from-dir=false -Dgemfire .log-level=config -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterva l=9223372036854775806 类路径:C:\Program Files\Java\pivotal-gemfire-9.0.4\lib\geode-core-9.0.4.jar;C:\Program Files\Java\pivotal-gemfire-9 .0.4\lib\geode-dependencies.jar 成功连接到:JMX Manager [host=ADMINIB-CI3Q48M, port=1099] gfsh>列出成员 姓名 | ID -------------- | -------------------------------------------------- ----- 宝石火定位器 | 192.168.1.106(GemFireLocator:7256:定位器):1024 gfsh>describe 成员 --name=GemFireLocator 名称:GemFireLocator ID:192.168.1.106(GemFireLocator:7256:定位器):1024 主机:ADMINIB-CI3Q48M 地区: PID : 7256 团体: 使用堆:90M 最大堆:1755M 工作目录:C:\Users\IBM_ADMIN\GemFireLocator 日志文件:C:\Users\IBM_ADMIN\GemFireLocator\GemFireLocator.log 定位器:192.168.1.106[10334]
然后正如您在spring-boot-gemfire-server-example中提到的那样,我尝试运行$gradlew bootRun。
但错误显示: Caused by: java.net.BindException: Address already in use: JVM_Bind
[info 2017/07/09 14:57:24.270 CST tid=0x1] 默认许可工作目录为当前工作目录“C:\Users IBM_ADMIN\Documents\Workspace - Shirley\Workspace_SpringBoot\spring-boot-gemfire-server-example”。 [info 2017/07/09 14:57:24.273 CST tid=0x1] 许可需要 4 毫秒。 [info 2017/07/09 14:57:24.324 CST tid=0x1] 在 localhost/127.0.0 上启动分发定位器的对等位置。 [10334] [info 2017/07/09 14:57:24.333 CST tid=0x1] 在 localhost/127.0.0.1 [10334] 上启动分发定位器 [info 2017/07/09 14:57:24.347 CST tid=0x1] localhost/127.0.0.1[10334] 上的分发定位器已停止 [main] WARN org.springframework.context.annotation.AnnotationConfigApplicationContext - co期间遇到异常 文本初始化 - 取消刷新尝试:org.springframework.beans.factory.UnsatisfiedDependencyException: Err r 创建 org.example.SpringBootGemFireServer 中定义的名称为“gemfireCacheServer”的 bean:不满足的依赖项 e 通过方法'gemfireCacheServer'参数0按下;嵌套异常是 org.springframework.beans.factory.BeanCrea ionException:创建名为“gemfireCache”的 bean 时出错:FactoryBean 在创建对象时抛出异常;嵌套异常 化为 com.gemstone.gemfire.GemFireIOException:启动定位器服务时出现问题 [main] 警告 org.springframework.beans.factory.support.DisposableBeanAdapter - 调用 destroy 方法失败 n 名称为“gemfireCache”:com.gemstone.gemfire.cache.CacheClosedException:尚未创建缓存。 [主要] 信息 org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer - 启动 ApplicationContext 时出错。要显示自动配置报告,请使用“调试”启用重新运行您的应用程序 . [main] 错误 org.springframework.boot.SpringApplication - 应用程序启动失败 org.springframework.beans.factory.UnsatisfiedDependencyException:创建名称为“gemfireCacheServer”的 bean 时出错 de 在 org.example.SpringBootGemFireServer 中包含:通过方法 'gemfireCacheServer' 参数表达的不满足的依赖关系 叔 0; 嵌套异常是 org.springframework.beans.factory.BeanCreationException:创建名为“gemf”的 bean 时出错 reCache':FactoryBean 在创建对象时抛出异常;嵌套异常是 com.gemstone.gemfire.GemFireIOException: 启动定位器服务的问题 在 org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:7 9) 在 org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResol er.java:467) 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(A stractAutowireCapableBeanFactory.java:1128) 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAuto ireCapableBeanFactory.java:1022) 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCa 能豆工厂.java:512) 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapa leBeanFactory.java:482) 在 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) 在 org.springframework.beans.factory.suefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.ja 一个:230) 在 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) 在 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) 在 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable BeanFactory.java:735) 在 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractAppli ationContext.java:866) 在 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) 在 org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) 在 org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) 在 org.springframework.boot.SpringApplication.run(SpringApplication.java:315) 在 org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) 在 org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) 在 org.example.SpringBootGemFireServer.main(SpringBootGemFireServer.java:52) 原因:org.springframework.beans.factory.BeanCreationException:创建名为“gemfireCache”的bean时出错:Facto yBean 在创建对象时抛出异常;嵌套异常是 com.gemstone.gemfire.GemFireIOException:问题开始 定位服务 在 org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanR gistrySupport.java:175) 在 org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanReg strySupport.java:103) 在 org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.j 弗吉尼亚州:1606) 在 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317) 在 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) rg.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:207) 在 org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBean 演员.java:1131) 在 org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFa tory.java:1059) 在 org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.j 弗吉尼亚州:835) 在 org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:7 1) ... 18 更多 引起:com.gemstone.gemfire.GemFireIOException:启动定位器服务时出现问题 在 com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.startInitLocator(InternalDistributedSyst m.java:847) 在 com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.jav :606) 在 com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.ja 答:281) 在 com.gemstone.gemfire.distributed.DistributedSystem.connect(DistributedSystem.java:1651) 在 com.gemstone.gemfire.cache.CacheFactory.create(CacheFactory.java:227) 在 org.springframework.data.gemfire.CacheFactoryBean.createCache(CacheFactoryBean.java:356) 在 org.springframework.data.gemfire.CacheFactoryBean.resolveCache(CacheFactoryBean.java:250) 在 org.springframework.data.gemfire.CacheFactoryBean.init(CacheFactoryBean.java:191) 在 org.springframework.data.gemfire.CacheFactoryBean.getObject(CacheFactoryBean.java:178) 在 org.springframework.data.gemfire.CacheFactoryBean.getObject(CacheFactoryBean.java:88) 在 org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanR gistrySupport.java:168) ... 27 更多 原因:java.net.BindException:无法在 localhost/127.0.0.1[10,334] 上创建服务器套接字 在 com.gemstone.gemfire.internal.SocketCreator.createServerSocket(SocketCreator.java:829) 在 com.gemstone.gemfire.internal.SocketCreator.createServerSocket(SocketCreator.java:789) 在 com.gemstone.org.jgroups.stack.tcpserver.TcpServer.startServerThread(TcpServer.java:179) 在 com.gemstone.org.jgroups.stack.tcpserver.TcpServer.start(TcpServer.java:168) 在 com.gemstone.gemfire.distributed.internal.InternalLocator.startTcpServer(InternalLocator.java:629) 在 com.gemstone.gemfire.distributed.internal.InternalLocator.startPeerLocation(InternalLocator.java:698) 在 com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.startInitLocator(InternalDistributedSyst m.java:832) ... 37 更多 引起:java.net.BindException:地址已在使用:JVM_Bind 在 java.net.DualStackPlainSocketImpl.bind0(本机方法) 在 java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) 在 java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) 在 java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) 在 java.net.ServerSocket.bind(ServerSocket.java:375) 在 com.gemstone.gemfire.internal.SocketCreator.createServerSocket(SocketCreator.java:826) ... 43 更多 :boot 运行失败 FAILURE:构建失败并出现异常。 * 什么地方出了错: 任务“:bootRun”执行失败。 > Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe'' 以非零退出值 1 结束 * 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。 构建失败 总时间:14.9 秒
然后,我使用 gfsh停止了定位器。
我尝试直接运行您的示例(没有先启动定位器)。
难以置信,它成功了。
您的示例似乎是启动一个新的 Gemfire 定位器和一个服务器,而不是连接到现有的定位器。
[info 2017/07/09 15:19:16.930 CST tid=0x1] 默认许可工作目录为当前工作目录“C:\Users\ IBM_ADMIN\Documents\Workspace - Shirley\Workspace_SpringBoot\spring-boot-gemfire-server-example”。 [info 2017/07/09 15:19:16.935 CST tid=0x1] 许可需要 7 毫秒。 [info 2017/07/09 15:19:17.000 CST tid=0x1] 在 localhost/127.0.0.1 上启动分发定位器的对等位置 [10334] [info 2017/07/09 15:19:17.016 CST tid=0x1] 在 localhost/127.0.0.1 [10334] 上启动分发定位器 [info 2017/07/09 15:19:18.376 CST tid=0x1] GemFire P2P 侦听器在 tcp:///192.168.1.106:45643 上启动 [info 2017/07/09 15:19:18.624 CST tid=0x22] 定位器 localhost(null):10334 成员地址是 ADMINIB-CI3 Q48M(SpringBootGemFireServer):37651 [info 2017/07/09 15:19:25.674 CST tid=0x25] 定位器 localhost(null):10334 成员地址是 ADMINIB-CI3 Q48M(SpringBootGemFireServer):37651 [info 2017/07/09 15:19:30.686 CST tid=0x1] 成员资格:主要成员现在是 ADMINIB-CI3Q48M(SpringBootGemFireServer ):37651 [info 2017/07/09 15:19:30.701 CST tid=0x1] 这个成员,ADMINIB-CI3Q48M(SpringBootGemFireServer):37651,是becomi ng组协调员。 [info 2017/07/09 15:19:30.710 CST tid=0x1] 以 ID ADMINIB-CI3Q48M(SpringBootGemFireServe r):37651。 [info 2017/07/09 15:19:30.712 CST tid=0x1] 启动 DistributionManager ADMINIB-CI3Q48M(SpringBootGemFireServer):37651。(耗时 12629/毫秒) [info 2017/07/09 15:19:30.715 CST tid=0x1] 初始 (membershipManager) 视图 = [ADMINIB-CI3Q48M(SpringBootGemFire 服务器):37651{lead}] [info 2017/07/09 15:19:30.715 CST tid=0x1] 接纳成员:37651>。 现在有 1 个非管理员成员。 [info 2017/07/09 15:19:30.716 CST tid=0x1] ADMINIB-CI3Q48M(SpringBootGemFireServer):37651 是老版本 e 唯一的成员。 [info 2017/07/09 15:19:31.081 CST tid=0x1] 没有收到任何其他系统的回复。我是第一个。 [info 2017/07/09 15:19:31.086 CST tid=0x1] 在 localhost/127.0.0 上启动分发定位器的服务器位置 .1[10334] [info 2017/07/09 15:19:31.358 CST tid=0x1] 初始化区域 _monitoringRegion_192.168.1.10637651 [info 2017/07/09 15:19:31.364 CST tid=0x1] 初始化区域 _monitoringRegion_192.168.1.10637651 comp 让 [info 2017/07/09 15:19:32.857 CST tid=0x1] 初始化区域 PdxTypes [info 2017/07/09 15:19:32.857 CST tid=0x1] 区域 PdxTypes 初始化完成 [main] INFO org.springframework.data.gemfire.CacheFactoryBean - 连接到分布式系统 [SpringBootGemFireServer ] 作为成员 [ADMINIB-CI3Q48M(SpringBootGemFireServer):37651] 在组 [[]] 中,在主机 [ADMINIB-CI3Q 上具有角色 [[]] 48M] 具有 PID [0]。 [main] INFO org.springframework.data.gemfire.CacheFactoryBean - 创建了新的 GemFire v.8.2.0 缓存 [SpringBootGemFireServ 呃]。 [info 2017/07/09 15:19:32.935 CST tid=0x1] 初始化区域 __PR [info 2017/07/09 15:19:32.935 CST tid=0x1] 区域 __PR 初始化完成 [info 2017/07/09 15:19:32.986 CST tid=0x1] 分区区域 /Factorials 出生时 prId=1 ident:#Factorials [main] INFO org.springframework.data.gemfire.PartitionedRegionFactoryBean - 创建了新的缓存区域 [Factorials]。 [main] INFO org.springframework.jmx.export.annotation.AnnotationMBeanExporter - 在 st 上注册 bean 以进行 JMX 暴露 艺术 [main] INFO org.springframework.context.support.DefaultLifecycleProcessor - 在阶段 2147483647 中启动 bean [info 2017/07/09 15:19:33.379 CST tid=0x1] 绑定到地址 localhost/127.0.0.1 的桥接服务器连接侦听器 :40404,积压 1,000。 [info 2017/07/09 15:19:33.396 CST tid=0x1] ClientHealthMonitorThread ping 之间允许的最大时间:15,000 [info 2017/07/09 15:19:33.425 CST tid=0x1] CacheServer 配置:端口=40404 最大连接数=800 最大线程 s=0 notify-by-subscription=true socket-buffer-size=32768 maximum-time-between-pings=15000 maximum-message-count=230000 m essage-time-to-live=180 eviction-policy=none 容量=1 溢出目录=。组=[] loadProbe=ConnectionCountProbe lo adPollInterval=5000 tcpNoDelay=true [main] INFO org.example.SpringBootGemFireServer - 在 20.399 秒内启动 SpringBootGemFireServer(JVM 运行 20. 823) [info 2017/07/09 15:21:15.585 CST tid=0x3e] (tid=62 msgId=0) 执行列表成员 s [info 2017/07/09 15:22:26.546 CST tid=0x3e] (tid=62 msgId=1) 执行描述我 mber --name GemFireLocator > 构建 80% > :bootRun
我可以使用 gfsh 连接到您的示例代码创建的定位器。
gfsh> gfsh>stop locator --name GemFireLocator 停止在 ADMINIB-CI3Q48M[10334] 上的 C:\Users\IBM_ADMIN\GemFireLocator 中运行的定位器作为 GemFireLocator... 进程 ID:7256 日志文件:C:\Users\IBM_ADMIN\GemFireLocator\GemFireLocator.log …… 不再连接到 ADMINIB-CI3Q48M[1099]。 gfsh>gfsh>列出成员 “列表成员”不可用。原因:需要连接。 gfsh>连接到 loaclhost[10334] 在 [host=localhost, port=10334] 连接到定位器 .. 在 [host=ADMINIB-CI3Q48M, port=1199] 连接到 Manager .. 连接成功:[host=ADMINIB-CI3Q48M, port=1199] gfsh>列出成员 会员人数:1 协调员:SpringBootGemFireServer (ADMINIB-CI3Q48M(SpringBootGemFireServer):37651) 姓名 | ID ------------------------------------ | -------------------------------------------------- SpringBootGemFireServer | ADMINIB-CI3Q48M(SpringBootGemFireServer):37651 gfsh>describe 成员 --name=SpringBootGemFireServer 名称:SpringBootGemFireServer ID:ADMINIB-CI3Q48M(SpringBootGemFireServer):37651 主机:ADMINIB-CI3Q48M 区域:阶乘 PID : 0 团体: 使用堆:117M 最大堆:1755M 工作目录:C:\Users\IBM_ADMIN\Documents\Workspace - Shirley\Workspace_SpringBoot\spring-boot-gemfire-server-example 日志文件:C:\Users\IBM_ADMIN\Documents\Workspace - Shirley\Workspace_SpringBoot\spring-boot-gemfire-server-example 定位器:本地主机 [10334] 缓存服务器信息 服务器绑定:本地主机 服务器端口:40404 运行:真 客户端连接:0 gfsh>列出区域 地区列表 --------------- 阶乘 gfsh>describe region --name=/Factorials ..................................................... ........... 名称:阶乘 数据策略:分区 托管成员:SpringBootGemFireServer 托管成员共享的非默认属性 类型 | 姓名 | 价值 ------ | ---- | ----- 地区 | 尺寸 | 0
你能帮忙检查一下吗?