Skip to content

Instantly share code, notes, and snippets.

@iamsmkr
Last active July 8, 2022 13:43
Show Gist options
  • Save iamsmkr/9a66769ab9e25cfa96fc446ce6b98549 to your computer and use it in GitHub Desktop.
Save iamsmkr/9a66769ab9e25cfa96fc446ce6b98549 to your computer and use it in GitHub Desktop.
% /opt/zookeeper/current/bin/zkCli.sh
[zk: localhost:2181(CONNECTED) 3] ls /flightServers/flightServer
[978ead9a-64d3-4080-9163-235cf99fe1b9, a89b2126-27cb-43c2-a687-2d8d57d74077, d87c5515-4d26-46fa-bc02-06edcc04f86a]
[zk: localhost:2181(CONNECTED) 4] get /flightServers/flightServer/978ead9a-64d3-4080-9163-235cf99fe1b9
{
"name": "flightServer",
"id": "978ead9a-64d3-4080-9163-235cf99fe1b9",
"address": "127.0.0.1",
"port": 8877,
"sslPort": null,
"payload": {
"@class": "com.iamsmkr.servicediscovery.package$ServiceDetail",
"partitionId": 0
},
"registrationTimeUTC": 1657286919479,
"serviceType": "DYNAMIC",
"uriSpec": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment