I don't get to work REST API of Hazelcast, receiving always :
ERR_EMPTY_RESPONSE
via Browser or java.net.SocketException: Unexpected end of file from server
via a Java Test Program.at hazelcast node:
INFO: [myIP]:5701 [dev] [3.6] Established socket connection between /127.0.0.1:5701 and /127.0.0.1:62816
06-may-2016 13:04:20 com.hazelcast.nio.tcp.TcpIpConnection
INFO: [myIP]:5701 [dev] [3.6] Connection [/127.0.0.1:62816] lost. Reason: Socket explicitly closed
The used code is just hazaelcast multimap sample: and the REST API uri http://localhost:5701/hazelcast/rest/maps/my-distributed-map/key
i think that REST interface was disabled by default until certain version. add jvm argument for your application.
-Dhazelcast.rest.enabled=true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With