Hazelcast access using CLI

后端 未结 3 2049
我在风中等你
我在风中等你 2021-02-15 17:39

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 li

3条回答
  •  孤城傲影
    2021-02-15 17:53

    Thanks to Viktor Gamov I have found the way to see the data from CLI with provided com.hazelcast.client.console.ClientConsoleApp that is part of hazelcast*.jar. Here is the small summary how to connect to existing instance using client:

    1. Modify clientConsole.sh (that is located under /demo) script (or create new one if you want) and the line in it have to be like that: java -Djava.net.preferIPv4Stack=true -cp .:../lib/hazelcast-all-.jar com.hazelcast.client.console.ClientConsoleApp
    2. Put your config file to the same directory with your script (possibly /demo)
    3. Your config file should have the name exactly hazelcast-client.xml and may be look like the following:
    
        
            dev
            dev-pass
        
        
            
                
    localhost:5701

提交回复
热议问题