本文介绍了apache geode 9.0.3定位器找不到JMX管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Starting server location for Distribution Locator on /10.212.40.106[11001]
gfsh无法连接
gfsh>connect --locator=10.212.40.106[11001]
Connecting to Locator at [host=10.212.40.106, port=11001] ..
Locator could not find a JMX Manager
我的定位器日志
locator11001views.log
[info 2017/05/02 18:49:19.029 EEST <main> tid=0x1] Log opened with new distributed system connection. View[10.212.40.106(GeoMember1GEO:14280)<ec><v0>:1024|0] members: [10.212.40.106(GeoMember1GEO:14280)<ec><v0>:1024{lead}]
[info 2017/05/02 18:49:19.341 EEST <DM-MemberEventInvoker> tid=0x27] A new member joined: 10.212.40.109(GeoMember3GEO:54733)<ec><v1>:1024. View[10.212.40.106(GeoMember1GEO:14280)<ec><v0>:1024|1] members: [10.212.40.106(GeoMember1GEO:14280)<ec><v0>:1024{lead}, 10.212.40.109(GeoMember3GEO:54733)<ec><v1>:1024, 10.212.40.108(GeoMember2GEO:34890)<ec><v1>:1024]
[info 2017/05/02 18:49:19.342 EEST <DM-MemberEventInvoker> tid=0x27] A new member joined: 10.212.40.108(GeoMember2GEO:34890)<ec><v1>:1024. View[10.212.40.106(GeoMember1GEO:14280)<ec><v0>:1024|1] members: [10.212.40.106(GeoMember1GEO:14280)<ec><v0>:1024{lead}, 10.212.40.109(GeoMember3GEO:54733)<ec><v1>:1024, 10.212.40.108(GeoMember2GEO:34890)<ec><v1>:1024]
[info 2017/05/02 18:49:24.562 EEST <BridgeServer-LoadPollingThread> tid=0x51] server count: 3 connected client count: 0 client subscription queue count: 0
current servers : 10.212.40.106(GeoMember1GEO:14280)<ec><v0>:1024 10.212.40.108(GeoMember2GEO:34890)<ec><v1>:1024 10.212.40.109(GeoMember3GEO:54733)<ec><v1>:1024
添加配置选项时
.set("jmx-manager-start", "true")
.set("jmx-manager", "true")
我发现此异常
org.apache.geode.management.ManagementException: java.lang.NullPointerException
at org.apache.geode.management.internal.FederatingManager.startManager(FederatingManager.java:137)
at org.apache.geode.management.internal.SystemManagementService.startManager(SystemManagementService.java:466)
at org.apache.geode.management.internal.beans.ManagementAdapter.handleCacheCreation(ManagementAdapter.java:191)
at org.apache.geode.management.internal.beans.ManagementListener.handleEvent(ManagementListener.java:113)
at org.apache.geode.distributed.internal.InternalDistributedSystem.notifyResourceEventListeners(InternalDistributedSystem.java:2161)
at org.apache.geode.distributed.internal.InternalDistributedSystem.handleResourceEvent(InternalDistributedSystem.java:534)
at org.apache.geode.internal.cache.GemFireCacheImpl.initialize(GemFireCacheImpl.java:1234)
at org.apache.geode.internal.cache.GemFireCacheImpl.basicCreate(GemFireCacheImpl.java:794)
at org.apache.geode.internal.cache.GemFireCacheImpl.create(GemFireCacheImpl.java:781)
at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:179)
at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:219)
at org.apache.geode.distributed.internal.DefaultServerLauncherCacheProvider.createCache(DefaultServerLauncherCacheProvider.java:52)
at org.apache.geode.distributed.ServerLauncher.createCache(ServerLauncher.java:857)
at org.apache.geode.distributed.ServerLauncher.start(ServerLauncher.java:769)
http://gemfire.docs.pivotal.io/geode/managing/management/jmx_manager_operations.html
推荐答案
与其使用ServerLauncher启动定位器,不如使用 LocatorLauncher 代替.话虽如此,建议您使用gfsh
来启动您的成员.
Instead of starting the locator with ServerLauncher, you should use LocatorLauncher instead. Having said that, it is recommended that you use gfsh
to launch your members.
这篇关于apache geode 9.0.3定位器找不到JMX管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!