【问题标题】:How to connect a remote-locator in Geode如何在 Geode 中连接远程定位器
【发布时间】:2017-04-11 05:31:21
【问题描述】:

我只是无法连接到 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.

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

【问题讨论】:

    标签: geode


    【解决方案1】:

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

    gfsh>start locator --name=loc1 --bind-address=myHostName
    

    【讨论】:

    • 感谢您的回答。
    • 感谢您的回答。我的意思是在可以访问该计算机的前提下,如何从局域网的计算机连接到定位器。我发现 'start locator --name=loc1 --locators=peerHostName/peerIp' 有效。
    猜你喜欢
    • 2020-04-12
    • 2018-02-27
    • 2016-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-05
    • 1970-01-01
    • 2017-04-02
    相关资源
    最近更新 更多