Серверы успешно запустились из gfsh, но не подключены к локатору
Я запустил локатор геоданных с помощью gfsh, а затем снова запустил четыре сервера с помощью gfsh, но когда я использую команду list members, я получаю только локатор, а не серверы.
gfsh>start locator --name=locate --port=10334
Starting a Geode Locator in C:\Users\Milin\locate...
.
Locator in C:\Users\Milin\locate on DESKTOP-EMRTT29.hitronhub.home[10334] as locate is currently online.
Process ID: 1616
Uptime: 3 minutes 31 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\locate\locate.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: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
Successfully connected to: JMX Manager [host=DESKTOP-EMRTT29.hitronhub.home, port=1099]
Cluster configuration service is up and running.
gfsh>connect --locator=DESKTOP-EMRTT29.hitronhub.home[10334]
Already connected to: DESKTOP-EMRTT29.hitronhub.home[1099]
gfsh>list members
Member Count : 1
Name | Id
------ | -------------------------------------------------------------
locate | 192.168.0.82(locate:1616:locator)<ec><v0>:41000 [Coordinator]
gfsh>start server --name=serverA --server-port=41101
Starting a Geode Server in C:\Users\Milin\serverA...
.
Server in C:\Users\Milin\serverA on 192.168.0.82[41101] as serverA is currently online.
Process ID: 20920
Uptime: 20 minutes 13 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\serverA\serverA.log
JVM Arguments: -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
gfsh>start server --name=serverB --server-port=41102
Starting a Geode Server in C:\Users\Milin\serverB...
.
Server in C:\Users\Milin\serverB on DESKTOP-EMRTT29.hitronhub.home[41102] as serverB is currently online.
Process ID: 8908
Uptime: 20 minutes 17 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\serverB\serverB.log
JVM Arguments: -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
gfsh>start server --name=serverC --server-port=41103
Starting a Geode Server in C:\Users\Milin\serverC...
.
Server in C:\Users\Milin\serverC on DESKTOP-EMRTT29.hitronhub.home[41103] as serverC is currently online.
Process ID: 5940
Uptime: 20 minutes 15 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\serverC\serverC.log
JVM Arguments: -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
gfsh>start server --name=serverD --server-port=41104
Starting a Geode Server in C:\Users\Milin\serverD...
.
Server in C:\Users\Milin\serverD on DESKTOP-EMRTT29.hitronhub.home[41104] as serverD is currently online.
Process ID: 16548
Uptime: 20 minutes 12 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\serverD\serverD.log
JVM Arguments: -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
gfsh>list members
Member Count : 1
Name | Id
------ | -------------------------------------------------------------
locate | 192.168.0.82(locate:1616:locator)<ec><v0>:41000 [Coordinator]
Затем я также попытался запустить серверы, указав имя локатора (пробовал и имя, и идентификатор), но все те же результаты
gfsh>stop locator --name=locate
Stopping Locator running in C:\Users\Milin\locate on DESKTOP-EMRTT29.hitronhub.home[10334] as locate...
Process ID: 1616
Log File: C:\Users\Milin\locate\locate.log
....
No longer connected to DESKTOP-EMRTT29.hitronhub.home[1099].
No longer connected to DESKTOP-EMRTT29.hitronhub.home[1099].
gfsh>list members
Command 'list members' was found but is not currently available (type 'help' then ENTER to learn about this command)
gfsh>start locator --name=locate --port=10334
Starting a Geode Locator in C:\Users\Milin\locate...
..............................
Locator in C:\Users\Milin\locate on DESKTOP-EMRTT29.hitronhub.home[10334] as locate is currently online.
Process ID: 20936
Uptime: 19 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\locate\locate.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: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
Successfully connected to: JMX Manager [host=DESKTOP-EMRTT29.hitronhub.home, port=1099]
Cluster configuration service is up and running.
gfsh>list members
Member Count : 1
Name | Id
------ | --------------------------------------------------------------
locate | 192.168.0.82(locate:20936:locator)<ec><v0>:41000 [Coordinator]
gfsh>connect
Already connected to: DESKTOP-EMRTT29.hitronhub.home[1099]
gfsh>describe member --name=locate
Name : locate
Id : 192.168.0.82(locate:20936:locator)<ec><v0>:41000
Host : DESKTOP-EMRTT29.hitronhub.home
Regions :
PID : 20936
Groups :
Used Heap : 259M
Max Heap : 1988M
Working Dir : C:\Users\Milin\locate
Log file : C:\Users\Milin\locate\locate.log
Locators : 192.168.0.82[10334]
gfsh>start server --name=serverA --server-port=41101 --locators=locate
Starting a Geode Server in C:\Users\Milin\serverA...
.
Server in C:\Users\Milin\serverA on 192.168.0.82[41101] as serverA is currently online.
Process ID: 20920
Uptime: 36 minutes 6 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\serverA\serverA.log
JVM Arguments: -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
gfsh>list members
Member Count : 1
Name | Id
------ | --------------------------------------------------------------
locate | 192.168.0.82(locate:20936:locator)<ec><v0>:41000 [Coordinator]
gfsh>start server --name=serverA --server-port=41101 --locators=192.168.0.82[10334]
Starting a Geode Server in C:\Users\Milin\serverA...
.
Server in C:\Users\Milin\serverA on 192.168.0.82[41101] as serverA is currently online.
Process ID: 20920
Uptime: 36 minutes 27 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\serverA\serverA.log
JVM Arguments: -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
gfsh>list members
Member Count : 1
Name | Id
------ | --------------------------------------------------------------
locate | 192.168.0.82(locate:20936:locator)<ec><v0>:41000 [Coordinator]
gfsh>start server --name=serverB --server-port=41102 --locators=192.168.0.82[10334]
Starting a Geode Server in C:\Users\Milin\serverB...
.
Server in C:\Users\Milin\serverB on DESKTOP-EMRTT29.hitronhub.home[41102] as serverB is currently online.
Process ID: 8908
Uptime: 36 minutes 42 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\serverB\serverB.log
JVM Arguments: -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
gfsh>list members
Member Count : 1
Name | Id
------ | --------------------------------------------------------------
locate | 192.168.0.82(locate:20936:locator)<ec><v0>:41000 [Coordinator]
gfsh>start server --name=serverC --server-port=41103 --locators=192.168.0.82[10334]
Starting a Geode Server in C:\Users\Milin\serverC...
.
Server in C:\Users\Milin\serverC on DESKTOP-EMRTT29.hitronhub.home[41103] as serverC is currently online.
Process ID: 5940
Uptime: 36 minutes 44 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\serverC\serverC.log
JVM Arguments: -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
gfsh>start server --name=serverD --server-port=41104 --locators=192.168.0.82[10334]
Starting a Geode Server in C:\Users\Milin\serverD...
.
Server in C:\Users\Milin\serverD on DESKTOP-EMRTT29.hitronhub.home[41104] as serverD is currently online.
Process ID: 16548
Uptime: 36 minutes 44 seconds
Geode Version: 1.11.0
Java Version: 13.0.2
Log File: C:\Users\Milin\serverD\serverD.log
JVM Arguments: -Dgemfire.start-dev-rest-api=false -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=taskkill /F /PID %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path: C:\apache-geode-1.11.0\lib\geode-core-1.11.0.jar;C:\apache-geode-1.11.0\lib\geode-dependencies.jar
Я не могу понять, почему это происходит. Кроме того, мне никогда не удавалось получить эту стартовую конфигурацию сразу за один раз. Иногда JMX Manager не подключается, иногда локатор не запускается, просто я работаю над проектом, и это отнимает у меня много времени, и я не могу уделить время части приложения (которая Я работаю на Java).
Не стесняйтесь давать советы
1 ответ
Это должно работать из коробки нормально, здесь происходит что-то странное... не могли бы вы убедиться, что ваши серверы полностью остановлены и что у вас нет никаких зомби-процессов, прежде чем снова запустить кластер?
Мне просто интересно, были ли серверы уже запущены до запуска локатора, в основном потому, что вывод start server
команда утверждает, что серверы уже некоторое время работают...
Uptime: 20 minutes 12 seconds
Uptime: 36 minutes 44 seconds
С уважением.