问题描述
假设我有Hazelcast实例在远程计算机上的某个地方运行,并且在官方Docker映像中执行.因此,我很想看到Hazelcast存储的某些数据,就像在第一个视频这里中一样.因此,我想知道是否有任何方法可以从任何CLI实用程序连接到现有的Hazelcast实例以获取数据,但没有管理中心?
Suppose I have instance of Hazelcast running somewhere on remote machine and it executed in official Docker image. So I wolud like to see some data that Hazelcast stores just like in the first video here. So I'm wondering is there any way to connect to existing Hazelcast instance from any CLI utility to get the data but without Management Center?
推荐答案
Andrii,
您可以利用Hazelcast演示应用程序.您可以在这里找到:
You can take advantage of Hazelcast demo application.You can find here:
-
com.hazelcast.console.ConsoleApp
成员控制台,是hazelcast*.jar
的一部分.参见 GH -
com.hazelcast.client.console.ClientConsoleApp
客户端控制台,是hazelcast-client*.jar
的一部分.参见 GH
com.hazelcast.console.ConsoleApp
member console, part ofhazelcast*.jar
. See GHcom.hazelcast.client.console.ClientConsoleApp
client console, part ofhazelcast-client*.jar
. See GH
您可以修改server.sh
以在CLI模式下运行成员/客户端
You can modify server.sh
to run member / client in CLI mode
java -server $JAVA_OPTS com.hazelcast.console.ConsoleApp
或
java -server $JAVA_OPTS com.hazelcast.client.console.ClientConsoleApp
如果您有任何疑问,请告诉我.谢谢
Let me know if you have any questions.Thank you
这篇关于使用CLI进行Hazelcast访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!