1

我只是无法连接到 Geode 中的远程定位器。命令行日志粘贴在下面:

 gfsh>connect --locator=192.168.141.128[10334]
    Connecting to Locator at [host=192.168.141.128, port=10334] ..
    No route to host (Host unreachable)

我需要做什么才能将路线添加到定位器?

我已经在 member1 中成功启动了定位器。

gfsh>start locator --name=locator1
Starting a Geode Locator in /home/geodeHome/my_geode/locator1...
...........
Locator in /home/geodeHome/my_geode/locator1 on 192.168.141.128[10334] as locator1 is currently online.
Process ID: 3858
Uptime: 6 seconds
Geode Version: 1.1.0
Java Version: 1.8.0_121
Log File: /home/geodeHome/my_geode/locator1/locator1.log
JVM Arguments: -Dgemfire.enable-cluster-configuration=true -Dgemfire.load-cluster-configuration-from-dir=false -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: /usr/geode/apache-geode-1.1.0/lib/geode-core-1.1.0.jar:/usr/geode/apache-geode-1.1.0/lib/geode-dependencies.jar

Successfully connected to: JMX Manager [host=192.168.141.128, port=1099]

Cluster configuration service is up and running.

有这个问题是有线的,你们可以在这里给一些提示吗?感谢您的任何建议。

4

1 回答 1

1

你能从你运行连接的机器上 ping 192.168.141.128 吗?该 IP 可能无法从您的计算机路由。您需要获取正在运行定位器的机器的公共 IP,并在启动定位器时使用该 IP/主机名作为绑定地址。例如:

gfsh>start locator --name=loc1 --bind-address=myHostName
于 2017-04-11T07:29:42.023 回答