Search code examples
hazelcast

Hazelcast access using CLI


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?


Solution

  • Andrii,

    You can take advantage of Hazelcast demo application. You can find here:

    • com.hazelcast.console.ConsoleApp member console, part of hazelcast*.jar. See GH
    • com.hazelcast.client.console.ClientConsoleApp client console, part of hazelcast-client*.jar. See GH

    You can modify server.sh to run member / client in CLI mode

    java -server $JAVA_OPTS com.hazelcast.console.ConsoleApp

    or

    java -server $JAVA_OPTS com.hazelcast.client.console.ClientConsoleApp

    Let me know if you have any questions. Thank you