How to start hazelcast client from console -
how run hazelcast client console?
i have config in xml
:
<hazelcast-client xsi:schemalocation="http://www.hazelcast.com/schema/client-config hazelcast-client-config-3.3.xsd" xmlns="http://www.hazelcast.com/schema/client-config" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <network> <port auto-increment="true" port-count="100">5701</port> <outbound-ports> <!-- allowed port range when connecting other nodes. 0 or * means use system provided port. --> <ports>0</ports> </outbound-ports> <join> <multicast enabled="true"> <multicast-group>224.2.2.3</multicast-group> <multicast-port>54327</multicast-port> </multicast> </join> </network> </hazelcast-client>
and need console when run run.sh
or run.bat
, want client not member.
you can use clientconsole.bat given hazelcast connect hazelcast server , console that. using console can query existing map or queue in hazelcast server.
i use hazelcast-3.8.1. in demo directory can find clientconsole.bat/clientconsole.sh. connect existing server need provide details in "hazelcast-client.xml" file. here content of "hazelcast-client.xml" file:
<hazelcast-client xmlns="http://www.hazelcast.com/schema/client-config"> <group> <name>[group_name]</name> <password>[group_password]</password> </group> <network> <cluster-members> <address>[hazelcast_server_host_name_or_ip]</address> </cluster-members> </network> </hazelcast-client>
above [hazelcast_server_host_name_or_ip] ip or hostname of hazelcast server want connect , client console.
[group_name] , [group_password] should same mentioned in "hazelcast.xml" file on hazelcast server.
Comments
Post a Comment