我有一個定位器和一個服務器一起運行在node1上。我想要啓動另一個服務器形式node2。我能夠從node1連接到定位器,但當我嘗試創建另一臺服務器時出現一些錯誤。無法從其他節點啓動geode服務器
節點1(172.20.22.52):
gfsh>list members
Name | Id
------- | ------------------------------------------------
locator | 172.20.22.52(locator:10094:locator)<ec><v0>:1024
server1 | 172.20.22.52(server1:10220)<v1>:1025
節點2(172.20.22.121)
gfsh>connect --locator=172.20.22.52[10334]
Already connected to: auto-crawler-tikv-1.cs1cloud.internal[1099]
現在,我嘗試啓動節點2上的另一臺服務器 「服務器2」。
gfsh>start server --name=server2
Starting a Geode Server in /home/admin/apache-geode-1.2.1/bin/server2...
The Cache Server process terminated unexpectedly with exit status 1. Please refer to the log file in /home/admin/apache-geode-1.2.1/bin/server2 for full details.
Exception in thread "main" org.apache.geode.GemFireConfigException
at org.apache.geode.distributed.internal.membership.gms.messenger.JGroupsMessenger.init(JGroupsMessenger.java:254)
at org.apache.geode.distributed.internal.membership.gms.Services.init(Services.java:134)
at org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:101)
at org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:89)
at org.apache.geode.distributed.internal.DistributionManager.<init>(DistributionManager.java:1153)
at org.apache.geode.distributed.internal.DistributionManager.<init>(DistributionManager.java:1201)
at org.apache.geode.distributed.internal.DistributionManager.create(DistributionManager.java:572)
at org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:697)
at org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:305)
at org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:205)
at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:210)
at org.apache.geode.distributed.internal.DefaultServerLauncherCacheProvider.createCache(DefaultServerLauncherCacheProvider.java:52)
at org.apache.geode.distributed.ServerLauncher.createCache(ServerLauncher.java:860)
at org.apache.geode.distributed.ServerLauncher.start(ServerLauncher.java:772)
at org.apache.geode.distributed.ServerLauncher.run(ServerLauncher.java:699)
at org.apache.geode.distributed.ServerLauncher.main(ServerLauncher.java:231)
Caused by: java.net.UnknownHostException
at org.apache.geode.internal.net.SocketCreator.getLocalHost(SocketCreator.java:280)
at org.apache.geode.distributed.internal.membership.gms.messenger.JGroupsMessenger.init(JGroupsMessenger.java:252)
... 15 more
我可以從一臺服務器ping到另一臺服務器。我
什麼Geode登錄/home/admin/apache-geode-1.2.1/bin/server2說?您也可以嘗試使用綁定地址來啓動定位器... – rupweb