我已按照https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes上的说明启动了定位器和服务器。当我尝试创建一个区域时,收到一条错误消息:" "创建区域"不可用。原因:需要连接。"。
你能帮我解决一下吗?
我在3个不同的窗口中运行我的定位器,我的服务器和区域。
locator.log中的最后一个条目: [info 2015/09/30 17:16:51.703 CEST locator tid = 0x51]群集配置服务启动成功完成,现在正在运行....
server.log中的最后一个条目: [info 2015/09/30 17:21:28.046 CEST服务器tid = 0x1] CacheServer配置:port = 40404 max-connections = 800 max-threads = 0 notify-by -subscription = true socket-buffer-size = 32768 maximum-time-between-pings = 60000 maximum-message-count = 230000 message-time-live = 180 eviction-policy = none capacity = 1 overflow directory =。 groups = [] loadProbe = ConnectionCountProbe loadPollInterval = 5000 tcpNoDelay = true
答案 0 :(得分:4)
您没有看到Geodein5minutes中描述的相同结果的原因是您使用的是三个单独的窗口。 Geodein5minutes描述了使用一个窗口。
下面显示了通过Geodein5minutes和一些额外的命令,例如“list members”和“list region”来说明。
C:\geode\gemfire-assembly\build\install\apache-geode>.\bin\gfsh.bat _________________________ __ / _____/ ______/ ______/ /____/ / / / __/ /___ /_____ / _____ / / /__/ / ____/ _____/ / / / / /______/_/ /______/_/ /_/ v1.0.0-incubating-SNAPSHOT Monitor and Manage GemFire gfsh>start locator --name=locator Starting a GemFire Locator in C:\geode\gemfire-assembly\build\install\ apache-geode\locator... ............................... Locator in C:\geode\gemfire-assembly\build\install\apache-geode\locato r on klund-e6420.vmware.com[10334] as locator is currently online. Process ID: 1800 Uptime: 16 seconds GemFire Version: 1.0.0-incubating-SNAPSHOT Java Version: 1.8.0_45 Log File: C:\geode\gemfire-assembly\build\install\apache-geode\locator \locator.log JVM Arguments: -Dgemfire.enable-cluster-configuration=true -Dgemfire.load-cluste r-configuration-from-dir=false -Dgemfire.launcher.registerSignalHandlers=true -D java.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806 Class-Path: C:\geode\gemfire-assembly\build\install\apache-geode\lib\g emfire-core-1.0.0-incubating-SNAPSHOT.jar;C:\geode\gemfire-assembly\bu ild\install\apache-geode\lib\gemfire-core-dependencies.jar Successfully connected to: [host=klund-e6420.vmware.com, port=1099] Cluster configuration service is up and running. gfsh>list members Name | Id ------- | ------------------------------------------ locator | klund-e6420(locator:1800:locator):1987 gfsh>start server --name=server Starting a GemFire Server in C:\geode\gemfire-assembly\build\install\a pache-geode\server... ....... Server in C:\geode\gemfire-assembly\build\install\apache-geode\server on klund-e6420.vmware.com[40404] as server is currently online. Process ID: 5412 Uptime: 4 seconds GemFire Version: 1.0.0-incubating-SNAPSHOT Java Version: 1.8.0_45 Log File: C:\geode\gemfire-assembly\build\install\apache-geode\server\ server.log JVM Arguments: -Dgemfire.default.locators=10.118.33.206[10334] -Dgemfire.use-clu ster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.lau ncher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server. gcInterval=9223372036854775806 Class-Path: C:\geode\gemfire-assembly\build\install\apache-geode\lib\g emfire-core-1.0.0-incubating-SNAPSHOT.jar;C:\geode\gemfire-assembly\bu ild\install\apache-geode\lib\gemfire-core-dependencies.jar gfsh>create region --name=region --type=REPLICATE Member | Status ------ | ------------------------------------ server | Region "/region" created on "server" gfsh>list members Name | Id ------- | ------------------------------------------ locator | klund-e6420(locator:1800:locator):1987 server | klund-e6420(server:5412):65511 gfsh>list regions List of regions --------------- region gfsh>
我启动定位器后,输入“list members”,显示GFSH自动连接到我刚开始的定位器。在同一个GFSH窗口中,然后我继续启动服务器。
如果你想使用单独的GFSH窗口,但你需要在其他窗口中使用connect命令。
答案 1 :(得分:1)
当gfsh启动时,您必须使用connect
命令将其指向正在运行的定位器,以便您可以创建区域等。以下是一个示例:
gfsh>connect --locator=localhost[10334]
答案 2 :(得分:0)
当你做"列出成员"时输出是什么?在gfsh。 gfsh> connect --locator = localhost [10334] 列表成员
定位器和服务器是否在同一主机中?